2009-09-30 19:10:58 -04:00
|
|
|
/****************************************************************************
|
|
|
|
* ProgressWindow
|
|
|
|
* USB Loader GX 2009
|
|
|
|
*
|
|
|
|
* ProgressWindow.h
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _PROGRESSWINDOW_H_
|
|
|
|
#define _PROGRESSWINDOW_H_
|
|
|
|
|
2010-12-17 14:50:44 -03:00
|
|
|
typedef void (*ProgressAbortCallback)(void);
|
|
|
|
|
2011-01-14 12:39:42 -03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2009-09-30 19:10:58 -04:00
|
|
|
void InitProgressThread();
|
|
|
|
void ExitProgressThread();
|
2011-01-14 12:39:42 -03:00
|
|
|
void ShowProgress(const char *title, const char *msg1, const char *msg2, s64 done, s64 total, bool swSize = false, bool swTime = false);
|
2009-09-30 19:10:58 -04:00
|
|
|
|
2010-09-18 19:16:05 -04:00
|
|
|
extern "C"
|
|
|
|
{
|
2010-02-25 09:08:03 -03:00
|
|
|
#endif
|
|
|
|
|
2011-01-14 12:39:42 -03:00
|
|
|
void StartProgress(const char * title, const char * msg1, const char * msg2, bool swSize, bool swTime);
|
|
|
|
void ShowProgress(s64 done, s64 total);
|
|
|
|
void ProgressSetAbortCallback(ProgressAbortCallback callback);
|
|
|
|
void ProgressStop();
|
2010-02-25 09:08:03 -03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-09-30 19:10:58 -04:00
|
|
|
#endif
|