mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Refactor configuration file loading to allow multiple instances.
This commit is contained in:
parent
2d64a9df00
commit
9042616a8a
2 changed files with 73 additions and 23 deletions
|
@ -38,15 +38,17 @@ public:
|
|||
QObject* parent = nullptr );
|
||||
|
||||
static Settings* instance();
|
||||
//TODO: load from JSON then emit ready
|
||||
//TODO: load from YAML then emit ready
|
||||
|
||||
QStringList modulesSearchPaths() const;
|
||||
|
||||
QStringList modules( Phase phase ) const;
|
||||
QList< QMap< QString, QString > > customModuleInstances() const;
|
||||
|
||||
QList< QPair< ModuleAction, QStringList > > modulesSequence() const;
|
||||
|
||||
QString brandingComponentName() const;
|
||||
|
||||
bool showPromptBeforeInstall() const;
|
||||
bool showPromptBeforeExecution() const;
|
||||
|
||||
bool debugMode() const;
|
||||
|
||||
|
@ -60,9 +62,8 @@ private:
|
|||
|
||||
QStringList m_modulesSearchPaths;
|
||||
|
||||
QStringList m_modulesPrepareList;
|
||||
QStringList m_modulesInstallList;
|
||||
QStringList m_modulesPostInstallList;
|
||||
QList< QMap< QString, QString > > m_customModuleInstances;
|
||||
QList< QPair< ModuleAction, QStringList > > m_modulesSequence;
|
||||
|
||||
QString m_brandingComponentName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue