mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
30 lines
455 B
C++
30 lines
455 B
C++
#ifndef ENGINE_UPDATER_H
|
|
#define ENGINE_UPDATER_H
|
|
|
|
#include "kernel.h"
|
|
|
|
class IUpdater : public IInterface
|
|
{
|
|
MACRO_INTERFACE("updater", 0)
|
|
public:
|
|
enum
|
|
{
|
|
CLEAN = 0,
|
|
GETTING_MANIFEST,
|
|
GOT_MANIFEST,
|
|
PARSING_UPDATE,
|
|
DOWNLOADING,
|
|
NEED_RESTART,
|
|
FAIL,
|
|
};
|
|
|
|
virtual void Update() = 0;
|
|
virtual void InitiateUpdate() = 0;
|
|
|
|
virtual int GetCurrentState() = 0;
|
|
virtual char *GetCurrentFile() = 0;
|
|
virtual int GetCurrentPercent() = 0;
|
|
};
|
|
|
|
#endif
|