DDraceNetwork Docs
updater.h
Go to the documentation of this file.
1#ifndef ENGINE_UPDATER_H
2#define ENGINE_UPDATER_H
3
4#include "kernel.h"
5
6class IUpdater : public IInterface
7{
8 MACRO_INTERFACE("updater")
9public:
11 {
20 };
21
22 virtual void Update() = 0;
23 virtual void InitiateUpdate() = 0;
24
26 virtual void GetCurrentFile(char *pBuf, int BufSize) = 0;
27 virtual int GetCurrentPercent() = 0;
28};
29
30#endif
Definition: kernel.h:10
Definition: updater.h:7
virtual void Update()=0
virtual void InitiateUpdate()=0
virtual void GetCurrentFile(char *pBuf, int BufSize)=0
EUpdaterState
Definition: updater.h:11
@ DOWNLOADING
Definition: updater.h:16
@ FAIL
Definition: updater.h:19
@ MOVE_FILES
Definition: updater.h:17
@ GOT_MANIFEST
Definition: updater.h:14
@ GETTING_MANIFEST
Definition: updater.h:13
@ PARSING_UPDATE
Definition: updater.h:15
@ CLEAN
Definition: updater.h:12
@ NEED_RESTART
Definition: updater.h:18
virtual int GetCurrentPercent()=0
virtual EUpdaterState GetCurrentState()=0
#define MACRO_INTERFACE(Name)
Definition: kernel.h:25