summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-29 00:01:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-29 00:01:38 +0300
commita956289416dd69108ce3b26b1a6d7ec8627576f4 (patch)
tree5091031cc121d0c8953c855103e019275314dc4d /protocols/Discord/src/proto.h
parentcc050575f27ecc736364749d1c5f47a7e3cdc991 (diff)
login processing completed
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 7f4c1e4c52..a39325b77e 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -74,11 +74,11 @@ __forceinline JSONNode& operator<<(JSONNode &json, const WCHAR_PARAM &param)
class CDiscordProto : public PROTO<CDiscordProto>
{
friend struct AsyncHttpRequest;
+ friend class CDiscardAccountOptions;
void __cdecl ServerThread(void*);
void SetAllContactStatuses(int iStatus);
- bool TryToConnect(void);
void ConnectionFailed(int iReason);
void ShutdownSession(void);
@@ -99,6 +99,9 @@ class CDiscordProto : public PROTO<CDiscordProto>
m_bOnline, // protocol is online
m_bTerminated; // Miranda's going down
+ CMOption<wchar_t*> m_wszEmail; // my own email
+ CMOption<wchar_t*> m_wszDefaultGroup; // clist group to store contacts
+
public:
CDiscordProto(const char*,const wchar_t*);
~CDiscordProto();
@@ -123,8 +126,12 @@ public:
void OnLoggedOut();
void OnReceiveToken(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ void OnReceiveMyInfo(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ void OnReceiveGuilds(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ void OnReceiveChannels(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+
+ void RetrieveMyInfo();
// Misc
- void RetrieveMyInfo(void);
void SetServerStatus(int iStatus);
};