From 4e2e9645030ca9c97cfab51a36c83c8a24f7e9e7 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 10 Mar 2015 19:47:39 +0100 Subject: [PATCH] Return configurationMap from Module. --- src/libcalamaresui/modulesystem/Module.cpp | 9 ++++++++- src/libcalamaresui/modulesystem/Module.h | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/modulesystem/Module.cpp b/src/libcalamaresui/modulesystem/Module.cpp index 9d161eb17..9ee34757c 100644 --- a/src/libcalamaresui/modulesystem/Module.cpp +++ b/src/libcalamaresui/modulesystem/Module.cpp @@ -1,6 +1,6 @@ /* === This file is part of Calamares - === * - * Copyright 2014, Teo Mrnjavac + * Copyright 2014-2015, Teo Mrnjavac * * Calamares is free software: you can redistribute it and/or modify * 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() : m_loaded( false ) {} diff --git a/src/libcalamaresui/modulesystem/Module.h b/src/libcalamaresui/modulesystem/Module.h index 3c5f79f85..61888ca23 100644 --- a/src/libcalamaresui/modulesystem/Module.h +++ b/src/libcalamaresui/modulesystem/Module.h @@ -1,6 +1,6 @@ /* === This file is part of Calamares - === * - * Copyright 2014, Teo Mrnjavac + * Copyright 2014-2015, Teo Mrnjavac * * Calamares is free software: you can redistribute it and/or modify * 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; + QVariantMap configurationMap(); + protected: explicit Module(); virtual void initFrom( const YAML::Node& node );