diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-17 16:47:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-17 16:47:04 +0300 |
commit | ba1083b4da33ca44a5ae7d90eabbe3d6d340a81e (patch) | |
tree | ff215cbcb7d606f9898dbb0f038e850540f52e75 /plugins/YARelay/src/stdafx.h | |
parent | 3c641c02b973483e86b9562088719396bbdbe412 (diff) |
XSoundNotify, YAPP, YaRelay, ZeroSwitch, ZeroNotify -> CMPlugin
Diffstat (limited to 'plugins/YARelay/src/stdafx.h')
-rw-r--r-- | plugins/YARelay/src/stdafx.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/plugins/YARelay/src/stdafx.h b/plugins/YARelay/src/stdafx.h index a185b39742..2d76fcbfaa 100644 --- a/plugins/YARelay/src/stdafx.h +++ b/plugins/YARelay/src/stdafx.h @@ -23,7 +23,6 @@ Features: #include <time.h>
#include <malloc.h>
-#define __NO_CMPLUGIN_NEEDED
#include <newpluginapi.h>
#include <m_clist.h>
#include <m_database.h>
@@ -36,18 +35,25 @@ Features: #include "resource.h"
#include "version.h"
-#define STATUS_OFFLINE 0x1
-#define STATUS_ONLINE 0x2
-#define STATUS_AWAY 0x4
-#define STATUS_NA 0x8
-#define STATUS_OCCUPIED 0x10
-#define STATUS_DND 0x20
-#define STATUS_FREECHAT 0x40
-#define STATUS_INVISIBLE 0x80
+#define STATUS_OFFLINE 0x1
+#define STATUS_ONLINE 0x2
+#define STATUS_AWAY 0x4
+#define STATUS_NA 0x8
+#define STATUS_OCCUPIED 0x10
+#define STATUS_DND 0x20
+#define STATUS_FREECHAT 0x40
+#define STATUS_INVISIBLE 0x80
-#define MAXTEMPLATESIZE 1024
+#define MAXTEMPLATESIZE 1024
-extern HINSTANCE hInst;
+#define MODULENAME "yaRelay"
+
+struct CMPlugin : public PLUGIN<CMPlugin>
+{
+ CMPlugin() :
+ PLUGIN<CMPlugin>(MODULENAME)
+ {}
+};
extern MCONTACT hForwardFrom, hForwardTo;
extern wchar_t tszForwardTemplate[MAXTEMPLATESIZE];
|