• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • config
kconfigbase.cpp
Go to the documentation of this file.
1/*
2 This file is part of the KDE libraries
3 Copyright (c) 2006, 2007 Thomas Braxton <kde.braxton@gmail.com>
4 Copyright (c) 1999 Preston Brown <pbrown@kde.org>
5 Copyright (c) 1997-1999 Matthias Kalle Dalheimer <kalle@kde.org>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22
23#include "kconfigbase.h"
24
25#include "kconfiggroup.h"
26
27#include <QtCore/QString>
28
29bool KConfigBase::hasGroup(const QString &group) const
30{
31 return hasGroupImpl(group.toUtf8());
32}
33
34bool KConfigBase::hasGroup(const char *group) const
35{
36 return hasGroupImpl(QByteArray(group));
37}
38
39bool KConfigBase::hasGroup(const QByteArray &group) const
40{
41 return hasGroupImpl(group);
42}
43
44KConfigGroup KConfigBase::group( const QByteArray &b)
45{
46 return groupImpl(b);
47}
48
49KConfigGroup KConfigBase::group( const QString &str)
50{
51 return groupImpl(str.toUtf8());
52}
53
54KConfigGroup KConfigBase::group( const char *str)
55{
56 return groupImpl(QByteArray(str));
57}
58
59const KConfigGroup KConfigBase::group( const QByteArray &b ) const
60{
61 return groupImpl(b);
62}
63
64const KConfigGroup KConfigBase::group( const QString &s ) const
65{
66 return groupImpl(s.toUtf8());
67}
68
69const KConfigGroup KConfigBase::group( const char *s ) const
70{
71 return groupImpl(QByteArray(s));
72}
73
74void KConfigBase::deleteGroup(const QByteArray &group, WriteConfigFlags flags)
75{
76 deleteGroupImpl(group, flags);
77}
78
79void KConfigBase::deleteGroup(const QString &group, WriteConfigFlags flags)
80{
81 deleteGroupImpl(group.toUtf8(), flags);
82}
83
84void KConfigBase::deleteGroup(const char *group, WriteConfigFlags flags)
85{
86 deleteGroupImpl(QByteArray(group), flags);
87}
88
89bool KConfigBase::isGroupImmutable(const QByteArray& aGroup) const
90{
91 return isGroupImmutableImpl(aGroup);
92}
93
94bool KConfigBase::isGroupImmutable(const QString& aGroup) const
95{
96 return isGroupImmutableImpl(aGroup.toUtf8());
97}
98
99
100bool KConfigBase::isGroupImmutable(const char *aGroup) const
101{
102 return isGroupImmutableImpl(QByteArray(aGroup));
103}
104
105KConfigBase::~KConfigBase()
106{}
107
108KConfigBase::KConfigBase()
109{}
110
111void KConfigBase::virtual_hook(int , void *)
112{}
KConfigBase::isGroupImmutableImpl
virtual bool isGroupImmutableImpl(const QByteArray &aGroup) const =0
KConfigBase::deleteGroup
void deleteGroup(const QByteArray &group, WriteConfigFlags flags=Normal)
Delete aGroup.
Definition: kconfigbase.cpp:74
KConfigBase::deleteGroupImpl
virtual void deleteGroupImpl(const QByteArray &group, WriteConfigFlags flags=Normal)=0
KConfigBase::virtual_hook
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Definition: kconfigbase.cpp:111
KConfigBase::hasGroupImpl
virtual bool hasGroupImpl(const QByteArray &group) const =0
KConfigBase::KConfigBase
KConfigBase()
Definition: kconfigbase.cpp:108
KConfigBase::~KConfigBase
virtual ~KConfigBase()
Destructs the KConfigBase object.
Definition: kconfigbase.cpp:105
KConfigBase::groupImpl
virtual KConfigGroup groupImpl(const QByteArray &b)=0
KConfigBase::hasGroup
bool hasGroup(const QString &group) const
Returns true if the specified group is known about.
Definition: kconfigbase.cpp:29
KConfigBase::isGroupImmutable
bool isGroupImmutable(const QByteArray &aGroup) const
Can changes be made to the entries in aGroup?
Definition: kconfigbase.cpp:89
KConfigBase::group
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
KConfigGroup
A class for one specific group in a KConfig object.
Definition: kconfiggroup.h:54
QString
kconfigbase.h
kconfiggroup.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal