summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/flame/FileResolvingTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/flame/FileResolvingTask.h')
-rw-r--r--api/logic/minecraft/flame/FileResolvingTask.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/api/logic/minecraft/flame/FileResolvingTask.h b/api/logic/minecraft/flame/FileResolvingTask.h
new file mode 100644
index 00000000..00658452
--- /dev/null
+++ b/api/logic/minecraft/flame/FileResolvingTask.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include "tasks/Task.h"
+#include "net/NetJob.h"
+#include "PackManifest.h"
+
+#include "multimc_logic_export.h"
+
+namespace Flame
+{
+class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
+{
+ Q_OBJECT
+public:
+ explicit FileResolvingTask(Flame::Manifest &toProcess);
+ const Flame::Manifest &getResults() const
+ {
+ return m_toProcess;
+ }
+
+protected:
+ virtual void executeTask() override;
+
+protected slots:
+ void netJobFinished();
+
+private: /* data */
+ Flame::Manifest m_toProcess;
+ QVector<QByteArray> results;
+ NetJobPtr m_dljob;
+};
+}