KDECore
#include <kconfigdata.h>
Public Types | |
enum | EntryOption { EntryDirty =1, EntryGlobal =2, EntryImmutable =4, EntryDeleted =8, EntryExpansion =16, EntryRawKey =32, EntryDefault =(SearchDefaults<<16), EntryLocalized =(SearchLocalized<<16) } |
enum | SearchFlag { SearchDefaults =1, SearchLocalized =2 } |
Public Member Functions | |
Iterator | findEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) |
ConstIterator | findEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) const |
Iterator | findExactEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) |
QString | getEntry (const QByteArray &group, const QByteArray &key, const QString &defaultValue=QString(), SearchFlags flags=SearchFlags(), bool *expand=0) const |
bool | getEntryOption (const ConstIterator &it, EntryOption option) const |
bool | getEntryOption (const QByteArray &group, const QByteArray &key, SearchFlags flags, EntryOption option) const |
bool | hasEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) const |
bool | revertEntry (const QByteArray &group, const QByteArray &key, SearchFlags flags=SearchFlags()) |
bool | setEntry (const QByteArray &group, const QByteArray &key, const QByteArray &value, EntryOptions options) |
void | setEntry (const QByteArray &group, const QByteArray &key, const QString &value, EntryOptions options) |
void | setEntryOption (Iterator it, EntryOption option, bool bf) |
void | setEntryOption (const QByteArray &group, const QByteArray &key, SearchFlags flags, EntryOption option, bool bf) |
Detailed Description
type specifying a map of entries (key,value pairs). The keys are actually a key in a particular config file group together with the group name.
Definition at line 152 of file kconfigdata.h.
Member Enumeration Documentation
Enumerator | |
---|---|
EntryDirty | |
EntryGlobal | |
EntryImmutable | |
EntryDeleted | |
EntryExpansion | |
EntryRawKey | |
EntryDefault | |
EntryLocalized |
Definition at line 161 of file kconfigdata.h.
Enumerator | |
---|---|
SearchDefaults | |
SearchLocalized |
Definition at line 155 of file kconfigdata.h.
Member Function Documentation
Iterator KEntryMap::findEntry | ( | const QByteArray & | group, |
const QByteArray & | key = QByteArray() , |
||
SearchFlags | flags = SearchFlags() |
||
) |
ConstIterator KEntryMap::findEntry | ( | const QByteArray & | group, |
const QByteArray & | key = QByteArray() , |
||
SearchFlags | flags = SearchFlags() |
||
) | const |
QMap< KEntryKey, KEntry >::Iterator KEntryMap::findExactEntry | ( | const QByteArray & | group, |
const QByteArray & | key = QByteArray() , |
||
SearchFlags | flags = SearchFlags() |
||
) |
Definition at line 42 of file kconfigdata.cpp.
QString KEntryMap::getEntry | ( | const QByteArray & | group, |
const QByteArray & | key, | ||
const QString & | defaultValue = QString() , |
||
SearchFlags | flags = SearchFlags() , |
||
bool * | expand = 0 |
||
) | const |
Definition at line 209 of file kconfigdata.cpp.
bool KEntryMap::getEntryOption | ( | const ConstIterator & | it, |
EntryOption | option | ||
) | const |
|
inline |
Definition at line 203 of file kconfigdata.h.
bool KEntryMap::hasEntry | ( | const QByteArray & | group, |
const QByteArray & | key = QByteArray() , |
||
SearchFlags | flags = SearchFlags() |
||
) | const |
Definition at line 226 of file kconfigdata.cpp.
bool KEntryMap::revertEntry | ( | const QByteArray & | group, |
const QByteArray & | key, | ||
SearchFlags | flags = SearchFlags() |
||
) |
Definition at line 289 of file kconfigdata.cpp.
bool KEntryMap::setEntry | ( | const QByteArray & | group, |
const QByteArray & | key, | ||
const QByteArray & | value, | ||
EntryOptions | options | ||
) |
Returns true if the entry gets dirtied or false in other case.
|
inline |
Definition at line 188 of file kconfigdata.h.
void KEntryMap::setEntryOption | ( | Iterator | it, |
EntryOption | option, | ||
bool | bf | ||
) |
|
inline |
Definition at line 210 of file kconfigdata.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.