diff options
Diffstat (limited to 'api/logic/minecraft/update/AssetUpdateTask.h')
-rw-r--r-- | api/logic/minecraft/update/AssetUpdateTask.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/api/logic/minecraft/update/AssetUpdateTask.h b/api/logic/minecraft/update/AssetUpdateTask.h new file mode 100644 index 00000000..c666faa6 --- /dev/null +++ b/api/logic/minecraft/update/AssetUpdateTask.h @@ -0,0 +1,26 @@ +#pragma once +#include "tasks/Task.h" +#include "net/NetJob.h" +class MinecraftInstance; + +class AssetUpdateTask : public Task +{ + Q_OBJECT +public: + AssetUpdateTask(MinecraftInstance * inst); + void executeTask() override; + + bool canAbort() const override; + +private slots: + void assetIndexFinished(); + void assetIndexFailed(QString reason); + void assetsFailed(QString reason); + +public slots: + bool abort() override; + +private: + MinecraftInstance *m_inst; + NetJobPtr downloadJob; +}; |