[libcalamares] Start getting prettyDescription from Python
This commit is contained in:
parent
9b5a391c86
commit
aa62ca639b
@ -165,6 +165,11 @@ BOOST_PYTHON_MODULE( libcalamares )
|
|||||||
namespace Calamares
|
namespace Calamares
|
||||||
{
|
{
|
||||||
|
|
||||||
|
struct PythonJob::Private
|
||||||
|
{
|
||||||
|
bp::object m_prettyStatusMessage;
|
||||||
|
bp::object m_prettyName;
|
||||||
|
};
|
||||||
|
|
||||||
PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
|
PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
|
||||||
const QString& scriptFile,
|
const QString& scriptFile,
|
||||||
@ -172,6 +177,7 @@ PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
|
|||||||
const QVariantMap& moduleConfiguration,
|
const QVariantMap& moduleConfiguration,
|
||||||
QObject* parent )
|
QObject* parent )
|
||||||
: Job( parent )
|
: Job( parent )
|
||||||
|
, m_d( std::make_unique< Private >() )
|
||||||
, m_scriptFile( scriptFile )
|
, m_scriptFile( scriptFile )
|
||||||
, m_workingPath( workingPath )
|
, m_workingPath( workingPath )
|
||||||
, m_description()
|
, m_description()
|
||||||
|
@ -53,10 +53,12 @@ public:
|
|||||||
virtual qreal getJobWeight() const override;
|
virtual qreal getJobWeight() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class CalamaresPython::Helper;
|
struct Private;
|
||||||
|
|
||||||
friend class CalamaresPython::PythonJobInterface;
|
friend class CalamaresPython::PythonJobInterface;
|
||||||
void emitProgress( double progressValue );
|
void emitProgress( double progressValue );
|
||||||
|
|
||||||
|
std::unique_ptr< Private > m_d;
|
||||||
QString m_scriptFile;
|
QString m_scriptFile;
|
||||||
QString m_workingPath;
|
QString m_workingPath;
|
||||||
QString m_description;
|
QString m_description;
|
||||||
|
Loading…
Reference in New Issue
Block a user