#pragma once #include "common.h" #include "CResourcePlugin.h" class AFX_EXT_CLASS T2SubPlugin : public CResourcePlugin { public: T2SubPlugin(DWORD type, T2PluginSpecifier& specifier); virtual ~T2SubPlugin(); virtual DWORD GetPluginStyle() { return 'SPlg'; } virtual void GetTitle(CString& outStr); virtual int GetBindTime() { return 1; } virtual void GlobalData(T2GlobalData*) {} virtual unsigned long LoadSelf() { return 0; } BOOL IsTieupFinish(); BOOL IsTieup() { return mTieup != NULL; } unsigned int GetOpenTime() const { return mOpenTime; } void SetOpenTime(unsigned int t) { mOpenTime = t; } unsigned int GetCloseTime() const { return mCloseTime; } void SetCloseTime(unsigned int t) { mCloseTime = t; } int DupCustomerTableDefRes() { return mDupCustomerTableDefRes; } T2ImageObj* GetImageObj() { return mImageObj; } protected: virtual void LoadRsrcFromStream(CResFile& resFile); int m6C; // unknown char mTitle[64]; CTime *mTieup; int mDupCustomerTableDefRes; unsigned int mOpenTime; unsigned int mCloseTime; T2BitImage *mImage; T2ImageObj *mImageObj; };