mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-01 04:14:35 +00:00
21 lines
475 B
C++
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(); |