diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-29 18:53:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-29 18:53:03 +0300 |
commit | 50e87bcbf1b3a716f155e504a09df1c0ff1a66f5 (patch) | |
tree | 671924fd03f4f0a3a5da0af7cd4fe4cc841d54ad /protocols/Discord/src/proto.h | |
parent | 95ee503b0f0a4cb434de65f2d9d7375356e39d74 (diff) |
support for the SnowFlake type for Miranda
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r-- | protocols/Discord/src/proto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index ffa99f8268..fe525284f3 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -1,4 +1,6 @@ +typedef __int64 SnowFlake; + class CDiscordProto; typedef void (CDiscordProto::*HttpCallback)(NETLIBHTTPREQUEST*, struct AsyncHttpRequest*); @@ -88,6 +90,14 @@ class CDiscordProto : public PROTO<CDiscordProto> CMOption<wchar_t*> m_wszEmail; // my own email CMOption<wchar_t*> m_wszDefaultGroup; // clist group to store contacts + SnowFlake m_ownId; + + SnowFlake getId(const char *szName); + SnowFlake getId(MCONTACT hContact, const char *szName); + + void setId(const char *szName, SnowFlake iValue); + void setId(MCONTACT hContact, const char *szName, SnowFlake iValue); + public: CDiscordProto(const char*,const wchar_t*); ~CDiscordProto(); |