diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-08-21 02:40:19 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-08-21 02:40:19 +0200 |
commit | c6c9feb3a2006f0b37736799f003a0fb87f68b18 (patch) | |
tree | 23f7b58f2dfc7e9d3a3d15f171c02d6f7ffbd813 /api/logic/modplatform/modpacksch/FTBPackInstallTask.h | |
parent | b0f5f4cb13d7d0f983b7813377405298de718b2e (diff) | |
download | MultiMC-c6c9feb3a2006f0b37736799f003a0fb87f68b18.tar MultiMC-c6c9feb3a2006f0b37736799f003a0fb87f68b18.tar.gz MultiMC-c6c9feb3a2006f0b37736799f003a0fb87f68b18.tar.lz MultiMC-c6c9feb3a2006f0b37736799f003a0fb87f68b18.tar.xz MultiMC-c6c9feb3a2006f0b37736799f003a0fb87f68b18.zip |
NOISSUE attempt to fix build on macOS
Diffstat (limited to 'api/logic/modplatform/modpacksch/FTBPackInstallTask.h')
-rw-r--r-- | api/logic/modplatform/modpacksch/FTBPackInstallTask.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/api/logic/modplatform/modpacksch/FTBPackInstallTask.h b/api/logic/modplatform/modpacksch/FTBPackInstallTask.h new file mode 100644 index 00000000..c5a80751 --- /dev/null +++ b/api/logic/modplatform/modpacksch/FTBPackInstallTask.h @@ -0,0 +1,41 @@ +#pragma once + +#include "FTBPackManifest.h" + +#include "InstanceTask.h" +#include "multimc_logic_export.h" +#include "net/NetJob.h" + +namespace ModpacksCH { + +class MULTIMC_LOGIC_EXPORT PackInstallTask : public InstanceTask +{ + Q_OBJECT + +public: + explicit PackInstallTask(Modpack pack, QString version); + virtual ~PackInstallTask(){} + + bool abort() override; + +protected: + virtual void executeTask() override; + +private slots: + void onDownloadSucceeded(); + void onDownloadFailed(QString reason); + +private: + void install(); + +private: + NetJobPtr jobPtr; + QByteArray response; + + Modpack m_pack; + QString m_version_name; + Version m_version; + +}; + +} |