summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CEvent.h
blob: d07080b70cd47861337340228bd741bcca83e066 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef _CEVENT_H_
#define _CEVENT_H_

enum EventType {	EVENT_MSG_RECEIVED = 0,
					EVENT_MSG_SENT = 3,
					EVENT_MESSAGE_ACK = 4,
					EVENT_STATUS = 1,
					EVENT_MSG_ACK = 2,

					EVENT_URL = 5,
					EVENT_FILE = 6,
					EVENT_AUTHREQUEST = 7,
					EVENT_CONTACTS = 8,
					EVENT_ADDED = 9,

					EVENT_CONTACT_ADDED = 10,
					EVENT_CONTACT_DELETED = 11,
					EVENT_CONTACT_NICK = 12,
					EVENT_CONTACT_HIDDEN = 13,
					EVENT_CONTACT_GROUP = 14,

					EVENT_SIGNED_ON = 15,
					EVENT_SIGNED_OFF = 16,

					EVENT_PROTO_STATUS = 17,
					EVENT_PROTO_CONNECTED = 18,
					EVENT_PROTO_DISCONNECTED = 19,

					EVENT_TYPING_NOTIFICATION = 20,
					EVENT_MESSAGEWINDOW = 21,
					EVENT_IRC_SENT = 22,
					EVENT_IRC_RECEIVED = 23};

#define MSG_READ 0
#define MSG_UNREAD 1 

class CEvent 
{
public:
	CEvent()
	{
		bTime = false;
		dwFlags = NULL;
		hContact = NULL;
		bNotification = false;
		bLog = true;
		strDescription = _T("");

		iValue = NULL;
		hValue = NULL;
		strValue = _T("");
	}

	enum EventType	eType;
	DWORD dwFlags;
	MCONTACT hContact;
	tm	Time;
	bool bTime;

	bool bNotification;
	bool bLog;

	tstring strDescription;
	tstring strSummary;

	HANDLE hValue;
	int iValue;
	tstring strValue;
};

#endif