KDECore
kconfigbase.cpp
Go to the documentation of this file.00001 /* 00002 This file is part of the KDE libraries 00003 Copyright (c) 2006, 2007 Thomas Braxton <kde.braxton@gmail.com> 00004 Copyright (c) 1999 Preston Brown <pbrown@kde.org> 00005 Copyright (c) 1997-1999 Matthias Kalle Dalheimer <kalle@kde.org> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #include "kconfigbase.h" 00024 00025 #include "kconfiggroup.h" 00026 00027 #include <QtCore/QString> 00028 00029 bool KConfigBase::hasGroup(const QString &group) const 00030 { 00031 return hasGroupImpl(group.toUtf8()); 00032 } 00033 00034 bool KConfigBase::hasGroup(const char *group) const 00035 { 00036 return hasGroupImpl(QByteArray(group)); 00037 } 00038 00039 bool KConfigBase::hasGroup(const QByteArray &group) const 00040 { 00041 return hasGroupImpl(group); 00042 } 00043 00044 KConfigGroup KConfigBase::group( const QByteArray &b) 00045 { 00046 return groupImpl(b); 00047 } 00048 00049 KConfigGroup KConfigBase::group( const QString &str) 00050 { 00051 return groupImpl(str.toUtf8()); 00052 } 00053 00054 KConfigGroup KConfigBase::group( const char *str) 00055 { 00056 return groupImpl(QByteArray(str)); 00057 } 00058 00059 const KConfigGroup KConfigBase::group( const QByteArray &b ) const 00060 { 00061 return groupImpl(b); 00062 } 00063 00064 const KConfigGroup KConfigBase::group( const QString &s ) const 00065 { 00066 return groupImpl(s.toUtf8()); 00067 } 00068 00069 const KConfigGroup KConfigBase::group( const char *s ) const 00070 { 00071 return groupImpl(QByteArray(s)); 00072 } 00073 00074 void KConfigBase::deleteGroup(const QByteArray &group, WriteConfigFlags flags) 00075 { 00076 deleteGroupImpl(group, flags); 00077 } 00078 00079 void KConfigBase::deleteGroup(const QString &group, WriteConfigFlags flags) 00080 { 00081 deleteGroupImpl(group.toUtf8(), flags); 00082 } 00083 00084 void KConfigBase::deleteGroup(const char *group, WriteConfigFlags flags) 00085 { 00086 deleteGroupImpl(QByteArray(group), flags); 00087 } 00088 00089 bool KConfigBase::isGroupImmutable(const QByteArray& aGroup) const 00090 { 00091 return isGroupImmutableImpl(aGroup); 00092 } 00093 00094 bool KConfigBase::isGroupImmutable(const QString& aGroup) const 00095 { 00096 return isGroupImmutableImpl(aGroup.toUtf8()); 00097 } 00098 00099 00100 bool KConfigBase::isGroupImmutable(const char *aGroup) const 00101 { 00102 return isGroupImmutableImpl(QByteArray(aGroup)); 00103 } 00104 00105 KConfigBase::~KConfigBase() 00106 {} 00107 00108 KConfigBase::KConfigBase() 00109 {} 00110 00111 void KConfigBase::virtual_hook(int , void *) 00112 {}