ddnet/src/engine/updater.h

30 lines
524 B
C
Raw Normal View History

#ifndef ENGINE_UPDATER_H
#define ENGINE_UPDATER_H
2014-12-31 14:29:34 +00:00
#include "kernel.h"
class IUpdater : public IInterface
2014-12-31 14:29:34 +00:00
{
MACRO_INTERFACE("updater", 0)
2014-12-31 14:29:34 +00:00
public:
enum
{
2015-03-13 21:33:48 +00:00
CLEAN = 0,
2014-12-31 14:29:34 +00:00
GETTING_MANIFEST,
GOT_MANIFEST,
PARSING_UPDATE,
DOWNLOADING,
NEED_RESTART,
2015-03-13 19:27:37 +00:00
FAIL,
2014-12-31 14:29:34 +00:00
};
virtual void Update() = 0;
virtual void InitiateUpdate() = 0;
2014-12-31 14:34:25 +00:00
virtual int GetCurrentState() = 0;
virtual char *GetCurrentFile() = 0;
virtual int GetCurrentPercent() = 0;
2014-12-31 14:29:34 +00:00
};
#endif