#include <gwenhywfar/gui.h>
Go to the source code of this file.
Typedefs | |
Prototypes For Virtual User Interaction Functions | |
typedef int(* | GWEN_GUI_CHECKCERT_FN )(GWEN_GUI *gui, const GWEN_SSLCERTDESCR *cert, GWEN_IO_LAYER *io, uint32_t guiid) |
typedef int(* | GWEN_GUI_GETPASSWORD_FN )(GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
typedef void(* | GWEN_GUI_HIDEBOX_FN )(GWEN_GUI *gui, uint32_t id) |
typedef int(* | GWEN_GUI_INPUTBOX_FN )(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
typedef int(* | GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN )(GWEN_GUI *gui, const char *text, unsigned char *buffer, unsigned int bufLength) |
typedef int(* | GWEN_GUI_LOG_HOOK_FN )(GWEN_GUI *gui, const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s) |
typedef int(* | GWEN_GUI_MESSAGEBOX_FN )(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, uint32_t guiid) |
typedef int(* | GWEN_GUI_PRINT_FN )(GWEN_GUI *gui, const char *docTitle, const char *docType, const char *descr, const char *text, uint32_t guiid) |
typedef int(* | GWEN_GUI_PROGRESS_ADVANCE_FN )(GWEN_GUI *gui, uint32_t id, uint64_t progress) |
typedef int(* | GWEN_GUI_PROGRESS_END_FN )(GWEN_GUI *gui, uint32_t id) |
typedef int(* | GWEN_GUI_PROGRESS_LOG_FN )(GWEN_GUI *gui, uint32_t id, GWEN_LOGGER_LEVEL level, const char *text) |
typedef uint32_t(* | GWEN_GUI_PROGRESS_START_FN )(GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid) |
typedef int(* | GWEN_GUI_SETPASSWORDSTATUS_FN )(GWEN_GUI *gui, const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid) |
typedef uint32_t(* | GWEN_GUI_SHOWBOX_FN )(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, uint32_t guiid) |
typedef int(* | GWEN_GUI_WAITFORSOCKETS_FN )(GWEN_GUI *gui, GWEN_SOCKET_LIST2 *readSockets, GWEN_SOCKET_LIST2 *writeSockets, int msecs, uint32_t guiid) |
Functions | |
Setters For Virtual User Interaction Functions | |
GWENHYWFAR_API GWEN_GUI_CHECKCERT_FN | GWEN_Gui_SetCheckCertFn (GWEN_GUI *gui, GWEN_GUI_CHECKCERT_FN f) |
GWENHYWFAR_API GWEN_GUI_GETPASSWORD_FN | GWEN_Gui_SetGetPasswordFn (GWEN_GUI *gui, GWEN_GUI_GETPASSWORD_FN f) |
GWENHYWFAR_API GWEN_GUI_HIDEBOX_FN | GWEN_Gui_SetHideBoxFn (GWEN_GUI *gui, GWEN_GUI_HIDEBOX_FN f) |
GWENHYWFAR_API GWEN_GUI_INPUTBOX_FN | GWEN_Gui_SetInputBoxFn (GWEN_GUI *gui, GWEN_GUI_INPUTBOX_FN f) |
GWENHYWFAR_API GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN | GWEN_Gui_SetKeyDataFromTextOpenSslFn (GWEN_GUI *gui, GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN f) |
GWENHYWFAR_API GWEN_GUI_LOG_HOOK_FN | GWEN_Gui_SetLogHookFn (GWEN_GUI *gui, GWEN_GUI_LOG_HOOK_FN f) |
GWENHYWFAR_API GWEN_GUI_MESSAGEBOX_FN | GWEN_Gui_SetMessageBoxFn (GWEN_GUI *gui, GWEN_GUI_MESSAGEBOX_FN f) |
GWENHYWFAR_API GWEN_GUI_PRINT_FN | GWEN_Gui_SetPrintFn (GWEN_GUI *gui, GWEN_GUI_PRINT_FN f) |
GWENHYWFAR_API GWEN_GUI_PROGRESS_ADVANCE_FN | GWEN_Gui_SetProgressAdvanceFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_ADVANCE_FN f) |
GWENHYWFAR_API GWEN_GUI_PROGRESS_END_FN | GWEN_Gui_SetProgressEndFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_END_FN f) |
GWENHYWFAR_API GWEN_GUI_PROGRESS_LOG_FN | GWEN_Gui_SetProgressLogFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_LOG_FN f) |
GWENHYWFAR_API GWEN_GUI_PROGRESS_START_FN | GWEN_Gui_SetProgressStartFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_START_FN f) |
GWENHYWFAR_API GWEN_GUI_SETPASSWORDSTATUS_FN | GWEN_Gui_SetSetPasswordStatusFn (GWEN_GUI *gui, GWEN_GUI_SETPASSWORDSTATUS_FN f) |
GWENHYWFAR_API GWEN_GUI_SHOWBOX_FN | GWEN_Gui_SetShowBoxFn (GWEN_GUI *gui, GWEN_GUI_SHOWBOX_FN f) |
GWENHYWFAR_API GWEN_GUI_WAITFORSOCKETS_FN | GWEN_Gui_SetWaitForSocketsFn (GWEN_GUI *gui, GWEN_GUI_WAITFORSOCKETS_FN f) |
typedef int(* GWEN_GUI_CHECKCERT_FN)(GWEN_GUI *gui, const GWEN_SSLCERTDESCR *cert, GWEN_IO_LAYER *io, uint32_t guiid) |
typedef int(* GWEN_GUI_GETPASSWORD_FN)(GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
typedef void(* GWEN_GUI_HIDEBOX_FN)(GWEN_GUI *gui, uint32_t id) |
Please see GWEN_Gui_HideBox for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_INPUTBOX_FN)(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
Please see GWEN_Gui_InputBox for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN)(GWEN_GUI *gui, const char *text, unsigned char *buffer, unsigned int bufLength) |
typedef int(* GWEN_GUI_LOG_HOOK_FN)(GWEN_GUI *gui, const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s) |
This function is called at the beginning of GWEN_Logger_Log() and my be used to intercept log messages in general (e.g. to divert them to an internal log mechanism of the application).
gui | pointer to the gui which receives this call | |
logDomain | name of the logging domain (e.g. GWEN_LOGDOMAIN) | |
priority | see GWEN_Logger_Log | |
s | the message to be logged (this is the raw message from the caller) |
typedef int(* GWEN_GUI_MESSAGEBOX_FN)(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, uint32_t guiid) |
Please see GWEN_Gui_MessageBox for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function. However, the recommended way is to use Gwenhywfars' heritage functions (see GWEN_INHERIT_SETDATA).
typedef int(* GWEN_GUI_PRINT_FN)(GWEN_GUI *gui, const char *docTitle, const char *docType, const char *descr, const char *text, uint32_t guiid) |
This function is used to make the application print something. The same restrictions noted above apply to the text parameter (utf-8, maybe containing HTML). Please see GWEN_Gui_Print for details.
typedef int(* GWEN_GUI_PROGRESS_ADVANCE_FN)(GWEN_GUI *gui, uint32_t id, uint64_t progress) |
Please see GWEN_Gui_ProgressAdvance for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_PROGRESS_END_FN)(GWEN_GUI *gui, uint32_t id) |
Please see GWEN_Gui_ProgressEnd for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_PROGRESS_LOG_FN)(GWEN_GUI *gui, uint32_t id, GWEN_LOGGER_LEVEL level, const char *text) |
Please see GWEN_Gui_ProgressLog for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef uint32_t(* GWEN_GUI_PROGRESS_START_FN)(GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid) |
Please see GWEN_Gui_ProgressStart for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_SETPASSWORDSTATUS_FN)(GWEN_GUI *gui, const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid) |
typedef uint32_t(* GWEN_GUI_SHOWBOX_FN)(GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, uint32_t guiid) |
Please see GWEN_Gui_ShowBox for details.
One way of passing arbitrary additional data to this callback is by means of the GWEN_Gui_GetUserData function.
typedef int(* GWEN_GUI_WAITFORSOCKETS_FN)(GWEN_GUI *gui, GWEN_SOCKET_LIST2 *readSockets, GWEN_SOCKET_LIST2 *writeSockets, int msecs, uint32_t guiid) |
GWENHYWFAR_API GWEN_GUI_CHECKCERT_FN GWEN_Gui_SetCheckCertFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_CHECKCERT_FN | f | |||
) |
Definition at line 257 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_GETPASSWORD_FN GWEN_Gui_SetGetPasswordFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_GETPASSWORD_FN | f | |||
) |
Definition at line 206 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_HIDEBOX_FN GWEN_Gui_SetHideBoxFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_HIDEBOX_FN | f | |||
) |
Definition at line 134 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_INPUTBOX_FN GWEN_Gui_SetInputBoxFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_INPUTBOX_FN | f | |||
) |
Definition at line 110 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN GWEN_Gui_SetKeyDataFromTextOpenSslFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN | f | |||
) |
GWENHYWFAR_API GWEN_GUI_LOG_HOOK_FN GWEN_Gui_SetLogHookFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_LOG_HOOK_FN | f | |||
) |
GWENHYWFAR_API GWEN_GUI_MESSAGEBOX_FN GWEN_Gui_SetMessageBoxFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_MESSAGEBOX_FN | f | |||
) |
Definition at line 98 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_PRINT_FN GWEN_Gui_SetPrintFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_PRINT_FN | f | |||
) |
GWENHYWFAR_API GWEN_GUI_PROGRESS_ADVANCE_FN GWEN_Gui_SetProgressAdvanceFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_PROGRESS_ADVANCE_FN | f | |||
) |
Definition at line 159 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_PROGRESS_END_FN GWEN_Gui_SetProgressEndFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_PROGRESS_END_FN | f | |||
) |
Definition at line 183 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_PROGRESS_LOG_FN GWEN_Gui_SetProgressLogFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_PROGRESS_LOG_FN | f | |||
) |
Definition at line 171 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_PROGRESS_START_FN GWEN_Gui_SetProgressStartFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_PROGRESS_START_FN | f | |||
) |
Definition at line 147 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_SETPASSWORDSTATUS_FN GWEN_Gui_SetSetPasswordStatusFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_SETPASSWORDSTATUS_FN | f | |||
) |
Definition at line 219 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_SHOWBOX_FN GWEN_Gui_SetShowBoxFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_SHOWBOX_FN | f | |||
) |
Definition at line 122 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_WAITFORSOCKETS_FN GWEN_Gui_SetWaitForSocketsFn | ( | GWEN_GUI * | gui, | |
GWEN_GUI_WAITFORSOCKETS_FN | f | |||
) |