mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2025-12-23 06:57:23 +00:00
17 lines
401 B
C++
17 lines
401 B
C++
#ifndef __PROGRESSCALLBACK_H__
|
|
#define __PROGRESSCALLBACK_H__
|
|
|
|
namespace wi {
|
|
|
|
class ProgressCallback {
|
|
public:
|
|
virtual void OnBegin(void *ctx, int cbLength) = 0;
|
|
virtual void OnProgress(void *ctx, int cbTotal, int cbLength) = 0;
|
|
virtual void OnFinished(void *ctx) = 0;
|
|
virtual void OnError(void *ctx, const char *pszError) = 0;
|
|
};
|
|
|
|
} // namespace wi
|
|
|
|
#endif // __PROGRESSCALLBACK_H__
|