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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • 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 
29 bool KConfigBase::hasGroup(const QString &group) const
30 {
31  return hasGroupImpl(group.toUtf8());
32 }
33 
34 bool KConfigBase::hasGroup(const char *group) const
35 {
36  return hasGroupImpl(QByteArray(group));
37 }
38 
39 bool KConfigBase::hasGroup(const QByteArray &group) const
40 {
41  return hasGroupImpl(group);
42 }
43 
44 KConfigGroup KConfigBase::group( const QByteArray &b)
45 {
46  return groupImpl(b);
47 }
48 
49 KConfigGroup KConfigBase::group( const QString &str)
50 {
51  return groupImpl(str.toUtf8());
52 }
53 
54 KConfigGroup KConfigBase::group( const char *str)
55 {
56  return groupImpl(QByteArray(str));
57 }
58 
59 const KConfigGroup KConfigBase::group( const QByteArray &b ) const
60 {
61  return groupImpl(b);
62 }
63 
64 const KConfigGroup KConfigBase::group( const QString &s ) const
65 {
66  return groupImpl(s.toUtf8());
67 }
68 
69 const KConfigGroup KConfigBase::group( const char *s ) const
70 {
71  return groupImpl(QByteArray(s));
72 }
73 
74 void KConfigBase::deleteGroup(const QByteArray &group, WriteConfigFlags flags)
75 {
76  deleteGroupImpl(group, flags);
77 }
78 
79 void KConfigBase::deleteGroup(const QString &group, WriteConfigFlags flags)
80 {
81  deleteGroupImpl(group.toUtf8(), flags);
82 }
83 
84 void KConfigBase::deleteGroup(const char *group, WriteConfigFlags flags)
85 {
86  deleteGroupImpl(QByteArray(group), flags);
87 }
88 
89 bool KConfigBase::isGroupImmutable(const QByteArray& aGroup) const
90 {
91  return isGroupImmutableImpl(aGroup);
92 }
93 
94 bool KConfigBase::isGroupImmutable(const QString& aGroup) const
95 {
96  return isGroupImmutableImpl(aGroup.toUtf8());
97 }
98 
99 
100 bool KConfigBase::isGroupImmutable(const char *aGroup) const
101 {
102  return isGroupImmutableImpl(QByteArray(aGroup));
103 }
104 
105 KConfigBase::~KConfigBase()
106 {}
107 
108 KConfigBase::KConfigBase()
109 {}
110 
111 void KConfigBase::virtual_hook(int , void *)
112 {}
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
QByteArray
KMacroExpander::group
Definition: kmacroexpander_unix.cpp:34
KConfigBase::deleteGroup
void deleteGroup(const QByteArray &group, WriteConfigFlags flags=Normal)
Delete aGroup.
Definition: kconfigbase.cpp:74
KConfigBase::hasGroup
bool hasGroup(const QString &group) const
Returns true if the specified group is known about.
Definition: kconfigbase.cpp:29
KConfigBase::group
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
KConfigBase::~KConfigBase
virtual ~KConfigBase()
Destructs the KConfigBase object.
Definition: kconfigbase.cpp:105
KConfigBase::isGroupImmutableImpl
virtual bool isGroupImmutableImpl(const QByteArray &aGroup) const =0
QString
KConfigBase::groupImpl
virtual KConfigGroup groupImpl(const QByteArray &b)=0
KConfigBase::deleteGroupImpl
virtual void deleteGroupImpl(const QByteArray &group, WriteConfigFlags flags=Normal)=0
KConfigGroup
A class for one specific group in a KConfig object.
Definition: kconfiggroup.h:53
KConfigBase::isGroupImmutable
bool isGroupImmutable(const QByteArray &aGroup) const
Can changes be made to the entries in aGroup?
Definition: kconfigbase.cpp:89
KConfigBase::hasGroupImpl
virtual bool hasGroupImpl(const QByteArray &group) const =0
kconfigbase.h
kconfiggroup.h
KConfigBase::KConfigBase
KConfigBase()
Definition: kconfigbase.cpp:108
QString::toUtf8
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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