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.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/api/logic/InstanceCopyTask.h b/api/logic/InstanceCopyTask.h
index dc46bfec..a8dc9783 100644
--- a/api/logic/InstanceCopyTask.h
+++ b/api/logic/InstanceCopyTask.h
@@ -9,16 +9,15 @@
#include "settings/SettingsObject.h"
#include "BaseVersion.h"
#include "BaseInstance.h"
-
+#include "InstanceTask.h"
class BaseInstanceProvider;
-class MULTIMC_LOGIC_EXPORT InstanceCopyTask : public Task
+class MULTIMC_LOGIC_EXPORT InstanceCopyTask : public InstanceTask
{
Q_OBJECT
public:
- explicit InstanceCopyTask(SettingsObjectPtr settings, const QString & stagingPath, InstancePtr origInstance, const QString &instName,
- const QString &instIcon, const QString &instGroup, bool copySaves);
+ explicit InstanceCopyTask(InstancePtr origInstance, bool copySaves);
protected:
//! Entry point for tasks.
@@ -27,15 +26,8 @@ protected:
void copyAborted();
private: /* data */
- SettingsObjectPtr m_globalSettings;
InstancePtr m_origInstance;
- QString m_instName;
- QString m_instIcon;
- QString m_instGroup;
- QString m_stagingPath;
QFuture<bool> m_copyFuture;
QFutureWatcher<bool> m_copyFutureWatcher;
std::unique_ptr<IPathMatcher> m_matcher;
};
-
-