CSCommon: MSmartRefreshImpl.h 소스 파일

MAIET

MSmartRefreshImpl.h

00001 #ifndef _MSMARTREFRESHIMPL_H
00002 #define _MSMARTREFRESHIMPL_H
00003 
00004 //#pragma once
00005 
00006 #include "MSmartRefresh.h"
00007 
00008 class MMatchObject;
00009 class MMatchChannel;
00010 class MMatchClan;
00011 
00012 
00014 class MRefreshCategoryChannelImpl : public MRefreshCategory {
00015 protected:
00016     MMatchChannel*  m_pChannel;
00017 
00018 protected:
00019     virtual bool OnUpdateChecksum(unsigned long nTick);
00020 
00021 public:
00022     MRefreshCategoryChannelImpl(MMatchChannel* pChannel, int nCategory) : MRefreshCategory(nCategory) 
00023     {
00024         m_pChannel = pChannel;
00025     }
00026     ~MRefreshCategoryChannelImpl()  {}
00027 
00028     MMatchChannel* GetMatchChannel()                { return m_pChannel; }
00029 };
00030 
00031 
00033 class MRefreshClientChannelImpl : public MRefreshClient {
00034 protected:
00035     MMatchObject*   m_pObject;
00036 
00037 protected:
00038     virtual bool OnSync(unsigned long nChecksum);
00039 
00040 public:
00041     void SetMatchObject(MMatchObject* pObj) { m_pObject = pObj; }
00042     MMatchObject* GetMatchObject()          { return m_pObject; }
00043 };
00044 
00045 
00047 class MRefreshCategoryClanMemberImpl : public MRefreshCategory {
00048 protected:
00049     MMatchClan*     m_pClan;
00050 
00051 protected:
00052     virtual bool OnUpdateChecksum(unsigned long nTick);
00053 
00054 public:
00055     MRefreshCategoryClanMemberImpl(MMatchClan* pClan, int nCategory) : MRefreshCategory(nCategory) 
00056     {
00057         m_pClan = pClan;
00058     }
00059     ~MRefreshCategoryClanMemberImpl()   {}
00060 
00061     MMatchClan* GetMatchClan()      { return m_pClan; }
00062 };
00063 
00064 
00066 class MRefreshClientClanMemberImpl : public MRefreshClient {
00067 protected:
00068     MMatchObject*   m_pObject;
00069 
00070 protected:
00071     virtual bool OnSync(unsigned long nChecksum);
00072 
00073 public:
00074     void SetMatchObject(MMatchObject* pObj) { m_pObject = pObj; }
00075     MMatchObject* GetMatchObject()          { return m_pObject; }
00076 };
00077 
00078 
00079 #endif


MAIET entertainment