summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-09 20:41:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-09 20:41:37 +0000
commitff92b5114a925615148d7ed22577b456c447b96a (patch)
tree10e7503eaeede5e2b5f7057a7eeb1951ed1626ee /protocols/VKontakte/src/vk_proto.h
parenta71cdc522c320ad0c18317e8f0a2127f8eddecf7 (diff)
VK: ability to send messages from/to chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@7571 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 1cff543e4f..e34bc41fcf 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -31,11 +31,12 @@ struct AsyncHttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
void *pUserInfo;
};
-struct CVkChatUser
+struct CVkChatUser : public MZeroedObject
{
CVkChatUser(int _id) : m_uid(_id) {}
int m_uid;
+ bool m_bDel;
ptrT m_tszTitle, m_tszImage;
};
@@ -227,8 +228,11 @@ private:
OBJLIST<CVkChatInfo> m_chats;
CVkChatInfo* AppendChat(int id, JSONNODE *pNode);
+ void AppendChatMessage(int id, JSONNODE *pMsg, bool bIsHistory);
void RetrieveChatInfo(CVkChatInfo*);
void OnReceiveChatInfo(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ int __cdecl OnChatEvent(WPARAM, LPARAM);
+ void OnSendChatMsg(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
CMString GetAttachmentDescr(JSONNODE*);
};