CSCommon: MAsyncDBJob_BringAccountItem.h 소스 파일

MAIET

MAsyncDBJob_BringAccountItem.h

00001 #ifndef _MASYNCDBJOB_BRINGACCOUNTITEM_H
00002 #define _MASYNCDBJOB_BRINGACCOUNTITEM_H
00003 
00004 #include "MAsyncDBJob.h"
00005 
00006 class MAsyncDBJob_BringAccountItem : public MAsyncJob {
00007 protected:
00008     MUID                m_uid;
00009 protected:  // Input Argument
00010     int     m_nAID;
00011     int     m_nCID;
00012     int     m_nAIID;
00013 protected:  // Output Result
00014     unsigned long int   m_nNewCIID;
00015     unsigned long int   m_nNewItemID;
00016     bool                m_bIsRentItem;
00017     int                 m_nRentMinutePeriodRemainder;
00018 
00019 public:
00020     MAsyncDBJob_BringAccountItem(const MUID& uid)
00021         : MAsyncJob(MASYNCJOB_BRINGACCOUNTITEM)
00022     {
00023         m_uid = uid;
00024 
00025         m_nNewCIID = 0;
00026         m_nNewItemID = 0;
00027         m_bIsRentItem = false;
00028         m_nRentMinutePeriodRemainder = RENT_MINUTE_PERIOD_UNLIMITED;
00029     }
00030     virtual ~MAsyncDBJob_BringAccountItem() {}
00031 
00032     bool Input(const int nAID, const int nCID, const int nAIID);
00033     virtual void Run(void* pContext);
00034 
00035     const MUID& GetUID()            { return m_uid; }
00036     unsigned long int GetNewCIID()      { return m_nNewCIID; }
00037     unsigned long int GetNewItemID()    { return m_nNewItemID; }
00038     bool GetRentItem()                  { return m_bIsRentItem; }
00039     int GetRentMinutePeriodRemainder()  { return m_nRentMinutePeriodRemainder; }
00040 };
00041 
00042 
00043 
00044 
00045 
00046 #endif


MAIET entertainment