|
gwenhywfar 5.14.1
|
#include "gui_p.h"#include "dlg_input_l.h"#include "dlg_message_l.h"#include "dlg_progress_l.h"#include "dlg_showbox_l.h"#include "i18n_l.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/dialog_be.h>#include <gwenhywfar/mdigest.h>#include <gwenhywfar/text.h>#include <gwenhywfar/url.h>#include <gwenhywfar/syncio_socket.h>#include <gwenhywfar/syncio_buffered.h>#include <gwenhywfar/syncio_tls.h>#include <gwenhywfar/syncio_http.h>#include <gwenhywfar/threadlocaldata.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include <ctype.h>#include "gui_cert.c"#include "gui_dialogs.c"#include "gui_passwd.c"#include "gui_syncio.c"#include "gui_utils.c"#include "gui_virtual.c"
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
| #define | ICONV_CONST |
Variables | |
| static GWEN_THREADLOCAL_DATA * | _globalThreadLocalGuiContainer =NULL |
| void GWEN_Gui_AddFlags | ( | GWEN_GUI * | gui, |
| uint32_t | fl ) |
Definition at line 211 of file gui.c.
Referenced by Cocoa_Gui_new(), FOX16_Gui::FOX16_Gui(), Gtk2_Gui_new(), Gtk3_Gui_new(), QT4_Gui::QT4_Gui(), QT5_Gui::QT5_Gui(), and test_gui().

| void GWEN_Gui_Attach | ( | GWEN_GUI * | gui | ) |
Definition at line 151 of file gui.c.
Referenced by GWEN_Gui_SetGui().

| void GWEN_Gui_free | ( | GWEN_GUI * | gui | ) |
Definition at line 127 of file gui.c.
References GWEN_DB_Group_free(), GWEN_Dialog_List_free(), GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_PasswordStore_free(), and GWEN_StringList_free().
Referenced by GWEN_Gui_SetGui(), test_gui(), and CppGui::~CppGui().


| const char * GWEN_Gui_GetCharSet | ( | const GWEN_GUI * | gui | ) |
Definition at line 250 of file gui.c.
References NULL.
Referenced by GWEN_Gui_CGui__input().

| uint32_t GWEN_Gui_GetFlags | ( | const GWEN_GUI * | gui | ) |
Definition at line 195 of file gui.c.
Referenced by GWEN_DlgInput_new(), GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CProgress_Advance(), GWEN_Gui_CProgress_End(), and GWEN_Gui_CProgress_Log().

| GWEN_GUI * GWEN_Gui_GetGui | ( | void | ) |
Definition at line 160 of file gui.c.
References _globalThreadLocalGuiContainer, GWEN_ThreadLocalData_GetData(), and NULL.
Referenced by _setupGui(), CppGui::getCppGui(), GWEN_DlgInput_new(), GWEN_Gui_CheckCert(), GWEN_Gui_CloseDialog(), GWEN_Gui_ExecDialog(), GWEN_Gui_ExtendSyncIo(), GWEN_Gui_GetFileName(), GWEN_Gui_GetName(), GWEN_Gui_GetPassword(), GWEN_Gui_GetSyncIo(), GWEN_Gui_HideBox(), GWEN_Gui_InputBox(), GWEN_Gui_KeyDataFromText_OpenSSL(), GWEN_Gui_LogHook(), GWEN_Gui_MessageBox(), GWEN_Gui_OpenDialog(), GWEN_Gui_Print(), GWEN_Gui_ProgressAdvance(), GWEN_Gui_ProgressEnd(), GWEN_Gui_ProgressLog(), GWEN_Gui_ProgressSetTotal(), GWEN_Gui_ProgressStart(), GWEN_Gui_ReadDialogPrefs(), GWEN_Gui_ReadString(), GWEN_Gui_RunDialog(), GWEN_Gui_SetPasswordStatus(), GWEN_Gui_ShowBox(), GWEN_Gui_WaitForSockets(), and GWEN_Gui_WriteDialogPrefs().


| GWEN_LOGGER_LEVEL GWEN_Gui_GetMinProgressLogLevel | ( | const GWEN_GUI * | gui | ) |
| const char * GWEN_Gui_GetName | ( | void | ) |
Definition at line 238 of file gui.c.
References GWEN_Gui_GetGui(), and NULL.

| GWEN_PASSWD_STORE * GWEN_Gui_GetPasswdStore | ( | const GWEN_GUI * | gui | ) |
| GWEN_DB_NODE * GWEN_Gui_GetPasswordDb | ( | const GWEN_GUI * | gui | ) |
| void GWEN_Gui_ModuleFini | ( | ) |
Definition at line 89 of file gui.c.
References _globalThreadLocalGuiContainer, GWEN_ThreadLocalData_free(), and NULL.
Referenced by GWEN_Fini().


| int GWEN_Gui_ModuleInit | ( | ) |
Definition at line 79 of file gui.c.
References _globalThreadLocalGuiContainer, GWEN_ERROR_GENERIC, GWEN_Gui_ModuleInit(), GWEN_ThreadLocalData_new(), and NULL.
Referenced by GWEN_Gui_ModuleInit(), and GWEN_Init().


| GWEN_GUI * GWEN_Gui_new | ( | void | ) |
Definition at line 99 of file gui.c.
References GWEN_DB_Group_new(), GWEN_Dialog_List_new(), GWEN_Gui_CheckCertBuiltIn(), GWEN_Gui_Internal_GetPassword(), GWEN_Gui_Internal_GetSyncIo(), GWEN_Gui_Internal_SetPasswordStatus(), GWEN_Gui_SetCharSet(), GWEN_INHERIT_INIT, GWEN_LoggerLevel_Info, GWEN_NEW_OBJECT, and GWEN_StringList_new().
Referenced by Cocoa_Gui_new(), CppGui::CppGui(), Gtk2_Gui_new(), Gtk3_Gui_new(), GWEN_Gui_CGui_new(), and GWEN_NoGui_new().


| void GWEN_Gui_SetCharSet | ( | GWEN_GUI * | gui, |
| const char * | s ) |
Definition at line 259 of file gui.c.
References DBG_ERROR, DBG_INFO, GWEN_LOGDOMAIN, and NULL.
Referenced by GWEN_Gui_new().

| void GWEN_Gui_SetGui | ( | GWEN_GUI * | gui | ) |
Definition at line 170 of file gui.c.
References _globalThreadLocalGuiContainer, DBG_ERROR, GWEN_Gui_Attach(), GWEN_Gui_free(), GWEN_LOGDOMAIN, GWEN_ThreadLocalData_GetData(), GWEN_ThreadLocalData_SetData(), and NULL.
Referenced by main(), test1(), test1(), test10(), test11(), test12(), test2(), test3(), test4(), test5(), test6(), test7(), test8(), test9(), and test_gui().


| void GWEN_Gui_SetMinProgressLogLevel | ( | GWEN_GUI * | gui, |
| GWEN_LOGGER_LEVEL | ll ) |
| void GWEN_Gui_SetName | ( | GWEN_GUI * | gui, |
| const char * | name ) |
Definition at line 227 of file gui.c.
References NULL.
Referenced by FOX16_Gui::FOX16_Gui(), QT4_Gui::QT4_Gui(), and QT5_Gui::QT5_Gui().

| void GWEN_Gui_SetPasswdStore | ( | GWEN_GUI * | gui, |
| GWEN_PASSWD_STORE * | sto ) |
Definition at line 331 of file gui.c.
References GWEN_GUI_FLAGS_PERMPASSWORDS, and GWEN_PasswordStore_free().
Referenced by CppGui::setPasswordStore().


| void GWEN_Gui_SetPasswordDb | ( | GWEN_GUI * | gui, |
| GWEN_DB_NODE * | dbPasswords, | ||
| int | persistent ) |
Set the password DB. Takes over the given DB.
| gui | GUI object |
| dbPasswords | password cache |
| persistent | if !=0 then the passwords come from a password file and a request to clear the password cache will be ignored. |
Definition at line 346 of file gui.c.
References GWEN_DB_Group_free().
Referenced by CppGui::setPasswordDb().


| void GWEN_Gui_ShowError | ( | const char * | title, |
| const char * | text, | ||
| ... ) |
This is a convenience function which calls GWEN_Gui_MessageBox showing the given message and a single "Close" button. It is especially well suited to show an error message.
Definition at line 373 of file gui.c.
References DBG_WARN, fmt, GWEN_Gui_MessageBox(), GWEN_GUI_MSG_FLAGS_CONFIRM_B1, GWEN_GUI_MSG_FLAGS_SEVERITY_NORMAL, GWEN_GUI_MSG_FLAGS_TYPE_ERROR, GWEN_LOGDOMAIN, I18N, and NULL.

|
static |
Definition at line 72 of file gui.c.
Referenced by GWEN_Gui_GetGui(), GWEN_Gui_ModuleFini(), GWEN_Gui_ModuleInit(), and GWEN_Gui_SetGui().