📄 licensemodule.h
字号:
#ifndef __LICENSEMODULE_H__
#define __LICENSEMODULE_H__
#include "GeneralView.h"
#include "Dialog.h"
#include "CSocket.h"
#include "AEELicense.h"
#define EVT_LICENSEMODULE EVT_DIALOG + 10
#define LICENSE_HIDE -1
#define LICENSE_STARTTRANSFER 1
#define LICENSE_FINISHTRANSFER 2
#define MAX_MONEY_LEN 16
#define MAX_DEPOSIT_CHOICES 8
#define LICENSE_SERVERNAME_LEN 32
class LicenseModule : public VisibleObj
{
public:
LicenseModule();
~LicenseModule();
virtual boolean Create(AppView* pView, AEEApplet* pApp, const char* pszResFile);
virtual void Release();
virtual AppResult Enable() { return SUCCESS; }
virtual AppResult Disable() { return SUCCESS; }
virtual AppResult Open() { return SUCCESS; }
virtual AppResult Close() { return SUCCESS; }
virtual AppResult Update();
virtual boolean OnEvent(AEEEvent evtCode, uint16 wParam, uint32 dwParam);
void Show(boolean bQuery);
void Hide();
//boolean IsVisible(){ return m_bShow; };
void Connect();
void SendInfo();
void SetNetwork(CSocket* pSocket, boolean bOnline = TRUE, char* szAddress = NULL, uint16 iPort = 0);
void SetRes(char* szResFile);
void SetChoice(int16* nItemID, uint32* nValues, uint8 nCount);
void SetTitle(int16 nTitleID);
void SetUser(char* szUser, char* szPsd);
uint32 GetLicense();
boolean SetLicense(uint32 license);
boolean AddLicense(int32 add);
boolean IsExpired();
protected:
AEEApplet* m_pApp;
CSocket* m_pSocket;
boolean m_bOnline;
char m_szServerAddress[LICENSE_SERVERNAME_LEN];
uint16 m_iPort;
CMsgBox m_MsgBox;
CListBox m_ListBox;
AECHAR m_wszMoney[MAX_MONEY_LEN];
char m_szResFile[RES_FILE_NAME_LEN];
int16 m_nItemID[MAX_DEPOSIT_CHOICES];
uint32 m_nValues[MAX_DEPOSIT_CHOICES];
uint8 m_nItemCount;
int16 m_nTitleID;
char m_szUserName[_USRNAME_LEN];
char m_szPwd[_PWD_LEN];
int16 m_nSelect;
ILicense* m_pLicense;
};
#endif //__LICENSEMODULE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -