[libcalamares] Start getting prettyDescription from Python

This commit is contained in:
Adriaan de Groot 2020-03-09 10:32:41 -05:00
parent 9b5a391c86
commit aa62ca639b
2 changed files with 9 additions and 1 deletions

View File

@ -165,6 +165,11 @@ BOOST_PYTHON_MODULE( libcalamares )
namespace Calamares
{
struct PythonJob::Private
{
bp::object m_prettyStatusMessage;
bp::object m_prettyName;
};
PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
const QString& scriptFile,
@ -172,6 +177,7 @@ PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
const QVariantMap& moduleConfiguration,
QObject* parent )
: Job( parent )
, m_d( std::make_unique< Private >() )
, m_scriptFile( scriptFile )
, m_workingPath( workingPath )
, m_description()

View File

@ -53,10 +53,12 @@ public:
virtual qreal getJobWeight() const override;
private:
friend class CalamaresPython::Helper;
struct Private;
friend class CalamaresPython::PythonJobInterface;
void emitProgress( double progressValue );
std::unique_ptr< Private > m_d;
QString m_scriptFile;
QString m_workingPath;
QString m_description;