2020-11-11 13:08:42 +01:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
|
|
*
|
|
|
|
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Config.h"
|
|
|
|
|
2020-11-11 13:21:16 +01:00
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "utils/Variant.h"
|
|
|
|
|
2020-11-11 13:08:42 +01:00
|
|
|
Config::Config( QObject* parent )
|
|
|
|
: QObject( parent )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2020-11-11 13:21:16 +01:00
|
|
|
Config::setConfigurationMap( const QVariantMap& configurationMap )
|
2020-11-11 13:08:42 +01:00
|
|
|
{
|
2020-11-11 13:21:16 +01:00
|
|
|
m_lnfPath = CalamaresUtils::getString( configurationMap, "lnftool" );
|
|
|
|
|
|
|
|
if ( m_lnfPath.isEmpty() )
|
|
|
|
{
|
|
|
|
cWarning() << "no lnftool given for plasmalnf module.";
|
|
|
|
}
|
2020-11-11 13:08:42 +01:00
|
|
|
}
|