2025-06-13 11:16:18 +00:00
|
|
|
// SPDX-FileCopyrightText: 2023-2025 Devin Lin <devin@kde.org>
|
2023-02-23 16:43:38 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-06-13 11:16:18 +00:00
|
|
|
#include <QDir>
|
|
|
|
|
#include <QFile>
|
2023-02-23 16:43:38 +00:00
|
|
|
#include <QLoggingCategory>
|
2025-06-13 11:16:18 +00:00
|
|
|
#include <QTextStream>
|
2023-02-23 16:43:38 +00:00
|
|
|
|
|
|
|
|
static const QLoggingCategory &LOGGING_CATEGORY()
|
|
|
|
|
{
|
2023-03-30 02:40:47 +00:00
|
|
|
static const QLoggingCategory category("plasma-mobile-envmanager");
|
2023-02-23 16:43:38 +00:00
|
|
|
return category;
|
|
|
|
|
}
|
2025-06-13 11:16:18 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets each config option in the config file to be immutable or not (appended with [$i])
|
|
|
|
|
* See https://api.kde.org/frameworks/kconfig/html/options.html for more details.
|
|
|
|
|
*
|
|
|
|
|
* @param immutable whether to set options to be immutable, or to remove immutability
|
|
|
|
|
* @param configFilePath path to the config file
|
|
|
|
|
* @param options the options in the config file to affect (format: <config group, <key, value>>)
|
|
|
|
|
*/
|
|
|
|
|
void setOptionsImmutable(bool immutable, const QString &configFilePath, const QMap<QString, QMap<QString, QVariant>> &options);
|