From 32d1c295ac763fdf069ac6915d772c0b92818fc4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 12 Oct 2013 22:33:13 +0000 Subject: 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 --- protocols/VKontakte/src/vk_proto.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_proto.h') 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 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 m_sendIds; + bool CheckMid(int msgid); }; -- cgit v1.2.3