summaryrefslogtreecommitdiffstats
path: root/api/logic/InstanceCopyTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/InstanceCopyTask.h')
-rw-r--r--api/logic/InstanceCopyTask.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/logic/InstanceCopyTask.h b/api/logic/InstanceCopyTask.h
index a663ddbd..1ecf8313 100644
--- a/api/logic/InstanceCopyTask.h
+++ b/api/logic/InstanceCopyTask.h
@@ -4,10 +4,13 @@
#include "multimc_logic_export.h"
#include "net/NetJob.h"
#include <QUrl>
+#include <QFuture>
+#include <QFutureWatcher>
#include "settings/SettingsObject.h"
#include "BaseVersion.h"
#include "BaseInstance.h"
+
class BaseInstanceProvider;
class MULTIMC_LOGIC_EXPORT InstanceCopyTask : public Task
@@ -20,6 +23,8 @@ public:
protected:
//! Entry point for tasks.
virtual void executeTask() override;
+ void copyFinished();
+ void copyAborted();
private: /* data */
SettingsObjectPtr m_globalSettings;
@@ -28,7 +33,10 @@ private: /* data */
QString m_instName;
QString m_instIcon;
QString m_instGroup;
+ QString m_stagingPath;
bool m_copySaves = false;
+ QFuture<bool> m_copyFuture;
+ QFutureWatcher<bool> m_copyFutureWatcher;
};