KConfig

kconfigbase.cpp
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2006, 2007 Thomas Braxton <kde.braxton@gmail.com>
4 SPDX-FileCopyrightText: 1999 Preston Brown <pbrown@kde.org>
5 SPDX-FileCopyrightText: 1997-1999 Matthias Kalle Dalheimer <kalle@kde.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#include "kconfigbase.h"
11
12#include "kconfiggroup.h"
13
14#include <QString>
15
16bool KConfigBase::hasGroup(const QString &group) const
17{
18 return hasGroupImpl(group);
19}
20
22{
23 return groupImpl(str);
24}
25
27{
28 return groupImpl(s);
29}
30
32{
33 deleteGroupImpl(group, flags);
34}
35
36bool KConfigBase::isGroupImmutable(const QString &aGroup) const
37{
38 return isGroupImmutableImpl(aGroup);
39}
40
44
45KConfigBase::KConfigBase()
46{
47}
48
50{
51}
virtual bool isGroupImmutableImpl(const QString &groupName) const =0
void deleteGroup(const QString &group, WriteConfigFlags flags=Normal)
Delete group.
virtual bool hasGroupImpl(const QString &groupName) const =0
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
virtual ~KConfigBase()
Destructs the KConfigBase object.
virtual KConfigGroup groupImpl(const QString &groupName)=0
bool isGroupImmutable(const QString &group) const
Can changes be made to the entries in group?
bool hasGroup(const QString &group) const
Returns true if the specified group is known about.
KConfigGroup group(const QString &group)
Returns an object for the named subgroup.
virtual void deleteGroupImpl(const QString &groupName, WriteConfigFlags flags=Normal)=0
A class for one specific group in a KConfig object.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:56:29 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.