cprogress.c File Reference

#include "cprogress_p.h"
#include "cgui_l.h"
#include "cgui.h"
#include <gwenhywfar/gui_be.h>
#include <gwenhywfar/buffer.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/misc.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
Include dependency graph for cprogress.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int GWEN_Gui_CProgress_Advance (GWEN_GUI_CPROGRESS *cp, uint64_t progress)
int GWEN_Gui_CProgress_End (GWEN_GUI_CPROGRESS *cp)
void GWEN_Gui_CProgress_free (GWEN_GUI_CPROGRESS *cp)
int GWEN_Gui_CProgress_GetAborted (const GWEN_GUI_CPROGRESS *cp)
uint64_t GWEN_Gui_CProgress_GetCurrent (const GWEN_GUI_CPROGRESS *cp)
GWEN_GUIGWEN_Gui_CProgress_GetGui (const GWEN_GUI_CPROGRESS *cp)
uint32_t GWEN_Gui_CProgress_GetId (const GWEN_GUI_CPROGRESS *cp)
const char * GWEN_Gui_CProgress_GetLogBuf (const GWEN_GUI_CPROGRESS *cp)
const char * GWEN_Gui_CProgress_GetText (const GWEN_GUI_CPROGRESS *cp)
const char * GWEN_Gui_CProgress_GetTitle (const GWEN_GUI_CPROGRESS *cp)
uint64_t GWEN_Gui_CProgress_GetTotal (const GWEN_GUI_CPROGRESS *cp)
int GWEN_Gui_CProgress_Log (GWEN_GUI_CPROGRESS *cp, GWEN_UNUSED GWEN_LOGGER_LEVEL level, const char *text)
GWEN_GUI_CPROGRESSGWEN_Gui_CProgress_new (GWEN_GUI *gui, uint32_t id, uint32_t progressFlags, const char *title, const char *text, uint64_t total)

Function Documentation

int GWEN_Gui_CProgress_Advance ( GWEN_GUI_CPROGRESS cp,
uint64_t  progress 
)

Definition at line 130 of file cprogress.c.

References DBG_INFO, GWEN_ERROR_USER_ABORTED, GWEN_GUI_DELAY_SECS, GWEN_GUI_FLAGS_NONINTERACTIVE, GWEN_Gui_GetFlags(), GWEN_GUI_PROGRESS_NONE, GWEN_GUI_PROGRESS_ONE, and GWEN_LOGDOMAIN.

Referenced by GWEN_Gui_CGui_ProgressAdvance().

Here is the call graph for this function:

Here is the caller graph for this function:

int GWEN_Gui_CProgress_End ( GWEN_GUI_CPROGRESS cp  ) 

Definition at line 227 of file cprogress.c.

References GWEN_ERROR_USER_ABORTED, GWEN_GUI_FLAGS_NONINTERACTIVE, and GWEN_Gui_GetFlags().

Referenced by GWEN_Gui_CGui_ProgressEnd().

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_Gui_CProgress_free ( GWEN_GUI_CPROGRESS cp  ) 

Definition at line 58 of file cprogress.c.

References GWEN_Buffer_free(), GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

Referenced by GWEN_Gui_CGui_ProgressEnd().

Here is the call graph for this function:

Here is the caller graph for this function:

int GWEN_Gui_CProgress_GetAborted ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 120 of file cprogress.c.

uint64_t GWEN_Gui_CProgress_GetCurrent ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 105 of file cprogress.c.

GWEN_GUI* GWEN_Gui_CProgress_GetGui ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 70 of file cprogress.c.

uint32_t GWEN_Gui_CProgress_GetId ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 77 of file cprogress.c.

Referenced by GWEN_Gui_CGui__findProgress(), and GWEN_Gui_CGui_ProgressStart().

Here is the caller graph for this function:

const char* GWEN_Gui_CProgress_GetLogBuf ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 112 of file cprogress.c.

References GWEN_Buffer_GetStart().

Here is the call graph for this function:

const char* GWEN_Gui_CProgress_GetText ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 91 of file cprogress.c.

const char* GWEN_Gui_CProgress_GetTitle ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 84 of file cprogress.c.

uint64_t GWEN_Gui_CProgress_GetTotal ( const GWEN_GUI_CPROGRESS cp  ) 

Definition at line 98 of file cprogress.c.

int GWEN_Gui_CProgress_Log ( GWEN_GUI_CPROGRESS cp,
GWEN_UNUSED GWEN_LOGGER_LEVEL  level,
const char *  text 
)

Definition at line 199 of file cprogress.c.

References GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_USER_ABORTED, GWEN_Gui_CGui_GetRawText(), GWEN_GUI_FLAGS_NONINTERACTIVE, and GWEN_Gui_GetFlags().

Referenced by GWEN_Gui_CGui_ProgressLog().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_GUI_CPROGRESS* GWEN_Gui_CProgress_new ( GWEN_GUI gui,
uint32_t  id,
uint32_t  progressFlags,
const char *  title,
const char *  text,
uint64_t  total 
)

Definition at line 27 of file cprogress.c.

References GWEN_Buffer_new(), GWEN_GUI_PROGRESS_DELAY, GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_Gui_CGui_ProgressStart().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Mon Jul 5 22:53:15 2010 for gwenhywfar by  doxygen 1.6.3