gwenhywfar
4.3.1
|
#include <gwenhywfar/gui.h>
Go to the source code of this file.
typedef int GWENHYWFAR_CB(* GWEN_GUI_CHECKCERT_FN)(GWEN_GUI *gui, const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid) |
typedef int GWENHYWFAR_CB(* GWEN_GUI_CLOSE_DIALOG_FN)(GWEN_GUI *gui, GWEN_DIALOG *dlg) |
typedef int GWENHYWFAR_CB(* GWEN_GUI_EXEC_DIALOG_FN)(GWEN_GUI *gui, GWEN_DIALOG *dlg, uint32_t guiid) |
typedef int GWENHYWFAR_CB(* GWEN_GUI_GET_FILENAME_FN)(GWEN_GUI *gui, const char *caption, GWEN_GUI_FILENAME_TYPE fnt, uint32_t flags, const char *patterns, GWEN_BUFFER *pathBuffer, uint32_t guiid) |
typedef int GWENHYWFAR_CB(* 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 int GWENHYWFAR_CB(* GWEN_GUI_GETSYNCIO_FN)(GWEN_GUI *gui, const char *url, const char *defaultProto, int defaultPort, GWEN_SYNCIO **pSio) |
typedef void(* GWEN_GUI_HIDEBOX_FN)(GWEN_GUI *gui, uint32_t id) |
Please see GWEN_Gui_HideBox for details.
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.
typedef int GWENHYWFAR_CB(* GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN)(GWEN_GUI *gui, const char *text, unsigned char *buffer, unsigned int bufLength) |
typedef int GWENHYWFAR_CB(* 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.
typedef int GWENHYWFAR_CB(* GWEN_GUI_OPEN_DIALOG_FN)(GWEN_GUI *gui, GWEN_DIALOG *dlg, uint32_t guiid) |
typedef int GWENHYWFAR_CB(* 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.
typedef int(* GWEN_GUI_PROGRESS_END_FN)(GWEN_GUI *gui, uint32_t id) |
Please see GWEN_Gui_ProgressEnd for details.
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.
typedef int(* GWEN_GUI_PROGRESS_SETTOTAL_FN)(GWEN_GUI *gui, uint32_t id, uint64_t total) |
Please see GWEN_Gui_ProgressSetTotal for details.
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.
typedef int GWENHYWFAR_CB(* GWEN_GUI_READ_DIALOG_PREFS_FN)(GWEN_GUI *gui, const char *groupName, const char *altName, GWEN_DB_NODE **pDb) |
typedef int GWENHYWFAR_CB(* GWEN_GUI_RUN_DIALOG_FN)(GWEN_GUI *gui, GWEN_DIALOG *dlg, int timeout) |
typedef int GWENHYWFAR_CB(* 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.
typedef int GWENHYWFAR_CB(* GWEN_GUI_WAITFORSOCKETS_FN)(GWEN_GUI *gui, GWEN_SOCKET_LIST2 *readSockets, GWEN_SOCKET_LIST2 *writeSockets, int msecs, uint32_t guiid) |
typedef int GWENHYWFAR_CB(* GWEN_GUI_WRITE_DIALOG_PREFS_FN)(GWEN_GUI *gui, const char *groupName, GWEN_DB_NODE *db) |
GWENHYWFAR_API int GWEN_Gui_ConvertFromUtf8 | ( | const GWEN_GUI * | gui, |
const char * | text, | ||
int | len, | ||
GWEN_BUFFER * | tbuf | ||
) |
This function converts the given text from UTF-8 to the character set selected by GWEN_Gui_SetCharSet.
Definition at line 147 of file gui.c.
References DBG_DEBUG, DBG_ERROR, DBG_INFO, GWEN_Buffer_AppendBytes(), GWEN_ERROR_GENERIC, GWEN_LOGDOMAIN, and ICONV_CONST.
Referenced by GWEN_Gui_GetRawText().
GWENHYWFAR_API void GWEN_Gui_GetRawText | ( | const GWEN_GUI * | gui, |
const char * | text, | ||
GWEN_BUFFER * | tbuf | ||
) |
This function extracts the raw text (e.g. the part outside a HTML element) and converts it from UTF-8 to the character set selected by GWEN_Gui_SetCharSet.
Definition at line 214 of file gui.c.
References DBG_ERROR, GWEN_Buffer_AppendBytes(), GWEN_Buffer_AppendString(), GWEN_Buffer_Reset(), GWEN_Gui_ConvertFromUtf8(), and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ShowBox(), and GWEN_Gui_CProgress_Log().
GWENHYWFAR_API int GWEN_Gui_ReadDialogPrefs | ( | const char * | groupName, |
const char * | altName, | ||
GWEN_DB_NODE ** | pDb | ||
) |
Let the application read a GWEN_DB. This function is used by the platform-independent dialogs to read GUI settings (e.g. width, height etc).
This is implemented by AB_Gui, an extension of the GWEN_GUI in AqBanking using AqBanking's shared configuration module to load/save dialog settings.
groupName | name of the db to load |
altName | alternative name in case there is no group of the name groupName |
pDb | pointer to receive the GWEN_DB read |
Definition at line 1254 of file gui.c.
References GWEN_ERROR_NOT_IMPLEMENTED, and gwenhywfar_gui.
Referenced by GWEN_Dialog_new().
GWENHYWFAR_API GWEN_GUI_CHECKCERT_FN GWEN_Gui_SetCheckCertFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_CHECKCERT_FN | f | ||
) |
Definition at line 427 of file gui.c.
Referenced by CppGui::CppGui(), and GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_CLOSE_DIALOG_FN GWEN_Gui_SetCloseDialogFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_CLOSE_DIALOG_FN | f | ||
) |
Definition at line 463 of file gui.c.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), and Gtk2_Gui_new().
GWENHYWFAR_API GWEN_GUI_EXEC_DIALOG_FN GWEN_Gui_SetExecDialogFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_EXEC_DIALOG_FN | f | ||
) |
Definition at line 439 of file gui.c.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), and Gtk2_Gui_new().
GWENHYWFAR_API GWEN_GUI_GET_FILENAME_FN GWEN_Gui_SetGetFileNameFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_GET_FILENAME_FN | f | ||
) |
Definition at line 513 of file gui.c.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), and Gtk2_Gui_new().
GWENHYWFAR_API GWEN_GUI_GETPASSWORD_FN GWEN_Gui_SetGetPasswordFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_GETPASSWORD_FN | f | ||
) |
Definition at line 376 of file gui.c.
Referenced by CppGui::CppGui(), and GWEN_Gui_CGui_new().
Definition at line 292 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 268 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_LOG_HOOK_FN GWEN_Gui_SetLogHookFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_LOG_HOOK_FN | f | ||
) |
Definition at line 401 of file gui.c.
Referenced by CppGui::CppGui().
GWENHYWFAR_API GWEN_GUI_MESSAGEBOX_FN GWEN_Gui_SetMessageBoxFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_MESSAGEBOX_FN | f | ||
) |
Definition at line 256 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API void GWEN_Gui_SetName | ( | GWEN_GUI * | gui, |
const char * | name | ||
) |
Definition at line 580 of file gui.c.
References NULL.
Referenced by FOX16_Gui::FOX16_Gui(), and QT4_Gui::QT4_Gui().
GWENHYWFAR_API GWEN_GUI_OPEN_DIALOG_FN GWEN_Gui_SetOpenDialogFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_OPEN_DIALOG_FN | f | ||
) |
Definition at line 451 of file gui.c.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), and Gtk2_Gui_new().
Definition at line 364 of file gui.c.
Referenced by CppGui::CppGui().
GWENHYWFAR_API GWEN_GUI_PROGRESS_ADVANCE_FN GWEN_Gui_SetProgressAdvanceFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_PROGRESS_ADVANCE_FN | f | ||
) |
Definition at line 317 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 353 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 341 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 305 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API GWEN_GUI_RUN_DIALOG_FN GWEN_Gui_SetRunDialogFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_RUN_DIALOG_FN | f | ||
) |
Definition at line 475 of file gui.c.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), and Gtk2_Gui_new().
GWENHYWFAR_API GWEN_GUI_SETPASSWORDSTATUS_FN GWEN_Gui_SetSetPasswordStatusFn | ( | GWEN_GUI * | gui, |
GWEN_GUI_SETPASSWORDSTATUS_FN | f | ||
) |
Definition at line 389 of file gui.c.
Referenced by CppGui::CppGui(), and GWEN_Gui_CGui_new().
Definition at line 280 of file gui.c.
Referenced by GWEN_Gui_CGui_new().
GWENHYWFAR_API void GWEN_Gui_UseDialogs | ( | GWEN_GUI * | gui | ) |
The implementation should call this function if it implements the dialog framework. It sets the obsoleted callbacks to use the GWEN_DIALOG framework.
Definition at line 107 of file gui.c.
References DBG_INFO, GWEN_Gui_Internal_HideBox(), GWEN_Gui_Internal_InputBox(), GWEN_Gui_Internal_MessageBox(), GWEN_Gui_Internal_ProgressAdvance(), GWEN_Gui_Internal_ProgressEnd(), GWEN_Gui_Internal_ProgressLog(), GWEN_Gui_Internal_ProgressSetTotal(), GWEN_Gui_Internal_ProgressStart(), GWEN_Gui_Internal_ShowBox(), and GWEN_LOGDOMAIN.
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), FOX16_Gui::FOX16_Gui(), Gtk2_Gui_new(), and QT4_Gui::QT4_Gui().
GWENHYWFAR_API int GWEN_Gui_WriteDialogPrefs | ( | const char * | groupName, |
GWEN_DB_NODE * | db | ||
) |
Let the application write a GWEN_DB. This function is used by the platform-independent dialogs to write GUI settings (e.g. width, height etc).
groupName | name of the db to save |
pDb | pointer to receive the GWEN_DB read |
Definition at line 1264 of file gui.c.
References GWEN_ERROR_NOT_IMPLEMENTED, and gwenhywfar_gui.
Referenced by GWEN_Dialog_free().