gwenhywfar  4.99.8beta
Macros | Functions
progressdata.c File Reference
#include "progressdata_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for progressdata.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

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

Macro Definition Documentation

#define DISABLE_DEBUGLOG

Definition at line 15 of file progressdata.c.

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_ProgressData_ClearLogText ( GWEN_PROGRESS_DATA pd)

Definition at line 176 of file progressdata.c.

References GWEN_Buffer_Reset().

Here is the call graph for this function:

void GWEN_ProgressData_free ( GWEN_PROGRESS_DATA pd)

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

Here is the call graph for this function:

Here is the caller graph for this function:

int GWEN_ProgressData_GetAborted ( const GWEN_PROGRESS_DATA pd)

Definition at line 192 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressAdvance(), GWEN_Gui_Internal_ProgressLog(), and GWEN_Gui_Internal_ProgressSetTotal().

Here is the caller graph for this function:

time_t GWEN_ProgressData_GetCheckTime ( const GWEN_PROGRESS_DATA pd)

Definition at line 234 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressAdvance(), and GWEN_Gui_Internal_ProgressSetTotal().

Here is the caller graph for this function:

uint64_t GWEN_ProgressData_GetCurrent ( const GWEN_PROGRESS_DATA pd)
GWEN_DIALOG* GWEN_ProgressData_GetDialog ( const GWEN_PROGRESS_DATA pd)
uint32_t GWEN_ProgressData_GetFlags ( const GWEN_PROGRESS_DATA pd)

Definition at line 99 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

GWEN_GUI* GWEN_ProgressData_GetGui ( const GWEN_PROGRESS_DATA pd)

Definition at line 71 of file progressdata.c.

uint32_t GWEN_ProgressData_GetId ( const GWEN_PROGRESS_DATA pd)
GWEN_BUFFER* GWEN_ProgressData_GetLogBuf ( const GWEN_PROGRESS_DATA pd)

Definition at line 162 of file progressdata.c.

const char* GWEN_ProgressData_GetLogText ( const GWEN_PROGRESS_DATA pd)

Definition at line 169 of file progressdata.c.

References GWEN_Buffer_GetStart().

Here is the call graph for this function:

uint32_t GWEN_ProgressData_GetPreviousId ( const GWEN_PROGRESS_DATA pd)

Definition at line 85 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressEnd().

Here is the caller graph for this function:

int GWEN_ProgressData_GetShown ( const GWEN_PROGRESS_DATA pd)

Definition at line 206 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow(), GWEN_Gui_Internal_ProgressEnd(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

time_t GWEN_ProgressData_GetStartTime ( const GWEN_PROGRESS_DATA pd)

Definition at line 220 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

uint64_t GWEN_ProgressData_GetTotal ( const GWEN_PROGRESS_DATA pd)

Definition at line 134 of file progressdata.c.

Referenced by GWEN_DlgProgress_Init(), GWEN_DlgProgress_SetFirstProgress(), GWEN_DlgProgress_SetSecondProgress(), and GWEN_DlgProgress_TotalChanged().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_ProgressData_SetAborted ( GWEN_PROGRESS_DATA pd,
int  i 
)

Definition at line 199 of file progressdata.c.

Referenced by GWEN_DlgProgress_HandleActivated().

Here is the caller graph for this function:

void GWEN_ProgressData_SetCheckTime ( GWEN_PROGRESS_DATA pd,
time_t  t 
)

Definition at line 241 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressAdvance(), and GWEN_Gui_Internal_ProgressSetTotal().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void GWEN_ProgressData_SetDialog ( GWEN_PROGRESS_DATA pd,
GWEN_DIALOG dlg 
)

Definition at line 255 of file progressdata.c.

Referenced by GWEN_Gui_Internal_ProgressEnd(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void GWEN_ProgressData_SetShown ( GWEN_PROGRESS_DATA pd,
int  i 
)

Definition at line 213 of file progressdata.c.

Referenced by GWEN_Gui_Internal_CheckShow(), GWEN_Gui_Internal_ProgressLog(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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 
)

Definition at line 262 of file progressdata.c.

References GWEN_ProgressData_GetId().

Referenced by GWEN_Gui_Internal_ProgressAdvance(), GWEN_Gui_Internal_ProgressEnd(), GWEN_Gui_Internal_ProgressLog(), GWEN_Gui_Internal_ProgressSetTotal(), and GWEN_Gui_Internal_ProgressStart().

Here is the call graph for this function:

Here is the caller graph for this function: