summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/entities.h
blob: 7ed362990e71139993aad0b6083c40152f2e7246 (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
#if !defined(ENTITIES_H)
#define ENTITIES_H

struct send_direct
{
	send_direct(MCONTACT hContact, const std::string &msg, HANDLE msgid) :
		hContact(hContact), msg(msg), msgid(msgid)
		{}

	MCONTACT hContact;
	std::string msg;
	HANDLE msgid;
};

struct input_box
{
	wstring text;
	wstring title;
	wstring defaultValue;
	int limit;

	void(__cdecl WhatsAppProto::*thread)(void*);
	WhatsAppProto *proto;
	void *userData;
};

struct input_box_ret // has to be deleted by input-box handler
{
	void *userData; // has to be deleted by input-box handler
	char *value; // mir_free() has to be called by input-box handler
};


#endif // ENTITIES_H