summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-03 04:17:28 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-03 04:17:28 +0000
commit813694abc5792d7cc6f4a39d42d3619af3f5e996 (patch)
tree83050371b79b9543d91a34bc4b8533f32376e438 /protocols/VKontakte/src/vk_proto.h
parent25f61751aafa9f30a26cdf10a212d14103ebb810 (diff)
VKontakte:
Add sync history support Add mark read on reply option Add always notify as unread for all incoming message option Version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10357 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 2ecdd0001b..e0d0501f96 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -16,6 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define PS_CREATECHAT "/CreateNewChat"
+#define PS_GETALLSERVERHISTORY "/GetAllServerHystory"
+#define MAXHISTORYMIDSPERONE 200
struct CVkProto;
typedef void (CVkProto::*VK_REQUEST_HANDLER)(NETLIBHTTPREQUEST*, struct AsyncHttpRequest*);
@@ -185,6 +187,7 @@ struct CVkProto : public PROTO<CVkProto>
INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM);
INT_PTR __cdecl SvcGetAvatarInfo(WPARAM, LPARAM);
INT_PTR __cdecl SvcGetAvatarCaps(WPARAM, LPARAM);
+ INT_PTR __cdecl SvcGetAllServerHistory(WPARAM wParam, LPARAM);
//==== Misc ==========================================================================
@@ -200,11 +203,14 @@ struct CVkProto : public PROTO<CVkProto>
void OnReceiveFriends(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void MarkMessagesRead(const CMStringA &mids);
+ void MarkMessagesRead(const MCONTACT hContact);
void RetrieveMessagesByIds(const CMStringA &mids);
void RetrieveUnreadMessages();
void OnReceiveMessages(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnSendMessage(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
-
+ void OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq);
+ void GetHistoryDlg(MCONTACT hContact, int iLastMsg);
+ void GetHistoryDlgMessages(MCONTACT hContact, int iOffset, int iMaxCount, int lastcount);
void RetrievePollingInfo();
void OnReceivePollingInfo(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
@@ -277,7 +283,7 @@ private:
void __cdecl SendMsgAck(void *param);
- bool m_bOnline, m_bHideChats;
+ bool m_bOnline, m_bHideChats, m_bMesAsUnread, m_bMarkReadOnReply, m_bAutoSyncHistory;
LONG m_myUserId;
ptrA m_szAccessToken;