gwenhywfar 5.14.1
progressdata_l.h File Reference
#include <gwenhywfar/tree.h>
#include <gwenhywfar/gui_be.h>
#include <gwenhywfar/buffer.h>
#include <time.h>
Include dependency graph for progressdata_l.h:
This graph shows which files directly or indirectly include this file:

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

◆ GWEN_PROGRESS_DATA

Definition at line 23 of file progressdata_l.h.

Function Documentation

◆ GWEN_ProgressData_AddFlags()

void GWEN_ProgressData_AddFlags ( GWEN_PROGRESS_DATA * pd,
uint32_t fl )

Definition at line 113 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressLog().

Here is the caller graph for this function:

◆ GWEN_ProgressData_AddLogText()

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

◆ GWEN_ProgressData_ClearLogText()

void GWEN_ProgressData_ClearLogText ( GWEN_PROGRESS_DATA * pd)

Definition at line 193 of file progressdata.c.

References GWEN_Buffer_Reset().

Here is the call graph for this function:

◆ GWEN_ProgressData_free()

void GWEN_ProgressData_free ( GWEN_PROGRESS_DATA * pd)

Definition at line 60 of file progressdata.c.

References GWEN_Buffer_free(), GWEN_FREE_OBJECT, and GWEN_TREE_FINI.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

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

◆ GWEN_ProgressData_GetAborted()

int GWEN_ProgressData_GetAborted ( const GWEN_PROGRESS_DATA * pd)

Definition at line 211 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressAdvance(), GWEN_Gui_DialogBased_ProgressLog(), and GWEN_Gui_DialogBased_ProgressSetTotal().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetCheckTime()

time_t GWEN_ProgressData_GetCheckTime ( const GWEN_PROGRESS_DATA * pd)

Definition at line 259 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressAdvance(), and GWEN_Gui_DialogBased_ProgressSetTotal().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetCurrent()

uint64_t GWEN_ProgressData_GetCurrent ( const GWEN_PROGRESS_DATA * pd)

◆ GWEN_ProgressData_GetDialog()

◆ GWEN_ProgressData_GetFlags()

uint32_t GWEN_ProgressData_GetFlags ( const GWEN_PROGRESS_DATA * pd)

Definition at line 105 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_CheckShow(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetGui()

GWEN_GUI * GWEN_ProgressData_GetGui ( const GWEN_PROGRESS_DATA * pd)

Definition at line 73 of file progressdata.c.

◆ GWEN_ProgressData_GetId()

uint32_t GWEN_ProgressData_GetId ( const GWEN_PROGRESS_DATA * pd)

◆ GWEN_ProgressData_GetLogText()

const char * GWEN_ProgressData_GetLogText ( const GWEN_PROGRESS_DATA * pd)

Definition at line 185 of file progressdata.c.

References GWEN_Buffer_GetStart().

Here is the call graph for this function:

◆ GWEN_ProgressData_GetPreviousId()

uint32_t GWEN_ProgressData_GetPreviousId ( const GWEN_PROGRESS_DATA * pd)

Definition at line 89 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetShown()

int GWEN_ProgressData_GetShown ( const GWEN_PROGRESS_DATA * pd)

Definition at line 227 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_CheckShow(), GWEN_Gui_DialogBased_ProgressEnd(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetStartTime()

time_t GWEN_ProgressData_GetStartTime ( const GWEN_PROGRESS_DATA * pd)

Definition at line 243 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_CheckShow().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetText()

const char * GWEN_ProgressData_GetText ( const GWEN_PROGRESS_DATA * pd)

Definition at line 137 of file progressdata.c.

Referenced by GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetFirstProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetTitle()

const char * GWEN_ProgressData_GetTitle ( const GWEN_PROGRESS_DATA * pd)

Definition at line 129 of file progressdata.c.

Referenced by GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetFirstProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_GetTotal()

uint64_t GWEN_ProgressData_GetTotal ( const GWEN_PROGRESS_DATA * pd)

Definition at line 145 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_ProgressData_new()

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, GWEN_ProgressData_new(), and GWEN_TREE_INIT.

Referenced by GWEN_Gui_DialogBased_ProgressStart(), and GWEN_ProgressData_new().

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

◆ GWEN_ProgressData_SetAborted()

void GWEN_ProgressData_SetAborted ( GWEN_PROGRESS_DATA * pd,
int i )

Definition at line 219 of file progressdata.c.

Referenced by GWEN_DlgProgress_HandleActivated().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetCheckTime()

void GWEN_ProgressData_SetCheckTime ( GWEN_PROGRESS_DATA * pd,
time_t t )

Definition at line 267 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressAdvance(), and GWEN_Gui_DialogBased_ProgressSetTotal().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetCurrent()

void GWEN_ProgressData_SetCurrent ( GWEN_PROGRESS_DATA * pd,
uint64_t i )

Definition at line 161 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressAdvance().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetDialog()

void GWEN_ProgressData_SetDialog ( GWEN_PROGRESS_DATA * pd,
GWEN_DIALOG * dlg )

Definition at line 283 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressEnd(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetPreviousId()

void GWEN_ProgressData_SetPreviousId ( GWEN_PROGRESS_DATA * pd,
uint32_t i )

Definition at line 97 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressStart().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetShown()

void GWEN_ProgressData_SetShown ( GWEN_PROGRESS_DATA * pd,
int i )

Definition at line 235 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_CheckShow(), GWEN_Gui_DialogBased_ProgressLog(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SetStartTime()

void GWEN_ProgressData_SetStartTime ( GWEN_PROGRESS_DATA * pd,
time_t t )

Definition at line 251 of file progressdata.c.

◆ GWEN_ProgressData_SetTotal()

void GWEN_ProgressData_SetTotal ( GWEN_PROGRESS_DATA * pd,
uint64_t i )

Definition at line 169 of file progressdata.c.

Referenced by GWEN_Gui_DialogBased_ProgressSetTotal().

Here is the caller graph for this function:

◆ GWEN_ProgressData_SubFlags()

void GWEN_ProgressData_SubFlags ( GWEN_PROGRESS_DATA * pd,
uint32_t fl )

Definition at line 121 of file progressdata.c.

◆ GWEN_ProgressData_Tree_FindProgressById()

GWEN_PROGRESS_DATA * GWEN_ProgressData_Tree_FindProgressById ( GWEN_PROGRESS_DATA_TREE * pt,
uint32_t id )

Definition at line 291 of file progressdata.c.

References GWEN_ProgressData_GetId().

Referenced by GWEN_Gui_DialogBased_ProgressAdvance(), GWEN_Gui_DialogBased_ProgressEnd(), GWEN_Gui_DialogBased_ProgressLog(), GWEN_Gui_DialogBased_ProgressSetTotal(), and GWEN_Gui_DialogBased_ProgressStart().

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