summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-09 08:13:08 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-09 08:13:08 +0000
commit199bf2fee8e9f3844744288a8dde5d2dbc5ff55f (patch)
tree4b4d74e3456789d481c9ece48664469a97ce5935 /protocols/VKontakte/src/vk_proto.h
parent22a27b7eeee0710e13a351b0e82da82b60d66c05 (diff)
VKontakte: upgrade vk api version to 5.24
MarkMessagesRead, RetrieveUnreadMessages RetrieveMessagesByIds and related code was reworked for new api. part 2 - finish git-svn-id: http://svn.miranda-ng.org/main/trunk@10409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 99398339e8..734ffc813c 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -75,13 +75,15 @@ AsyncHttpRequest* operator<<(AsyncHttpRequest*, const TCHAR_PARAM&);
struct CVkSendMsgParam
{
- CVkSendMsgParam(MCONTACT _p1, int _p2) :
+ CVkSendMsgParam(MCONTACT _p1, int _p2, int _p3 = 0) :
hContact(_p1),
- iMsgID(_p2)
+ iMsgID(_p2),
+ iCount(_p3)
{}
MCONTACT hContact;
int iMsgID;
+ int iCount;
};
struct CVkChatMessage : public MZeroedObject
@@ -207,6 +209,7 @@ struct CVkProto : public PROTO<CVkProto>
void RetrieveMessagesByIds(const CMStringA &mids);
void RetrieveUnreadMessages();
void OnReceiveMessages(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ void OnReceiveDlgs(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnSendMessage(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq);
void GetHistoryDlg(MCONTACT hContact, int iLastMsg);