diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-12 22:33:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-12 22:33:13 +0000 |
commit | 32d1c295ac763fdf069ac6915d772c0b92818fc4 (patch) | |
tree | 1f2d34d2bdfaa4f22bb0b344e4028489ce07cca8 /protocols/VKontakte/src/vk_proto.h | |
parent | 7d8f746129a286b6c0488e461811c25da40f60c0 (diff) |
VK:
- notification thread now works as expected;
- message reading works ok too;
- notification about new messages also works ok
git-svn-id: http://svn.miranda-ng.org/main/trunk@6467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index a0a7cbb708..14c4e6b354 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -100,12 +100,14 @@ struct CVkProto : public PROTO<CVkProto> void RetrieveUnreadMessages();
void OnReceiveMessages(NETLIBHTTPREQUEST*, void*);
+ void OnSendMessage(NETLIBHTTPREQUEST*, void*);
void RetrievePollingInfo();
void OnReceivePollingInfo(NETLIBHTTPREQUEST*, void*);
void __cdecl PollingThread(void*);
int PollServer();
+ void PollUpdates(JSONNODE*);
void OnReceivePolling(NETLIBHTTPREQUEST*, void*);
int SetServerStatus(int);
@@ -164,6 +166,9 @@ private: UINT_PTR m_timer;
ptrA m_pollingServer, m_pollingKey, m_pollingTs;
- HANDLE m_hPollingThread;
+ HANDLE m_pollingConn;
ULONG m_msgId;
+
+ LIST<void> m_sendIds;
+ bool CheckMid(int msgid);
};
|