MAsyncDBJob_GetLoginInfo.h
00001 #ifndef _MASYNCDBJOB_GETLOGININFO_H 00002 #define _MASYNCDBJOB_GETLOGININFO_H 00003 00004 #include "MAsyncDBJob.h" 00005 00006 class MAsyncDBJob_GetLoginInfo : public MAsyncJob { 00007 protected: 00008 MUID m_uidComm; 00009 bool m_bFreeLoginIP; 00010 unsigned long m_nChecksumPack; 00011 protected: // Input Argument 00012 char m_szUserID[256]; 00013 char m_szUniqueID[1024]; 00014 char m_szCertificate[1024]; 00015 char m_szName[256]; 00016 int m_nAge; 00017 int m_nSex; 00018 protected: // Output Result 00019 MMatchAccountInfo* m_pAccountInfo; 00020 unsigned int m_nAID; 00021 char m_szDBPassword[32]; 00022 public: 00023 MAsyncDBJob_GetLoginInfo(const MUID& uidComm) 00024 : MAsyncJob(MASYNCJOB_GETLOGININFO) 00025 { 00026 m_uidComm = uidComm; 00027 m_pAccountInfo = NULL; 00028 m_nAID = 0; 00029 m_szDBPassword[0] = 0; 00030 m_bFreeLoginIP = false; 00031 m_nChecksumPack = 0; 00032 } 00033 virtual ~MAsyncDBJob_GetLoginInfo() {} 00034 00035 bool Input(MMatchAccountInfo* pNewAccountInfo, 00036 const char* szUserID, 00037 const char* szUniqueID, 00038 const char* szCertificate, 00039 const char* szName, 00040 const int nAge, 00041 const int nSex, 00042 const bool bFreeLoginIP, 00043 unsigned long nChecksumPack); 00044 virtual void Run(void* pContext); 00045 00046 // output 00047 MMatchAccountInfo* GetAccountInfo() { return m_pAccountInfo; } 00048 unsigned int GetAID() { return m_nAID; } 00049 const char* GetDBPassword() { return m_szDBPassword; } 00050 const MUID& GetCommUID() { return m_uidComm; } 00051 bool IsFreeLoginIP() { return m_bFreeLoginIP; } 00052 unsigned long GetChecksumPack() { return m_nChecksumPack; } 00053 }; 00054 00055 00056 00057 00058 00059 #endif
MAIET entertainment