mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
ViewStep should know their own instance keys.
This commit is contained in:
parent
fb44fb97b6
commit
461ef79170
2 changed files with 14 additions and 3 deletions
|
@ -52,6 +52,13 @@ ViewStep::onLeave()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ViewStep::setModuleInstanceKey( const QString& instanceKey )
|
||||||
|
{
|
||||||
|
m_instanceKey = instanceKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
ViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -69,17 +69,21 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual void onLeave();
|
virtual void onLeave();
|
||||||
|
|
||||||
virtual QList< Calamares::job_ptr > jobs() const = 0;
|
virtual QList< job_ptr > jobs() const = 0;
|
||||||
|
|
||||||
|
void setModuleInstanceKey( const QString& instanceKey );
|
||||||
|
QString moduleInstanceKey() const { return m_instanceKey; }
|
||||||
|
|
||||||
virtual void setConfigurationMap( const QVariantMap& configurationMap );
|
virtual void setConfigurationMap( const QVariantMap& configurationMap );
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void nextStatusChanged( bool status );
|
void nextStatusChanged( bool status );
|
||||||
void done();
|
void done();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
QString m_instanceKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_DECLARE_INTERFACE( Calamares::ViewStep, "calamares.ViewModule/1.0" )
|
|
||||||
|
|
||||||
#endif // VIEWSTEP_H
|
#endif // VIEWSTEP_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue