diff options
author | Fishbone <fishbone@miranda-ng.org> | 2013-06-02 16:19:21 +0000 |
---|---|---|
committer | Fishbone <fishbone@miranda-ng.org> | 2013-06-02 16:19:21 +0000 |
commit | ab7e0b08fa8c31cf1d468ab4b3c660e2b1836811 (patch) | |
tree | 52977603ea0f431adff16573d3d5b46a95843c7f /protocols/WhatsApp/src/entities.h | |
parent | 8320783f99419db1e40346fdb292c19ee008948b (diff) |
Added WhatsApp-protocol
git-svn-id: http://svn.miranda-ng.org/main/trunk@4861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/entities.h')
-rw-r--r-- | protocols/WhatsApp/src/entities.h | 41 |
1 files changed, 41 insertions, 0 deletions
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 |