summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/FtbPackInstallTask.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-03-16 23:33:58 +0100
committerPetr Mrázek <peterix@gmail.com>2018-03-16 23:33:58 +0100
commit106155dd627d8e333260e2460d4c9c558b49b21f (patch)
treed0678445ccb0881bb10e4bd1b13a3e03eda13d7b /api/logic/modplatform/FtbPackInstallTask.h
parent303842a19e4893e4ac6784d60aca990b4276d0ec (diff)
downloadMultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar
MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.gz
MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.lz
MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.xz
MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.zip
NOISSUE move modpack platform related files to 'modplatform' subfolders
Diffstat (limited to 'api/logic/modplatform/FtbPackInstallTask.h')
-rw-r--r--api/logic/modplatform/FtbPackInstallTask.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/api/logic/modplatform/FtbPackInstallTask.h b/api/logic/modplatform/FtbPackInstallTask.h
deleted file mode 100644
index cf477ae2..00000000
--- a/api/logic/modplatform/FtbPackInstallTask.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#pragma once
-#include "tasks/Task.h"
-#include "modplatform/FtbPackDownloader.h"
-#include "BaseInstanceProvider.h"
-#include "net/NetJob.h"
-#include "quazip.h"
-#include "quazipdir.h"
-#include "meta/Index.h"
-#include "meta/Version.h"
-#include "meta/VersionList.h"
-
-class MULTIMC_LOGIC_EXPORT FtbPackInstallTask : public Task {
-
- Q_OBJECT
-
-public:
- explicit FtbPackInstallTask(FtbPackDownloader *downloader, SettingsObjectPtr settings, const QString &stagingPath, const QString &instName,
- const QString &instIcon, const QString &instGroup);
- bool abort() override;
-
-protected:
- //! Entry point for tasks.
- virtual void executeTask() override;
-
-private: /* data */
- SettingsObjectPtr m_globalSettings;
- QString m_stagingPath;
- QString m_instName;
- QString m_instIcon;
- QString m_instGroup;
- NetJobPtr m_netJobPtr;
-
- FtbPackDownloader *m_downloader;
-
- std::unique_ptr<QuaZip> m_packZip;
- QFuture<QStringList> m_extractFuture;
- QFutureWatcher<QStringList> m_extractFutureWatcher;
-
- void downloadPack();
- void unzip(QString archivePath);
- void install();
-
- bool moveRecursively(QString source, QString dest);
-
- bool abortable = false;
-
-private slots:
- void onDownloadSucceeded(QString archivePath);
- void onDownloadFailed(QString reason);
- void onDownloadProgress(qint64 current, qint64 total);
-
- void onUnzipFinished();
- void onUnzipCanceled();
-
-};