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