summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/XSoundNotify/EventProcessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/XSoundNotify/EventProcessor.h')
-rw-r--r--plugins/!NotAdopted/XSoundNotify/EventProcessor.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/XSoundNotify/EventProcessor.h b/plugins/!NotAdopted/XSoundNotify/EventProcessor.h
new file mode 100644
index 0000000000..6de14f8f98
--- /dev/null
+++ b/plugins/!NotAdopted/XSoundNotify/EventProcessor.h
@@ -0,0 +1,27 @@
+#ifndef __XSN_EVENT_PROCESSOR
+#define __XSN_EVENT_PROCESSOR
+
+#include <windows.h>
+#include "xsn_types.h"
+#include <newpluginapi.h>
+
+
+class XSN_EventProcessor
+{
+public:
+ static void make(PLUGINLINK * pl);
+ static XSN_EventProcessor & instance();
+
+ void process(WPARAM wParam, LPARAM lParam);
+
+protected:
+ XSN_EventProcessor(PLUGINLINK * pl);
+
+ bool isReceiveMessage(LPARAM event);
+ xsn_string getProtocol(WPARAM contact);
+ xsn_string getNick(WPARAM contact, LPCTSTR protocol);
+
+ PLUGINLINK * pluginLink;
+};
+
+#endif