// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include "resource.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "../../libs/zlib/src/zlib.h" #include "../../libs/libsodium/src/include/sodium.h" #include "opus/opus.h" extern IconItem g_iconList[]; #define DB_KEY_ID "id" #define DB_KEY_TOKEN "AccessToken" #define DB_KEY_PASSWORD "Password" #define DB_KEY_DISCR "Discriminator" #define DB_KEY_MFA "MfaEnabled" #define DB_KEY_NICK "Nick" #define DB_KEY_OWNERID "OwnerID" #define DB_KEY_AVHASH "AvatarHash" #define DB_KEY_CHANNELID "ChannelID" #define DB_KEY_LASTMSGID "LastMessageID" #define DB_KEY_REQAUTH "ReqAuth" #define DB_KEY_DONT_FETCH "DontFetch" #define DB_KEY_ENABLE_SYNC "EnableSync" #define DB_KEY_ENABLE_HIST "EnableDbHistory" #define DB_KEYVAL_GROUP L"Discord" #include "version.h" #include "proto.h" ///////////////////////////////////////////////////////////////////////////////////////// void BuildStatusList(const CDiscordGuild *pGuild, SESSION_INFO *si); void CopyId(const CMStringW &nick); SnowFlake getId(const JSONNode &pNode); CMStringW getName(const JSONNode &pNode); CMStringW getNick(const JSONNode &pNode); int StrToStatus(const CMStringW &str); time_t StringToDate(const CMStringW &str); int SerialNext(void);