summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/curse/FileResolvingTask.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-20 05:22:04 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-20 05:22:04 +0200
commit6bd2605a79bec9267740f223c87d56d2263d98b8 (patch)
tree9ded863e6f84b52fd2c003e2dd1c22f19427658c /api/logic/minecraft/curse/FileResolvingTask.h
parente9a61995077eb15027cf3d044aa15a8cb67c13ae (diff)
downloadMultiMC-6bd2605a79bec9267740f223c87d56d2263d98b8.tar
MultiMC-6bd2605a79bec9267740f223c87d56d2263d98b8.tar.gz
MultiMC-6bd2605a79bec9267740f223c87d56d2263d98b8.tar.lz
MultiMC-6bd2605a79bec9267740f223c87d56d2263d98b8.tar.xz
MultiMC-6bd2605a79bec9267740f223c87d56d2263d98b8.zip
NOISSUE add import from curse zip packs
Does not actually grab mods, but resolves them and prints the results in logs.
Diffstat (limited to 'api/logic/minecraft/curse/FileResolvingTask.h')
-rw-r--r--api/logic/minecraft/curse/FileResolvingTask.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/api/logic/minecraft/curse/FileResolvingTask.h b/api/logic/minecraft/curse/FileResolvingTask.h
new file mode 100644
index 00000000..b7ca85d3
--- /dev/null
+++ b/api/logic/minecraft/curse/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 Curse
+{
+class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
+{
+ Q_OBJECT
+public:
+ explicit FileResolvingTask(QVector<Curse::File> &toProcess);
+ const QVector<Curse::File> &getResults() const
+ {
+ return m_toProcess;
+ }
+
+protected:
+ virtual void executeTask() override;
+
+protected slots:
+ void netJobFinished();
+
+private: /* data */
+ QVector<Curse::File> m_toProcess;
+ QVector<QByteArray> results;
+ NetJobPtr m_dljob;
+};
+}