KConfig 5.109.0
kconfiggui.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 1999 Matthias Ettrich <ettrich@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef KCONFIGGUI_H
9#define KCONFIGGUI_H
10
11#include <kconfiggui_export.h>
12
13#include <QString>
14
15class KConfig;
16
20namespace KConfigGui
21{
34KCONFIGGUI_EXPORT KConfig *sessionConfig();
35
44KCONFIGGUI_EXPORT void setSessionConfig(const QString &id, const QString &key);
45
52KCONFIGGUI_EXPORT bool hasSessionConfig();
53
54#if KCONFIGGUI_ENABLE_DEPRECATED_SINCE(5, 11)
61KCONFIGGUI_EXPORT
62KCONFIGGUI_DEPRECATED_VERSION(5, 11, "Use KConfigGui::sessionConfig()->name()")
63QString sessionConfigName();
64#endif
65}
66
67#endif // KCONFIGGUI_H
The central class of the KDE configuration data system.
Definition kconfig.h:57
Interface-related functions.
Definition kconfiggui.h:21
void setSessionConfig(const QString &id, const QString &key)
Replaces the current application session config object.
KConfig * sessionConfig()
Returns the current application session config object.
bool hasSessionConfig()
Indicates if a session config has been created for that application (i.e. if sessionConfig() got call...