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