|
gwenhywfar
5.10.1
|
#include "cgui_p.h"#include "i18n_l.h"#include <gwenhywfar/gui_be.h>#include <gwenhywfar/inherit.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/misc.h>#include <gwenhywfar/db.h>#include <gwenhywfar/gwentime.h>#include <gwenhywfar/mdigest.h>#include <gwenhywfar/text.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <unistd.h>#include <fcntl.h>#include <stdio.h>#include <errno.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
| #define | ICONV_CONST |
Functions | |
| GWEN_GUI_CPROGRESS * | GWEN_Gui_CGui__findProgress (GWEN_GUI *gui, uint32_t id) |
| int | GWEN_Gui_CGui__input (GWEN_UNUSED GWEN_GUI *gui, uint32_t flags, char *buffer, int minLen, int maxLen, uint32_t guiid) |
| char | GWEN_Gui_CGui__readCharFromStdin (int waitFor) |
| void GWENHYWFAR_CB | GWEN_Gui_CGui_FreeData (GWEN_UNUSED void *bp, void *p) |
| void GWENHYWFAR_CB | GWEN_Gui_CGui_HideBox (GWEN_GUI *gui, GWEN_UNUSED uint32_t id) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_InputBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_MessageBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, GWEN_UNUSED uint32_t guiid) |
| GWEN_GUI * | GWEN_Gui_CGui_new (void) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_ProgressAdvance (GWEN_GUI *gui, uint32_t id, uint64_t progress) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_ProgressEnd (GWEN_GUI *gui, uint32_t id) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_ProgressLog (GWEN_GUI *gui, uint32_t id, GWEN_LOGGER_LEVEL level, const char *text) |
| int GWENHYWFAR_CB | GWEN_Gui_CGui_ProgressSetTotal (GWEN_GUI *gui, uint32_t id, uint64_t total) |
| uint32_t GWENHYWFAR_CB | GWEN_Gui_CGui_ProgressStart (GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, GWEN_UNUSED uint32_t guiid) |
| uint32_t GWENHYWFAR_CB | GWEN_Gui_CGui_ShowBox (GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, const char *title, const char *text, GWEN_UNUSED uint32_t guiid) |
| #define ICONV_CONST |
Definition at line 64 of file cgui.c.
Referenced by GWEN_Gui_CGui__input(), and GWEN_Gui_ConvertString().
| GWEN_GUI_CPROGRESS* GWEN_Gui_CGui__findProgress | ( | GWEN_GUI * | gui, |
| uint32_t | id | ||
| ) |
Definition at line 602 of file cgui.c.
References GWEN_Gui_CProgress_GetId(), and GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_CGui_ProgressAdvance(), GWEN_Gui_CGui_ProgressEnd(), GWEN_Gui_CGui_ProgressLog(), and GWEN_Gui_CGui_ProgressSetTotal().


| int GWEN_Gui_CGui__input | ( | GWEN_UNUSED GWEN_GUI * | gui, |
| uint32_t | flags, | ||
| char * | buffer, | ||
| int | minLen, | ||
| int | maxLen, | ||
| uint32_t | guiid | ||
| ) |
Definition at line 167 of file cgui.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_DEFAULT_VALUE, GWEN_ERROR_GENERIC, GWEN_ERROR_USER_ABORTED, GWEN_Gui_GetCharSet(), GWEN_GUI_INPUT_FLAGS_ALLOW_DEFAULT, GWEN_GUI_INPUT_FLAGS_NUMERIC, GWEN_GUI_INPUT_FLAGS_SHOW, GWEN_Gui_MessageBox(), GWEN_GUI_MSG_FLAGS_CONFIRM_B1, GWEN_GUI_MSG_FLAGS_SEVERITY_DANGEROUS, GWEN_GUI_MSG_FLAGS_TYPE_INFO, GWEN_Gui_StdPrintf(), GWEN_LOGDOMAIN, I18N, and ICONV_CONST.
Referenced by GWEN_Gui_CGui_InputBox().


| char GWEN_Gui_CGui__readCharFromStdin | ( | int | waitFor | ) |
Definition at line 111 of file cgui.c.
Referenced by GWEN_Gui_CGui_MessageBox().

| void GWENHYWFAR_CB GWEN_Gui_CGui_FreeData | ( | GWEN_UNUSED void * | bp, |
| void * | p | ||
| ) |
Definition at line 100 of file cgui.c.
References GWEN_FREE_OBJECT.
Referenced by GWEN_Gui_CGui_new().

| void GWENHYWFAR_CB GWEN_Gui_CGui_HideBox | ( | GWEN_GUI * | gui, |
| GWEN_UNUSED uint32_t | id | ||
| ) |
Definition at line 563 of file cgui.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_CGui_new().

| int GWENHYWFAR_CB GWEN_Gui_CGui_InputBox | ( | GWEN_GUI * | gui, |
| uint32_t | flags, | ||
| const char * | title, | ||
| const char * | text, | ||
| char * | buffer, | ||
| int | minLen, | ||
| int | maxLen, | ||
| uint32_t | guiid | ||
| ) |
Definition at line 458 of file cgui.c.
References DBG_ERROR, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_INVALID, GWEN_ERROR_USER_ABORTED, GWEN_Gui_CGui__input(), GWEN_GUI_FLAGS_NONINTERACTIVE, GWEN_GUI_FLAGS_PERMPASSWORDS, GWEN_Gui_GetFlags(), GWEN_Gui_GetRawText(), GWEN_GUI_INPUT_FLAGS_CONFIRM, GWEN_GUI_INPUT_FLAGS_TAN, GWEN_Gui_StdPrintf(), and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| int GWENHYWFAR_CB GWEN_Gui_CGui_MessageBox | ( | GWEN_GUI * | gui, |
| uint32_t | flags, | ||
| const char * | title, | ||
| const char * | text, | ||
| const char * | b1, | ||
| const char * | b2, | ||
| const char * | b3, | ||
| GWEN_UNUSED uint32_t | guiid | ||
| ) |
Definition at line 378 of file cgui.c.
References DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_USER_ABORTED, GWEN_Gui_CGui__readCharFromStdin(), GWEN_GUI_FLAGS_NONINTERACTIVE, GWEN_Gui_GetFlags(), GWEN_Gui_GetRawText(), GWEN_GUI_MSG_FLAGS_CONFIRM_BUTTON, GWEN_GUI_MSG_FLAGS_SEVERITY_IS_DANGEROUS, GWEN_Gui_StdPrintf(), and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressAdvance | ( | GWEN_GUI * | gui, |
| uint32_t | id, | ||
| uint64_t | progress | ||
| ) |
Definition at line 625 of file cgui.c.
References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_Advance(), GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressEnd | ( | GWEN_GUI * | gui, |
| uint32_t | id | ||
| ) |
Definition at line 692 of file cgui.c.
References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_End(), GWEN_Gui_CProgress_free(), GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressLog | ( | GWEN_GUI * | gui, |
| uint32_t | id, | ||
| GWEN_LOGGER_LEVEL | level, | ||
| const char * | text | ||
| ) |
Definition at line 668 of file cgui.c.
References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_Log(), GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressSetTotal | ( | GWEN_GUI * | gui, |
| uint32_t | id, | ||
| uint64_t | total | ||
| ) |
Definition at line 648 of file cgui.c.
References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_SetTotal(), GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by GWEN_Gui_CGui_new().


| uint32_t GWENHYWFAR_CB GWEN_Gui_CGui_ProgressStart | ( | GWEN_GUI * | gui, |
| uint32_t | progressFlags, | ||
| const char * | title, | ||
| const char * | text, | ||
| uint64_t | total, | ||
| GWEN_UNUSED uint32_t | guiid | ||
| ) |
Definition at line 576 of file cgui.c.
References GWEN_Gui_CProgress_GetId(), GWEN_Gui_CProgress_new(), and GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_CGui_new().


| uint32_t GWENHYWFAR_CB GWEN_Gui_CGui_ShowBox | ( | GWEN_GUI * | gui, |
| GWEN_UNUSED uint32_t | flags, | ||
| const char * | title, | ||
| const char * | text, | ||
| GWEN_UNUSED uint32_t | guiid | ||
| ) |
Definition at line 537 of file cgui.c.
References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Gui_GetRawText(), GWEN_Gui_StdPrintf(), and GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_CGui_new().


1.8.14