2016-10-02 23:55:54 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "multimc_logic_export.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
#include <QUrl>
|
|
|
|
#include "settings/SettingsObject.h"
|
|
|
|
#include "BaseVersion.h"
|
|
|
|
|
|
|
|
class MULTIMC_LOGIC_EXPORT InstanceCreationTask : public Task
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-09-05 22:38:17 +01:00
|
|
|
explicit InstanceCreationTask(SettingsObjectPtr settings, const QString & stagingPath, BaseVersionPtr version, const QString &instName,
|
2016-10-02 23:55:54 +01:00
|
|
|
const QString &instIcon, const QString &instGroup);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//! Entry point for tasks.
|
|
|
|
virtual void executeTask() override;
|
|
|
|
|
|
|
|
private: /* data */
|
|
|
|
SettingsObjectPtr m_globalSettings;
|
2017-09-05 22:38:17 +01:00
|
|
|
QString m_stagingPath;
|
2016-10-02 23:55:54 +01:00
|
|
|
BaseVersionPtr m_version;
|
|
|
|
QString m_instName;
|
|
|
|
QString m_instIcon;
|
|
|
|
QString m_instGroup;
|
|
|
|
};
|
|
|
|
|