gwenhywfar  4.3.1
Typedefs | Functions
progressdata_l.h File Reference
#include <gwenhywfar/tree.h>
#include <gwenhywfar/gui_be.h>
#include <gwenhywfar/buffer.h>
#include <time.h>

Go to the source code of this file.

Typedefs

typedef struct GWEN_PROGRESS_DATA GWEN_PROGRESS_DATA

Functions

void GWEN_ProgressData_AddFlags (GWEN_PROGRESS_DATA *pd, uint32_t fl)
void GWEN_ProgressData_AddLogText (GWEN_PROGRESS_DATA *pd, GWEN_LOGGER_LEVEL level, const char *s)
void GWEN_ProgressData_ClearLogText (GWEN_PROGRESS_DATA *pd)
void GWEN_ProgressData_free (GWEN_PROGRESS_DATA *pd)
int GWEN_ProgressData_GetAborted (const GWEN_PROGRESS_DATA *pd)
time_t GWEN_ProgressData_GetCheckTime (const GWEN_PROGRESS_DATA *pd)
uint64_t GWEN_ProgressData_GetCurrent (const GWEN_PROGRESS_DATA *pd)
GWEN_DIALOGGWEN_ProgressData_GetDialog (const GWEN_PROGRESS_DATA *pd)
uint32_t GWEN_ProgressData_GetFlags (const GWEN_PROGRESS_DATA *pd)
GWEN_GUIGWEN_ProgressData_GetGui (const GWEN_PROGRESS_DATA *pd)
uint32_t GWEN_ProgressData_GetId (const GWEN_PROGRESS_DATA *pd)
const char * GWEN_ProgressData_GetLogText (const GWEN_PROGRESS_DATA *pd)
uint32_t GWEN_ProgressData_GetPreviousId (const GWEN_PROGRESS_DATA *pd)
int GWEN_ProgressData_GetShown (const GWEN_PROGRESS_DATA *pd)
time_t GWEN_ProgressData_GetStartTime (const GWEN_PROGRESS_DATA *pd)
const char * GWEN_ProgressData_GetText (const GWEN_PROGRESS_DATA *pd)
const char * GWEN_ProgressData_GetTitle (const GWEN_PROGRESS_DATA *pd)
uint64_t GWEN_ProgressData_GetTotal (const GWEN_PROGRESS_DATA *pd)
GWEN_PROGRESS_DATAGWEN_ProgressData_new (GWEN_GUI *gui, uint32_t id, uint32_t progressFlags, const char *title, const char *text, uint64_t total)
void GWEN_ProgressData_SetAborted (GWEN_PROGRESS_DATA *pd, int i)
void GWEN_ProgressData_SetCheckTime (GWEN_PROGRESS_DATA *pd, time_t t)
void GWEN_ProgressData_SetCurrent (GWEN_PROGRESS_DATA *pd, uint64_t i)
void GWEN_ProgressData_SetDialog (GWEN_PROGRESS_DATA *pd, GWEN_DIALOG *dlg)
void GWEN_ProgressData_SetPreviousId (GWEN_PROGRESS_DATA *pd, uint32_t i)
void GWEN_ProgressData_SetShown (GWEN_PROGRESS_DATA *pd, int i)
void GWEN_ProgressData_SetStartTime (GWEN_PROGRESS_DATA *pd, time_t t)
void GWEN_ProgressData_SetTotal (GWEN_PROGRESS_DATA *pd, uint64_t i)
void GWEN_ProgressData_SubFlags (GWEN_PROGRESS_DATA *pd, uint32_t fl)
GWEN_PROGRESS_DATAGWEN_ProgressData_Tree_FindProgressById (GWEN_PROGRESS_DATA_TREE *pt, uint32_t id)

Typedef Documentation

Definition at line 23 of file progressdata_l.h.


Function Documentation

void GWEN_ProgressData_AddFlags ( GWEN_PROGRESS_DATA pd,
uint32_t  fl 
)

Definition at line 106 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressLog().

void GWEN_ProgressData_AddLogText ( GWEN_PROGRESS_DATA pd,
GWEN_LOGGER_LEVEL  level,
const char *  s 
)

Definition at line 183 of file progressdata.c.

References GWEN_Buffer_AppendString().

Referenced by GWEN_Gui_Internal_ProgressLog().

Definition at line 176 of file progressdata.c.

References GWEN_Buffer_Reset().

Definition at line 59 of file progressdata.c.

References GWEN_Buffer_free(), GWEN_FREE_OBJECT, and GWEN_TREE_FINI.

Referenced by GWEN_Gui_Internal_ProgressEnd().

Definition at line 99 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow(), and GWEN_Gui_ShowProgress().

Definition at line 71 of file progressdata.c.

uint32_t GWEN_ProgressData_GetId ( const GWEN_PROGRESS_DATA pd)
const char* GWEN_ProgressData_GetLogText ( const GWEN_PROGRESS_DATA pd)

Definition at line 169 of file progressdata.c.

References GWEN_Buffer_GetStart().

Definition at line 85 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressEnd().

Definition at line 220 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow().

const char* GWEN_ProgressData_GetText ( const GWEN_PROGRESS_DATA pd)

Definition at line 127 of file progressdata.c.

Referenced by GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetFirstProgress().

const char* GWEN_ProgressData_GetTitle ( const GWEN_PROGRESS_DATA pd)

Definition at line 120 of file progressdata.c.

Referenced by GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetFirstProgress().

GWEN_PROGRESS_DATA* GWEN_ProgressData_new ( GWEN_GUI gui,
uint32_t  id,
uint32_t  progressFlags,
const char *  title,
const char *  text,
uint64_t  total 
)

Definition at line 31 of file progressdata.c.

References GWEN_Buffer_new(), GWEN_NEW_OBJECT, and GWEN_TREE_INIT.

Referenced by GWEN_Gui_Internal_ProgressStart().

Definition at line 199 of file progressdata.c.

Referenced by GWEN_DlgProgress_HandleActivated().

void GWEN_ProgressData_SetCheckTime ( GWEN_PROGRESS_DATA pd,
time_t  t 
)
void GWEN_ProgressData_SetCurrent ( GWEN_PROGRESS_DATA pd,
uint64_t  i 
)

Definition at line 148 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressAdvance().

Definition at line 255 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressEnd(), and GWEN_Gui_ShowProgress().

void GWEN_ProgressData_SetPreviousId ( GWEN_PROGRESS_DATA pd,
uint32_t  i 
)

Definition at line 92 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressStart().

void GWEN_ProgressData_SetShown ( GWEN_PROGRESS_DATA pd,
int  i 
)
void GWEN_ProgressData_SetStartTime ( GWEN_PROGRESS_DATA pd,
time_t  t 
)

Definition at line 227 of file progressdata.c.

void GWEN_ProgressData_SetTotal ( GWEN_PROGRESS_DATA pd,
uint64_t  i 
)

Definition at line 155 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressSetTotal().

void GWEN_ProgressData_SubFlags ( GWEN_PROGRESS_DATA pd,
uint32_t  fl 
)

Definition at line 113 of file progressdata.c.

GWEN_PROGRESS_DATA* GWEN_ProgressData_Tree_FindProgressById ( GWEN_PROGRESS_DATA_TREE *  pt,
uint32_t  id 
)