KConfig

kconfiggui.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1999 Matthias Ettrich <[email protected]>
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 
15 class KConfig;
16 
20 namespace KConfigGui
21 {
29 KCONFIGGUI_EXPORT KConfig *sessionConfig();
30 
39 KCONFIGGUI_EXPORT void setSessionConfig(const QString &id, const QString &key);
40 
47 KCONFIGGUI_EXPORT bool hasSessionConfig();
48 
49 #if KCONFIGGUI_ENABLE_DEPRECATED_SINCE(5, 11)
50 
56 KCONFIGGUI_DEPRECATED_VERSION(5, 11, "Use KConfigGui::sessionConfig()->name()")
57 KCONFIGGUI_EXPORT QString sessionConfigName();
58 #endif
59 }
60 
61 #endif // KCONFIGGUI_H
Interface-related functions.
Definition: kconfiggui.h:20
KCONFIGGUI_EXPORT void setSessionConfig(const QString &id, const QString &key)
Replaces the current application session config object.
Definition: kconfiggui.cpp:39
The central class of the KDE configuration data system.
Definition: kconfig.h:56
KCONFIGGUI_EXPORT KConfig * sessionConfig()
Returns the current application session config object.
Definition: kconfiggui.cpp:23
KCONFIGGUI_EXPORT QString sessionConfigName()
Returns the name of the application session.
Definition: kconfiggui.cpp:57
KCONFIGGUI_EXPORT bool hasSessionConfig()
Indicates if a session config has been created for that application (i.e. if sessionConfig() got call...
Definition: kconfiggui.cpp:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jul 10 2020 22:46:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.