Return configurationMap from Module.

This commit is contained in:
Teo Mrnjavac 2015-03-10 19:47:39 +01:00
parent 8a60abdfc9
commit 4e2e964503
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> === /* === This file is part of Calamares - <http://github.com/calamares> ===
* *
* Copyright 2014, Teo Mrnjavac <teo@kde.org> * Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
* *
* Calamares is free software: you can redistribute it and/or modify * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -213,6 +213,13 @@ Module::isLoaded() const
} }
QVariantMap
Module::configurationMap()
{
return m_configurationMap;
}
Module::Module() Module::Module()
: m_loaded( false ) : m_loaded( false )
{} {}

View File

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> === /* === This file is part of Calamares - <http://github.com/calamares> ===
* *
* Copyright 2014, Teo Mrnjavac <teo@kde.org> * Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
* *
* Calamares is free software: you can redistribute it and/or modify * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -73,6 +73,8 @@ public:
virtual QList< job_ptr > jobs() const = 0; virtual QList< job_ptr > jobs() const = 0;
QVariantMap configurationMap();
protected: protected:
explicit Module(); explicit Module();
virtual void initFrom( const YAML::Node& node ); virtual void initFrom( const YAML::Node& node );