summaryrefslogtreecommitdiff
path: root/src/T2DLL/CPlugin.h
blob: 5a6f8c0ea434e46aaf121e3652ce989f4c4304ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef T2DLL_CPLUGIN_H
#define T2DLL_CPLUGIN_H
#include "../common.h"
#include "T2PluginSpecifier.h"

class AFX_CLASS_EXPORT CPlugin {
public:
	CPlugin(DWORD type, T2PluginSpecifier& specifier);
	virtual ~CPlugin();
	virtual DWORD GetPluginStyle() { return 'plug'; }
	virtual void GetName(CString&);
	virtual void GetInfoString(CString&);
	virtual HINSTANCE GetModuleHandle();

	DWORD GetType() { return mType; }
	BOOL IsLoaded() { return mIsLoaded; }

protected:
	BOOL mIsLoaded;
	DWORD mType;

public:
	// this gets accessed by T2TenantDef::SetCustomerTable without an inline
	T2PluginSpecifier mSpecifier;

	// this gets accessed by T2PaletteAnime without an inline
	HINSTANCE mModuleHandle;
	T2ImageObj *mImageObj;
};
#endif