summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-10 07:01:31 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-10 07:01:31 +0000
commit3e604c7a2542790b5a3f22f2ddd714af520190be (patch)
treeb70dd13151b4d3be3ffc6b1f4652ab1a521ebdba /protocols/VKontakte/src/vk_proto.h
parent16b6caa0a8b5e80c75a93b67db1ae5812a81fc80 (diff)
VKontakte: reworked mark as read process
git-svn-id: http://svn.miranda-ng.org/main/trunk@10752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h60
1 files changed, 31 insertions, 29 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 0964b2a7e3..1c5453b463 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -161,8 +161,8 @@ struct TFakeAckParams
struct CVkProto : public PROTO<CVkProto>
{
- CVkProto(const char*, const TCHAR*);
- ~CVkProto();
+ CVkProto(const char*, const TCHAR*);
+ ~CVkProto();
//====================================================================================
// PROTO_INTERFACE
@@ -245,13 +245,14 @@ struct CVkProto : public PROTO<CVkProto>
void InitPopups(void);
void MsgPopup(MCONTACT hContact, const TCHAR *szMsg, const TCHAR *szTitle, bool err = false);
-
+
//==== Hooks ====+====================================================================
-
+
int __cdecl OnProcessSrmmEvent(WPARAM, LPARAM);
-
+ int __cdecl OnDbEventRead(WPARAM, LPARAM);
+
//==== Search ========================================================================
-
+
void __cdecl SearchBasicThread(void* id);
void __cdecl SearchByMailThread(void* email);
void __cdecl SearchThread(void* p);
@@ -259,7 +260,7 @@ struct CVkProto : public PROTO<CVkProto>
void OnSearchByMail(NETLIBHTTPREQUEST *, AsyncHttpRequest *);
//==== Files Upload ==================================================================
-
+
void __cdecl SendFileThread(void *p);
void SendFileFiled(CVkFileUploadParam *fup, TCHAR* reason = NULL);
void OnReciveUploadServer(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
@@ -268,7 +269,7 @@ struct CVkProto : public PROTO<CVkProto>
//==== Misc ==========================================================================
TCHAR* GetUserStoredPassword(void);
-
+
void RetrieveStatusMsg(const CMString &StatusMsg);
void RetrieveStatusMusic(const CMString &StatusMsg);
@@ -291,11 +292,11 @@ struct CVkProto : public PROTO<CVkProto>
CMString GetAttachmentDescr(JSONNODE*);
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*);
void __cdecl PollingThread(void*);
@@ -314,7 +315,7 @@ struct CVkProto : public PROTO<CVkProto>
void OnCreateNewChat(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
__forceinline bool IsOnline() const { return m_bOnline; }
-
+
__forceinline LPCTSTR getGroup() const { return m_defaultGroup; }
__forceinline void setGroup(LPCTSTR grp) { m_defaultGroup = mir_tstrdup(grp); }
@@ -355,9 +356,9 @@ private:
struct Cookie
{
Cookie(const CMStringA& name, const CMStringA& value, const CMStringA& domain) :
- m_name(name),
- m_value(value),
- m_domain(domain)
+ m_name(name),
+ m_value(value),
+ m_domain(domain)
{}
CMStringA m_name, m_value, m_domain;
@@ -396,21 +397,22 @@ private:
void __cdecl SendMsgAck(void *param);
bool m_prevError,
- m_bOnline,
- m_bHideChats,
- m_bMesAsUnread,
- m_bMarkReadOnReply,
- m_bMarkReadOnTyping,
- m_bAutoSyncHistory,
- m_bUseLocalTime,
- m_bReportAbuse,
- m_bClearServerHistory,
- m_bRemoveFromFrendlist,
- m_bRemoveFromClist,
- m_bPopUpSyncHistory;
-
- LONG m_myUserId;
- ptrT m_defaultGroup;
+ m_bOnline,
+ m_bHideChats,
+ m_bMesAsUnread,
+ m_bAutoSyncHistory,
+ m_bUseLocalTime,
+ m_bReportAbuse,
+ m_bClearServerHistory,
+ m_bRemoveFromFrendlist,
+ m_bRemoveFromClist,
+ m_bPopUpSyncHistory;
+
+ enum MarkMsgReadOn{ markOnRead, markOnReceive, markOnReply, markOnTyping };
+ int m_iMarkMessageReadOn;
+
+ LONG m_myUserId;
+ ptrT m_defaultGroup;
ptrA
m_pollingServer,