From 20b9f2b42a3b58b6081af271774fbcc34025dccb Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 25 Jul 2021 19:11:59 +0200 Subject: NOISSUE Flatten gui and logic libraries into MultiMC --- launcher/minecraft/legacy/LegacyUpgradeTask.h | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 launcher/minecraft/legacy/LegacyUpgradeTask.h (limited to 'launcher/minecraft/legacy/LegacyUpgradeTask.h') diff --git a/launcher/minecraft/legacy/LegacyUpgradeTask.h b/launcher/minecraft/legacy/LegacyUpgradeTask.h new file mode 100644 index 00000000..542e17b8 --- /dev/null +++ b/launcher/minecraft/legacy/LegacyUpgradeTask.h @@ -0,0 +1,29 @@ +#pragma once + +#include "InstanceTask.h" +#include "net/NetJob.h" +#include +#include +#include +#include "settings/SettingsObject.h" +#include "BaseVersion.h" +#include "BaseInstance.h" + + +class LegacyUpgradeTask : public InstanceTask +{ + Q_OBJECT +public: + explicit LegacyUpgradeTask(InstancePtr origInstance); + +protected: + //! Entry point for tasks. + virtual void executeTask() override; + void copyFinished(); + void copyAborted(); + +private: /* data */ + InstancePtr m_origInstance; + QFuture m_copyFuture; + QFutureWatcher m_copyFutureWatcher; +}; -- cgit