Batch #904 by ragnarok-clanker: no function's compiled code changes; checked with 3 compiled unit(s), including every includer of Source/Contents/MessageTable.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemDataMgr.h, Source/Contents/Hotkeys/UserHotkeyMgr.h, Source/Contents/Messenger/WhisperBlockMgr.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/CharacterLinkedUserDataMgr.h, Source/Network/TextEncoding.h, Source/Network/Http/CURLMgr.h, Source/Render/Textures/Texture.h, Source/UI/Layout/SnapMgr.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Window/FrameFocus.h, Source/UI/Window/UIWindow.h, Source/Utility/Async/NMessageMgr.h.
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_EMBLEMS_EMBLEMDATAMGR_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_EMBLEMS_EMBLEMDATAMGR_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class LuaScript;
|
|
class CConnection;
|
|
class CAsyncWorkMgr;
|
|
struct AsyncDiagnostic;
|
|
struct EmblemUploadContext;
|
|
|
|
class CEmblemDataMgr {
|
|
public:
|
|
CEmblemDataMgr();
|
|
virtual ~CEmblemDataMgr();
|
|
static bool Initialize();
|
|
static void Shutdown();
|
|
void RefreshUrls(LuaScript& settings, LuaScript& tables, const char* host, const char* port, const char* overrideKey);
|
|
void Download(
|
|
std::uint32_t guildId, std::uint32_t version, std::uint32_t accountId, const std::string& accountName, const char* token16, CConnection& connection,
|
|
CAsyncWorkMgr& manager
|
|
);
|
|
bool Upload(
|
|
std::uint32_t guildId, std::string path, std::uint32_t accountId, const std::string& accountName, const char* token16, EmblemUploadContext& context,
|
|
CAsyncWorkMgr& manager
|
|
);
|
|
void CompleteUpload(AsyncDiagnostic diagnostic, std::string response, std::uint32_t guildId, EmblemUploadContext& context);
|
|
|
|
protected:
|
|
/* 0004 */ bool m_enabled;
|
|
/* 0008 */ std::string m_uploadUrl;
|
|
/* 0020 */ std::string m_downloadUrl;
|
|
/* 0038 */ bool m_uploading;
|
|
};
|
|
|
|
extern CEmblemDataMgr* g_emblemDataMgr;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CEmblemDataMgr) == 60);
|
|
#endif
|
|
|
|
#endif
|