summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/EventProcessor.h
blob: 6de14f8f984d3480ca4a8c8cf1ed372ac8dd78b6 (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
#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