ddnet/src/engine/autoupdate.h

31 lines
577 B
C
Raw Normal View History

2014-12-31 14:29:34 +00:00
#ifndef ENGINE_AUTOUPDATE_H
#define ENGINE_AUTOUPDATE_H
#include "kernel.h"
class IAutoUpdate : public IInterface
{
MACRO_INTERFACE("autoupdate", 0)
public:
enum
{
IGNORED = -1,
CLEAN,
GETTING_MANIFEST,
GOT_MANIFEST,
PARSING_UPDATE,
DOWNLOADING,
NEED_RESTART,
};
virtual void Update() = 0;
virtual void InitiateUpdate() = 0;
virtual void IgnoreUpdate() = 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