diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-11 15:28:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-11 15:29:06 +0300 |
commit | 499aee4b2b43b2835a4fb13410cd195fb5a4311a (patch) | |
tree | 2bb70f2b64a96b31ebbb32cec1d37e4b4465bc5c /protocols/Discord/src/proto.h | |
parent | 16fe45e4297e335f76719fcade05999a45a85349 (diff) |
message acks: read confirmations
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r-- | protocols/Discord/src/proto.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 21f59e3377..f9a0c99481 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -173,6 +173,9 @@ class CDiscordProto : public PROTO<CDiscordProto> SnowFlake m_ownId; + mir_cs csMarkReadQueue; + LIST<CDiscordUser> arMarkReadQueue; + OBJLIST<CDiscordUser> arUsers; CDiscordUser* FindUser(SnowFlake id); CDiscordUser* FindUser(const wchar_t *pwszUsername, int iDiscriminator); @@ -222,6 +225,7 @@ public: int __cdecl OnModulesLoaded(WPARAM, LPARAM); int __cdecl OnPreShutdown(WPARAM, LPARAM); int __cdecl OnOptionsInit(WPARAM, LPARAM); + int __cdecl OnDbEventRead(WPARAM, LPARAM); // dispatch commands void OnCommandMessage(const JSONNode&); @@ -238,6 +242,7 @@ public: void OnReceiveFriends(NETLIBHTTPREQUEST*, AsyncHttpRequest*); void OnReceiveGateway(NETLIBHTTPREQUEST*, AsyncHttpRequest*); void OnReceiveGuilds(NETLIBHTTPREQUEST*, AsyncHttpRequest*); + void OnReceiveMessage(NETLIBHTTPREQUEST*, AsyncHttpRequest*); void OnReceiveMessageAck(NETLIBHTTPREQUEST*, AsyncHttpRequest*); void OnReceiveToken(NETLIBHTTPREQUEST*, AsyncHttpRequest*); @@ -255,6 +260,8 @@ public: CMStringW GetAvatarFilename(MCONTACT hContact); - static void CALLBACK HeartbeatTimerProc(HWND hwnd, UINT msg, UINT_PTR id, DWORD); __forceinline int getHeartbeatInterval() const { return m_iHartbeatInterval; } + + static void CALLBACK HeartbeatTimerProc(HWND hwnd, UINT msg, UINT_PTR id, DWORD); + static void CALLBACK MarkReadTimerProc(HWND hwnd, UINT msg, UINT_PTR id, DWORD); }; |