turtle-wow-source-kinda/Dumps/Source Code/16 - Development_server/patch_1171/tools/TurtlePatcher/Downloader.h
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

21 lines
475 B
C++

// Giperion for Turtle WoW
#pragma once
#include <functional>
class IDownloader
{
public:
virtual bool Init(const std::string& InHostPath) = 0;
virtual bool DownloadAsync() = 0;
virtual void CancelDownload() = 0;
virtual ~IDownloader();
// All callbacks may be invoked from different threads!
std::function<void()> OnAbortDownload;
std::function<void()> OnDownloadComplete;
std::function<void(float)> DownloadProgressCallback;
};
IDownloader* CreateDownloader();