gwenhywfar 5.10.1
Macros | Functions | Variables
gui.c File Reference
#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"
Include dependency graph for gui.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 
#define ICONV_CONST
 

Functions

void GWEN_Gui_AddFlags (GWEN_GUI *gui, uint32_t fl)
 
void GWEN_Gui_Attach (GWEN_GUI *gui)
 
void GWEN_Gui_free (GWEN_GUI *gui)
 
const char * GWEN_Gui_GetCharSet (const GWEN_GUI *gui)
 
uint32_t GWEN_Gui_GetFlags (const GWEN_GUI *gui)
 
GWEN_GUIGWEN_Gui_GetGui (void)
 
GWEN_LOGGER_LEVEL GWEN_Gui_GetMinProgressLogLevel (const GWEN_GUI *gui)
 
const char * GWEN_Gui_GetName (void)
 
GWEN_PASSWD_STOREGWEN_Gui_GetPasswdStore (const GWEN_GUI *gui)
 
GWEN_DB_NODEGWEN_Gui_GetPasswordDb (const GWEN_GUI *gui)
 
void GWEN_Gui_ModuleFini ()
 
int GWEN_Gui_ModuleInit ()
 
GWEN_GUIGWEN_Gui_new (void)
 
void GWEN_Gui_SetCharSet (GWEN_GUI *gui, const char *s)
 
void GWEN_Gui_SetFlags (GWEN_GUI *gui, uint32_t fl)
 
void GWEN_Gui_SetGui (GWEN_GUI *gui)
 
void GWEN_Gui_SetMinProgressLogLevel (GWEN_GUI *gui, GWEN_LOGGER_LEVEL ll)
 
void GWEN_Gui_SetName (GWEN_GUI *gui, const char *name)
 
void GWEN_Gui_SetPasswdStore (GWEN_GUI *gui, GWEN_PASSWD_STORE *sto)
 
void GWEN_Gui_SetPasswordDb (GWEN_GUI *gui, GWEN_DB_NODE *dbPasswords, int persistent)
 
void GWEN_Gui_ShowError (const char *title, const char *fmt,...)
 
void GWEN_Gui_SubFlags (GWEN_GUI *gui, uint32_t fl)
 

Variables

static GWEN_THREADLOCAL_DATA_globalThreadLocalGuiContainer =NULL
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 30 of file gui.c.

◆ ICONV_CONST

#define ICONV_CONST

Definition at line 34 of file gui.c.

Function Documentation

◆ GWEN_Gui_AddFlags()

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().

Here is the caller graph for this function:

◆ GWEN_Gui_Attach()

void GWEN_Gui_Attach ( GWEN_GUI gui)

Definition at line 151 of file gui.c.

Referenced by GWEN_Gui_SetGui().

Here is the caller graph for this function:

◆ GWEN_Gui_free()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_GetCharSet()

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().

Here is the caller graph for this function:

◆ GWEN_Gui_GetFlags()

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().

Here is the caller graph for this function:

◆ GWEN_Gui_GetGui()

GWEN_GUI * GWEN_Gui_GetGui ( void  )

◆ GWEN_Gui_GetMinProgressLogLevel()

GWEN_LOGGER_LEVEL GWEN_Gui_GetMinProgressLogLevel ( const GWEN_GUI gui)

Returns the minimum log level needed to show progress logs

Definition at line 398 of file gui.c.

◆ GWEN_Gui_GetName()

const char * GWEN_Gui_GetName ( void  )

Definition at line 238 of file gui.c.

References GWEN_Gui_GetGui(), and NULL.

Here is the call graph for this function:

◆ GWEN_Gui_GetPasswdStore()

GWEN_PASSWD_STORE * GWEN_Gui_GetPasswdStore ( const GWEN_GUI gui)

Definition at line 322 of file gui.c.

References NULL.

◆ GWEN_Gui_GetPasswordDb()

GWEN_DB_NODE * GWEN_Gui_GetPasswordDb ( const GWEN_GUI gui)

Returns a pointer to the internally used password cache. The GUI object remains the owner of the object returned (if any).

Definition at line 357 of file gui.c.

◆ GWEN_Gui_ModuleFini()

void GWEN_Gui_ModuleFini ( )

Definition at line 89 of file gui.c.

References _globalThreadLocalGuiContainer, GWEN_ThreadLocalData_free(), and NULL.

Referenced by GWEN_Fini().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_ModuleInit()

int GWEN_Gui_ModuleInit ( )

Definition at line 79 of file gui.c.

References _globalThreadLocalGuiContainer, GWEN_ERROR_GENERIC, GWEN_ThreadLocalData_new(), and NULL.

Referenced by GWEN_Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_new()

GWEN_GUI * GWEN_Gui_new ( void  )

◆ GWEN_Gui_SetCharSet()

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().

Here is the caller graph for this function:

◆ GWEN_Gui_SetFlags()

void GWEN_Gui_SetFlags ( GWEN_GUI gui,
uint32_t  fl 
)

Definition at line 203 of file gui.c.

◆ GWEN_Gui_SetGui()

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(), test10(), test11(), test12(), test2(), test3(), test4(), test5(), test6(), test7(), test8(), test9(), and test_gui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_SetMinProgressLogLevel()

void GWEN_Gui_SetMinProgressLogLevel ( GWEN_GUI gui,
GWEN_LOGGER_LEVEL  ll 
)

Definition at line 406 of file gui.c.

◆ GWEN_Gui_SetName()

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().

Here is the caller graph for this function:

◆ GWEN_Gui_SetPasswdStore()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_SetPasswordDb()

void GWEN_Gui_SetPasswordDb ( GWEN_GUI gui,
GWEN_DB_NODE dbPasswords,
int  persistent 
)

Set the password DB. Takes over the given DB.

Parameters
guiGUI object
dbPasswordspassword cache
persistentif !=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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_ShowError()

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.

Here is the call graph for this function:

◆ GWEN_Gui_SubFlags()

void GWEN_Gui_SubFlags ( GWEN_GUI gui,
uint32_t  fl 
)

Definition at line 219 of file gui.c.

Variable Documentation

◆ _globalThreadLocalGuiContainer

GWEN_THREADLOCAL_DATA* _globalThreadLocalGuiContainer =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().