Batch #10030 by ragnarok-clanker: 0 byte-identical, 9 confirmed by peer review. - fn_13127 UIGuildInfoManageWnd::SendMsg: logic confirmed by peer review - fn_02505 CAsyncWorkMgr::UploadEmblem: logic confirmed by peer review - fn_03973 CEmblemDataMgr::Upload: logic confirmed by peer review - fn_03976 CEmblemDataMgr::CompleteUpload: logic confirmed by peer review - fn_03978 CEmblemDataUploadAsyncWork::CEmblemDataUploadAsyncWork: logic confirmed by peer review - fn_03980 CEmblemDataUploadAsyncWork::Bind: logic confirmed by peer review - fn_03982 CEmblemDataUploadAsyncWork::Complete: logic confirmed by peer review - fn_13059 UIGuildInfoManageWnd::Slot15: logic confirmed by peer review (already on main) - fn_13137 UIGuildWnd::StripNamelessTag: logic confirmed by peer review (already on main) Reviewed-by: ragnarok-clanker
39 lines
1.1 KiB
C++
39 lines
1.1 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;
|
|
|
|
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);
|
|
void CompleteUpload(AsyncDiagnostic diagnostic, std::string response, std::uint32_t guildId);
|
|
|
|
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
|