summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CEvent.h
blob: 093c6b87a950a08b80a1b52b88432922c29a916e (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
#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_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 

struct CEvent
{
	enum EventType	eType;
	uint32_t dwFlags = 0;
	MCONTACT hContact = 0;
	struct tm Time = {};
	bool bTime = false;

	bool bNotification = false;
	bool bLog = true;

	tstring strDescription;
	tstring strSummary;

	MEVENT hValue = 0;
	int iValue = 0;
	tstring strValue;
};

#endif