|
|
|
|
@ -21,6 +21,8 @@
|
|
|
|
|
|
|
|
|
|
#include "Job.h"
|
|
|
|
|
|
|
|
|
|
#include "modulesystem/InstanceKey.h"
|
|
|
|
|
|
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
|
|
namespace CalamaresPython
|
|
|
|
|
@ -36,7 +38,8 @@ class PythonJob : public Job
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit PythonJob( const QString& scriptFile,
|
|
|
|
|
explicit PythonJob( const QString& instance, // TODO: InstanceKey
|
|
|
|
|
const QString& scriptFile,
|
|
|
|
|
const QString& workingPath,
|
|
|
|
|
const QVariantMap& moduleConfiguration = QVariantMap(),
|
|
|
|
|
QObject* parent = nullptr );
|
|
|
|
|
@ -46,6 +49,8 @@ public:
|
|
|
|
|
QString prettyStatusMessage() const override;
|
|
|
|
|
JobResult exec() override;
|
|
|
|
|
|
|
|
|
|
virtual qreal getJobWeight() const override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
friend class CalamaresPython::Helper;
|
|
|
|
|
friend class CalamaresPython::PythonJobInterface;
|
|
|
|
|
@ -56,6 +61,7 @@ private:
|
|
|
|
|
QString m_workingPath;
|
|
|
|
|
QString m_description;
|
|
|
|
|
QVariantMap m_configurationMap;
|
|
|
|
|
qreal m_weight;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Calamares
|
|
|
|
|
|