From ab7e0b08fa8c31cf1d468ab4b3c660e2b1836811 Mon Sep 17 00:00:00 2001 From: Fishbone Date: Sun, 2 Jun 2013 16:19:21 +0000 Subject: Added WhatsApp-protocol git-svn-id: http://svn.miranda-ng.org/main/trunk@4861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/entities.h | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 protocols/WhatsApp/src/entities.h (limited to 'protocols/WhatsApp/src/entities.h') diff --git a/protocols/WhatsApp/src/entities.h b/protocols/WhatsApp/src/entities.h new file mode 100644 index 0000000000..d48fbfb573 --- /dev/null +++ b/protocols/WhatsApp/src/entities.h @@ -0,0 +1,41 @@ +#if !defined(ENTITIES_H) +#define ENTITIES_H + +struct send_direct +{ + send_direct(HANDLE hContact,const std::string &msg, HANDLE msgid, bool isChat = false) + : hContact(hContact), msg(msg), msgid(msgid) + {} + HANDLE hContact; + std::string msg; + HANDLE msgid; +}; + +struct send_typing +{ + send_typing(HANDLE hContact,const int status) : hContact(hContact), status(status) {} + HANDLE hContact; + int status; +}; + +struct input_box +{ + tstring text; + tstring title; + tstring 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 \ No newline at end of file -- cgit v1.2.3