gui_be.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: error.h 1104 2007-01-03 09:21:32Z martin $
00005     begin       : Tue Oct 02 2002
00006     copyright   : (C) 2002 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 #ifndef GWENHYWFAR_GUI_GUI_BE_H
00029 #define GWENHYWFAR_GUI_GUI_BE_H
00030 
00031 
00032 #include <gwenhywfar/gui.h>
00033 
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039 
00040 
00053 typedef int (*GWEN_GUI_MESSAGEBOX_FN)(GWEN_GUI *gui,
00054                                       uint32_t flags,
00055                                       const char *title,
00056                                       const char *text,
00057                                       const char *b1,
00058                                       const char *b2,
00059                                       const char *b3,
00060                                       uint32_t guiid);
00061 
00068 typedef int (*GWEN_GUI_INPUTBOX_FN)(GWEN_GUI *gui,
00069                                     uint32_t flags,
00070                                     const char *title,
00071                                     const char *text,
00072                                     char *buffer,
00073                                     int minLen,
00074                                     int maxLen,
00075                                     uint32_t guiid);
00076 
00083 typedef uint32_t (*GWEN_GUI_SHOWBOX_FN)(GWEN_GUI *gui, 
00084                                         uint32_t flags,
00085                                         const char *title,
00086                                         const char *text,
00087                                         uint32_t guiid);
00088 
00095 typedef void (*GWEN_GUI_HIDEBOX_FN)(GWEN_GUI *gui, uint32_t id);
00096 
00103 typedef uint32_t
00104   (*GWEN_GUI_PROGRESS_START_FN)(GWEN_GUI *gui, 
00105                                 uint32_t progressFlags,
00106                                 const char *title,
00107                                 const char *text,
00108                                 uint64_t total,
00109                                 uint32_t guiid);
00110 
00117 typedef int (*GWEN_GUI_PROGRESS_ADVANCE_FN)(GWEN_GUI *gui, 
00118                                             uint32_t id,
00119                                             uint64_t progress);
00120 
00127 typedef int (*GWEN_GUI_PROGRESS_LOG_FN)(GWEN_GUI *gui, 
00128                                         uint32_t id,
00129                                         GWEN_LOGGER_LEVEL level,
00130                                         const char *text);
00137 typedef int (*GWEN_GUI_PROGRESS_END_FN)(GWEN_GUI *gui, uint32_t id);
00138 
00145 typedef int (*GWEN_GUI_PRINT_FN)(GWEN_GUI *gui,
00146                                  const char *docTitle,
00147                                  const char *docType,
00148                                  const char *descr,
00149                                  const char *text,
00150                                  uint32_t guiid);
00151 
00155 typedef int (*GWEN_GUI_GETPASSWORD_FN)(GWEN_GUI *gui,
00156                                        uint32_t flags,
00157                                        const char *token,
00158                                        const char *title,
00159                                        const char *text,
00160                                        char *buffer,
00161                                        int minLen,
00162                                        int maxLen,
00163                                        uint32_t guiid);
00164 
00168 typedef int (*GWEN_GUI_SETPASSWORDSTATUS_FN)(GWEN_GUI *gui,
00169                                              const char *token,
00170                                              const char *pin,
00171                                              GWEN_GUI_PASSWORD_STATUS status,
00172                                              uint32_t guiid);
00173 
00174 
00187 typedef int (*GWEN_GUI_LOG_HOOK_FN)(GWEN_GUI *gui,
00188                                     const char *logDomain,
00189                                     GWEN_LOGGER_LEVEL priority, const char *s);
00190 
00191 typedef int (*GWEN_GUI_WAITFORSOCKETS_FN)(GWEN_GUI *gui,
00192                                           GWEN_SOCKET_LIST2 *readSockets,
00193                                           GWEN_SOCKET_LIST2 *writeSockets,
00194                                           int msecs,
00195                                           uint32_t guiid);
00196 
00197 typedef int (*GWEN_GUI_CHECKCERT_FN)(GWEN_GUI *gui,
00198                                      const GWEN_SSLCERTDESCR *cert,
00199                                      GWEN_IO_LAYER *io,
00200                                      uint32_t guiid);
00201 
00202 typedef int (*GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN)(GWEN_GUI *gui,
00203                                                    const char *text,
00204                                                    unsigned char *buffer,
00205                                                    unsigned int bufLength);
00206 
00207 
00218 
00219 GWENHYWFAR_API 
00220 GWEN_GUI_MESSAGEBOX_FN GWEN_Gui_SetMessageBoxFn(GWEN_GUI *gui,
00221                                                 GWEN_GUI_MESSAGEBOX_FN f);
00222 GWENHYWFAR_API 
00223 GWEN_GUI_INPUTBOX_FN GWEN_Gui_SetInputBoxFn(GWEN_GUI *gui,
00224                                             GWEN_GUI_INPUTBOX_FN f);
00225 GWENHYWFAR_API 
00226 GWEN_GUI_SHOWBOX_FN GWEN_Gui_SetShowBoxFn(GWEN_GUI *gui,
00227                                           GWEN_GUI_SHOWBOX_FN f);
00228 GWENHYWFAR_API
00229 GWEN_GUI_HIDEBOX_FN GWEN_Gui_SetHideBoxFn(GWEN_GUI *gui,
00230                                           GWEN_GUI_HIDEBOX_FN f);
00231 
00232 GWENHYWFAR_API 
00233 GWEN_GUI_PROGRESS_START_FN
00234 GWEN_Gui_SetProgressStartFn(GWEN_GUI *gui, GWEN_GUI_PROGRESS_START_FN f);
00235 
00236 GWENHYWFAR_API
00237 GWEN_GUI_PROGRESS_ADVANCE_FN
00238 GWEN_Gui_SetProgressAdvanceFn(GWEN_GUI *gui, GWEN_GUI_PROGRESS_ADVANCE_FN f);
00239 
00240 GWENHYWFAR_API
00241 GWEN_GUI_PROGRESS_LOG_FN
00242 GWEN_Gui_SetProgressLogFn(GWEN_GUI *gui, GWEN_GUI_PROGRESS_LOG_FN f);
00243 
00244 GWENHYWFAR_API 
00245 GWEN_GUI_PROGRESS_END_FN
00246 GWEN_Gui_SetProgressEndFn(GWEN_GUI *gui, GWEN_GUI_PROGRESS_END_FN f);
00247 
00248 GWENHYWFAR_API
00249 GWEN_GUI_PRINT_FN GWEN_Gui_SetPrintFn(GWEN_GUI *gui, GWEN_GUI_PRINT_FN f);
00250 
00251 GWENHYWFAR_API 
00252 GWEN_GUI_GETPASSWORD_FN GWEN_Gui_SetGetPasswordFn(GWEN_GUI *gui, GWEN_GUI_GETPASSWORD_FN f);
00253 
00254 GWENHYWFAR_API
00255 GWEN_GUI_SETPASSWORDSTATUS_FN
00256 GWEN_Gui_SetSetPasswordStatusFn(GWEN_GUI *gui, GWEN_GUI_SETPASSWORDSTATUS_FN f);
00257 
00258 
00259 GWENHYWFAR_API
00260 GWEN_GUI_LOG_HOOK_FN GWEN_Gui_SetLogHookFn(GWEN_GUI *gui, GWEN_GUI_LOG_HOOK_FN f);
00261 
00262 
00263 GWENHYWFAR_API
00264 GWEN_GUI_WAITFORSOCKETS_FN GWEN_Gui_SetWaitForSocketsFn(GWEN_GUI *gui, GWEN_GUI_WAITFORSOCKETS_FN f);
00265 
00266 GWENHYWFAR_API
00267 GWEN_GUI_CHECKCERT_FN GWEN_Gui_SetCheckCertFn(GWEN_GUI *gui, GWEN_GUI_CHECKCERT_FN f);
00268 
00269 GWENHYWFAR_API
00270   GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN
00271   GWEN_Gui_SetKeyDataFromTextOpenSslFn(GWEN_GUI *gui,
00272                                        GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN f);
00273 
00278 #ifdef __cplusplus
00279 }
00280 #endif
00281 
00282 
00283 #endif
00284 

Generated on Wed Sep 3 15:21:58 2008 for gwenhywfar by  doxygen 1.5.6