summaryrefslogtreecommitdiff
path: root/src/T2DLL/LAttachment.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/LAttachment.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/T2DLL/LAttachment.h b/src/T2DLL/LAttachment.h
new file mode 100644
index 0000000..10b8c66
--- /dev/null
+++ b/src/T2DLL/LAttachment.h
@@ -0,0 +1,24 @@
+#pragma once
+#include "common.h"
+
+class DLL_EXPORT LAttachment {
+public:
+ LAttachment(unsigned int message = 0, BOOL executeHost = true);
+ virtual ~LAttachment();
+ virtual void SetMessage(unsigned int v) { mMessage = v; }
+ virtual void SetExecuteHost(BOOL v);
+ virtual void SetOwnerHost(LAttachable* v) { mOwnerHost = v; }
+ virtual int Execute(unsigned int message, void* data);
+
+ LAttachable* GetOwnerHost() const { return mOwnerHost; }
+ unsigned int GetMessage() const { return mMessage; }
+ BOOL GetExecuteHost() const { return mExecuteHost; }
+
+protected:
+ virtual void ExecuteSelf(unsigned int message, void*);
+
+protected:
+ LAttachable *mOwnerHost;
+ unsigned int mMessage;
+ BOOL mExecuteHost;
+};