forked from limingfan2016/game_service_system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCClientVersionManager.h
48 lines (31 loc) · 1.04 KB
/
CClientVersionManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* author : limingfan
* date : 2015.05.20
* description : 客户端软件版本更新管理
*/
#ifndef CLIENT_VERSION_MANAGER_H
#define CLIENT_VERSION_MANAGER_H
#include <string>
#include "base/MacroDefine.h"
#include "SrvFrame/CLogicHandler.h"
using namespace std;
namespace NProject
{
// 客户端版本管理
class CClientVersionManager : public NFrame::CHandler
{
public:
CClientVersionManager();
~CClientVersionManager();
public:
int init(NFrame::CLogicHandler* msgHander, unsigned short reqProtocol, unsigned short rspProtocol);
private:
virtual int getVersionInfo(const unsigned int osType, const unsigned int platformType, const string& curVersion, unsigned int& flag, string& newVersion, string& newFileURL) = 0;
private:
void checkVersion(const char* data, const unsigned int len, unsigned int srcSrvId, unsigned short srcModuleId, unsigned short srcProtocolId);
protected:
NFrame::CLogicHandler* m_msgHandler;
unsigned short m_rspProtocol;
DISABLE_COPY_ASSIGN(CClientVersionManager);
};
}
#endif // CLIENT_VERSION_MANAGER_H