summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-17 20:57:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-17 20:57:02 +0300
commitad61413a521ea9cebd849b659653a21c2c33ff8a (patch)
tree9029a623fbbe1491f86a68cbaa92b6b45c786521 /protocols/Discord/src/proto.h
parentb327ed7872ca83c3a4249039ba1a3d8dd3ece630 (diff)
Discord: auth support
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index f201306e9b..33a316c634 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -203,6 +203,9 @@ public:
virtual HANDLE __cdecl SearchBasic(const wchar_t* id) override;
virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr) override;
+ virtual int __cdecl AuthRecv(MCONTACT, PROTORECVEVENT* pre) override;
+ virtual int __cdecl Authorize(MEVENT hDbEvent) override;
+ virtual int __cdecl AuthDeny(MEVENT hDbEvent, const wchar_t* szReason) override;
virtual int __cdecl AuthRequest(MCONTACT hContact, const wchar_t*) override;
virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) override;
@@ -261,6 +264,7 @@ public:
// Misc
void ProcessType(CDiscordUser *pUser, const JSONNode&);
void SetServerStatus(int iStatus);
+ void RemoveFriend(SnowFlake id);
CMStringW GetAvatarFilename(MCONTACT hContact);