2009-10-01 01:10:58 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* ProgressWindow
|
|
|
|
* USB Loader GX 2009
|
|
|
|
*
|
|
|
|
* ProgressWindow.h
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _PROGRESSWINDOW_H_
|
|
|
|
#define _PROGRESSWINDOW_H_
|
|
|
|
|
2012-01-01 18:58:10 +01:00
|
|
|
#include <gctypes.h>
|
|
|
|
|
2011-01-14 16:39:42 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2011-10-01 12:41:00 +02:00
|
|
|
#define PROGRESS_CANCELED -12345
|
|
|
|
|
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);
|
2011-09-24 01:49:18 +02:00
|
|
|
void ShowProgress(const char *msg2, s64 done, s64 total);
|
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-10-01 12:41:00 +02:00
|
|
|
void ProgressCancelEnable(bool allowCancel);
|
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);
|
2011-10-01 12:41:00 +02:00
|
|
|
bool ProgressCanceled();
|
2011-01-14 16:39:42 +01:00
|
|
|
void ProgressStop();
|
2010-02-25 13:08:03 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
#endif
|