KConfigGroup Class Reference
A class for one specific group in a KConfig object. More...
#include <KConfigGroup>

Public Member Functions | |
| KConfigGroup () | |
| KConfigGroup (KConfigBase *master, const QString &group) | |
| KConfigGroup (const KConfigBase *master, const QString &group) | |
| KConfigGroup (const KConfigGroup &) | |
| KConfigGroup (const KConfigBase *master, const char *group) | |
| KConfigGroup (KConfigBase *master, const char *group) | |
| KConfigGroup (const KSharedConfigPtr &master, const QString &group) | |
| KConfigGroup (const KSharedConfigPtr &master, const char *group) | |
| ~KConfigGroup () | |
| AccessMode | accessMode () const |
| void | changeGroup (const QString &group) |
| void | changeGroup (const char *group) |
| KConfig * | config () |
| const KConfig * | config () const |
| void | copyTo (KConfigBase *other, WriteConfigFlags pFlags=Normal) const |
| void | deleteEntry (const QString &pKey, WriteConfigFlags pFlags=Normal) |
| void | deleteEntry (const char *pKey, WriteConfigFlags pFlags=Normal) |
| void | deleteGroup (WriteConfigFlags pFlags=Normal) |
| QMap< QString, QString > | entryMap () const |
| bool | exists () const |
| QStringList | groupList () const |
| bool | hasDefault (const char *key) const |
| bool | hasDefault (const QString &key) const |
| bool | hasKey (const QString &key) const |
| bool | hasKey (const char *key) const |
| bool | isEntryImmutable (const QString &key) const |
| bool | isEntryImmutable (const char *key) const |
| bool | isImmutable () const |
| bool | isValid () const |
| QStringList | keyList () const |
| void | markAsClean () |
| QString | name () const |
| KConfigGroup & | operator= (const KConfigGroup &) |
| KConfigGroup | parent () const |
| QString | readEntry (const char *key, const QString &aDefault) const |
| QString | readEntry (const QString &key, const char *aDefault=0) const |
| QVariantList | readEntry (const QString &key, const QVariantList &aDefault) const |
| QString | readEntry (const char *key, const char *aDefault=0) const |
| QStringList | readEntry (const QString &key, const QStringList &aDefault) const |
| QVariantList | readEntry (const char *key, const QVariantList &aDefault) const |
| template<typename T > | |
| QList< T > | readEntry (const QString &key, const QList< T > &aDefault) const |
| template<typename T > | |
| QList< T > | readEntry (const char *key, const QList< T > &aDefault) const |
| QStringList | readEntry (const char *key, const QStringList &aDefault) const |
| template<typename T > | |
| T | readEntry (const QString &key, const T &aDefault) const |
| template<typename T > | |
| T | readEntry (const char *key, const T &aDefault) const |
| QVariant | readEntry (const QString &key, const QVariant &aDefault) const |
| QVariant | readEntry (const char *key, const QVariant &aDefault) const |
| QString | readEntry (const QString &key, const QString &aDefault) const |
| QString | readEntryUntranslated (const QString &pKey, const QString &aDefault=QString()) const |
| QString | readEntryUntranslated (const char *key, const QString &aDefault=QString()) const |
| QStringList | readPathEntry (const QString &pKey, const QStringList &aDefault) const |
| QString | readPathEntry (const QString &pKey, const QString &aDefault) const |
| QString | readPathEntry (const char *key, const QString &aDefault) const |
| QStringList | readPathEntry (const char *key, const QStringList &aDefault) const |
| QStringList | readXdgListEntry (const QString &pKey, const QStringList &aDefault=QStringList()) const |
| QStringList | readXdgListEntry (const char *pKey, const QStringList &aDefault=QStringList()) const |
| void | reparent (KConfigBase *parent, WriteConfigFlags pFlags=Normal) |
| void | revertToDefault (const char *key) |
| void | revertToDefault (const QString &key) |
| void | sync () |
| void | writeEntry (const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const QVariantList &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const QString &key, const QString &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const char *value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const QString &key, const char *value, WriteConfigFlags pFlags=Normal) |
| template<typename T > | |
| void | writeEntry (const char *key, const QList< T > &value, WriteConfigFlags pFlags=Normal) |
| template<typename T > | |
| void | writeEntry (const QString &key, const QList< T > &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const QString &key, const QStringList &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const QString &key, const QVariantList &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const QString &key, const QByteArray &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const QString &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const QStringList &value, WriteConfigFlags pFlags=Normal) |
| template<typename T > | |
| void | writeEntry (const QString &key, const T &value, WriteConfigFlags pFlags=Normal) |
| template<typename T > | |
| void | writeEntry (const char *key, const T &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const QVariant &value, WriteConfigFlags pFlags=Normal) |
| void | writeEntry (const char *key, const QByteArray &value, WriteConfigFlags pFlags=Normal) |
| void | writePathEntry (const char *pKey, const QString &path, WriteConfigFlags pFlags=Normal) |
| void | writePathEntry (const char *pKey, const QStringList &value, WriteConfigFlags pFlags=Normal) |
| void | writePathEntry (const QString &pKey, const QString &path, WriteConfigFlags pFlags=Normal) |
| void | writePathEntry (const QString &pKey, const QStringList &value, WriteConfigFlags pFlags=Normal) |
| void | writeXdgListEntry (const char *pKey, const QStringList &value, WriteConfigFlags pFlags=Normal) |
| void | writeXdgListEntry (const QString &pKey, const QStringList &value, WriteConfigFlags pFlags=Normal) |
Protected Member Functions | |
| void | deleteGroupImpl (const QByteArray &group, WriteConfigFlags flags) |
| KConfigGroup | groupImpl (const QByteArray &b) |
| const KConfigGroup | groupImpl (const QByteArray &b) const |
| bool | hasGroupImpl (const QByteArray &group) const |
| bool | isGroupImmutableImpl (const QByteArray &aGroup) const |
Detailed Description
A class for one specific group in a KConfig object.
If you want to access the top-level entries of a KConfig object, which are not associated with any group, use an empty group name.
A KConfigGroup will be read-only if it is constructed from a const config object or from another read-only group.
Definition at line 53 of file kconfiggroup.h.
Constructor & Destructor Documentation
| KConfigGroup::KConfigGroup | ( | ) |
| KConfigGroup::KConfigGroup | ( | KConfigBase * | master, |
| const QString & | group | ||
| ) |
Construct a config group corresponding to group in master.
This allows the creation of subgroups by passing another group as master.
group is the group name encoded in UTF-8.
Definition at line 558 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | KConfigBase * | master, |
| const char * | group | ||
| ) |
Overload for KConfigGroup(KConfigBase*,const QString&)
Definition at line 563 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | const KConfigBase * | master, |
| const QString & | group | ||
| ) |
Construct a read-only config group.
A read-only group will silently ignore any attempts to write to it.
This allows the creation of subgroups by passing an existing group as master.
Definition at line 568 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | const KConfigBase * | master, |
| const char * | group | ||
| ) |
Overload for KConfigGroup(const KConfigBase*,const QString&)
Definition at line 573 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | const KSharedConfigPtr & | master, |
| const QString & | group | ||
| ) |
Overload for KConfigGroup(const KConfigBase*,const QString&)
Definition at line 578 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | const KSharedConfigPtr & | master, |
| const char * | group | ||
| ) |
Overload for KConfigGroup(const KConfigBase*,const QString&)
Definition at line 583 of file kconfiggroup.cpp.
| KConfigGroup::KConfigGroup | ( | const KConfigGroup & | rhs | ) |
Creates a read-only copy of a read-only group.
Definition at line 594 of file kconfiggroup.cpp.
| KConfigGroup::~KConfigGroup | ( | ) |
Definition at line 599 of file kconfiggroup.cpp.
Member Function Documentation
| KConfigGroup::AccessMode KConfigGroup::accessMode | ( | ) | const [virtual] |
- Reimplemented from superclass.
Implements KConfigBase.
Definition at line 1283 of file kconfiggroup.cpp.
| void KConfigGroup::changeGroup | ( | const QString & | group | ) |
Changes the group of the object.
- Deprecated:
- Create another KConfigGroup from the parent of this group instead.
Definition at line 655 of file kconfiggroup.cpp.
| void KConfigGroup::changeGroup | ( | const char * | group | ) |
Overload for changeGroup(const QString&)
- Deprecated:
- Create another KConfigGroup from the parent of this group instead.
Definition at line 664 of file kconfiggroup.cpp.
| const KConfig * KConfigGroup::config | ( | ) | const |
Return the config object that this group belongs to.
Definition at line 708 of file kconfiggroup.cpp.
| KConfig * KConfigGroup::config | ( | ) |
Return the config object that this group belongs to.
Definition at line 701 of file kconfiggroup.cpp.
| void KConfigGroup::copyTo | ( | KConfigBase * | other, |
| WriteConfigFlags | pFlags = Normal |
||
| ) | const |
Copies the entries in this group to another configuration object.
- Note:
othercan be either another group or a different file.
- Parameters:
-
other the configuration object to copy this group's entries to pFlags the flags to use when writing the entries to the other configuration object
- Since:
- 4.1
Definition at line 1315 of file kconfiggroup.cpp.
| void KConfigGroup::deleteEntry | ( | const QString & | pKey, |
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Deletes the entry specified by pKey in the current group.
This also hides system wide defaults.
- Parameters:
-
pKey the key to delete pFlags the flags to use when deleting this entry
- See also:
- deleteGroup(), readEntry(), writeEntry()
Definition at line 1204 of file kconfiggroup.cpp.
| void KConfigGroup::deleteEntry | ( | const char * | pKey, |
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for deleteEntry(const QString&, WriteConfigFlags)
Definition at line 1196 of file kconfiggroup.cpp.
| void KConfigGroup::deleteGroup | ( | WriteConfigFlags | pFlags = Normal | ) |
Delete all entries in the entire group.
- Parameters:
-
pFlags flags passed to KConfig::deleteGroup
- See also:
- deleteEntry()
Definition at line 646 of file kconfiggroup.cpp.
| void KConfigGroup::deleteGroupImpl | ( | const QByteArray & | group, |
| WriteConfigFlags | flags | ||
| ) | [protected, virtual] |
Implements KConfigBase.
Definition at line 1297 of file kconfiggroup.cpp.
Returns a map (tree) of entries for all entries in this group.
Only the actual entry string is returned, none of the other internal data should be included.
- Returns:
- a map of entries in this group, indexed by key
Definition at line 694 of file kconfiggroup.cpp.
| bool KConfigGroup::exists | ( | ) | const |
Check whether the containing KConfig object acutally contains a group with this name.
Definition at line 679 of file kconfiggroup.cpp.
| KConfigGroup KConfigGroup::groupImpl | ( | const QByteArray & | b | ) | [protected, virtual] |
Implements KConfigBase.
Definition at line 604 of file kconfiggroup.cpp.
| const KConfigGroup KConfigGroup::groupImpl | ( | const QByteArray & | b | ) | const [protected, virtual] |
Implements KConfigBase.
Definition at line 616 of file kconfiggroup.cpp.
| QStringList KConfigGroup::groupList | ( | ) | const [virtual] |
- Reimplemented from superclass.
Implements KConfigBase.
Definition at line 1262 of file kconfiggroup.cpp.
Whether a default is specified for an entry in either the system wide configuration file or the global KDE config file.
If an application computes a default value at runtime for a certain entry, e.g. like:
QColor computedDefault = qApp->palette().color(QPalette::Active, QPalette::Text) QColor color = config->readEntry(key, computedDefault);
then it may wish to make the following check before writing back changes:
if ( (value == computedDefault) && !config->hasDefault(key) ) config->revertToDefault(key) else config->writeEntry(key, value)
This ensures that as long as the entry is not modified to differ from the computed default, the application will keep using the computed default and will follow changes the computed default makes over time.
- Parameters:
-
key the key of the entry to check
- Returns:
trueif the global or system settings files specify a default forkeyin this group,falseotherwise
Definition at line 1234 of file kconfiggroup.cpp.
| bool KConfigGroup::hasDefault | ( | const char * | key | ) | const |
Overload for hasDefault(const QString&) const.
Definition at line 1225 of file kconfiggroup.cpp.
| bool KConfigGroup::hasGroupImpl | ( | const QByteArray & | group | ) | const [protected, virtual] |
Implements KConfigBase.
Definition at line 1290 of file kconfiggroup.cpp.
Checks whether the key has an entry in this group.
Use this to determine if a key is not specified for the current group (hasKey() returns false).
If this returns false for a key, readEntry() (and its variants) will return the default value passed to them.
- Parameters:
-
key the key to search for
- Returns:
trueif the key is defined in this group by any of the configuration sources,falseotherwise
- See also:
- readEntry()
Definition at line 1250 of file kconfiggroup.cpp.
| bool KConfigGroup::hasKey | ( | const char * | key | ) | const |
Overload for hasKey(const QString&) const.
Definition at line 1239 of file kconfiggroup.cpp.
Checks if it is possible to change the given entry.
If isImmutable() returns true, then this method will return true for all inputs.
- Parameters:
-
key the key to check
- Returns:
falseif the key may be changed using this configuration group object,trueotherwise
Definition at line 723 of file kconfiggroup.cpp.
| bool KConfigGroup::isEntryImmutable | ( | const char * | key | ) | const |
Overload for isEntryImmutable(const QString&) const.
Definition at line 715 of file kconfiggroup.cpp.
| bool KConfigGroup::isGroupImmutableImpl | ( | const QByteArray & | aGroup | ) | const [protected, virtual] |
Implements KConfigBase.
Definition at line 1305 of file kconfiggroup.cpp.
| bool KConfigGroup::isImmutable | ( | ) | const [virtual] |
Whether this group may be changed.
- Returns:
falseif the group may be changed,trueotherwise
Implements KConfigBase.
Definition at line 1255 of file kconfiggroup.cpp.
| bool KConfigGroup::isValid | ( | ) | const |
Whether the group is valid.
A group is invalid if it was constructed without arguments.
You should not call any functions on an invalid group.
- Returns:
trueif the group is valid,falseif it is invalid.
Definition at line 536 of file kconfiggroup.cpp.
| QStringList KConfigGroup::keyList | ( | ) | const |
Returns a list of keys this group contains.
Definition at line 1269 of file kconfiggroup.cpp.
| void KConfigGroup::markAsClean | ( | ) | [virtual] |
- Reimplemented from superclass.
Implements KConfigBase.
Definition at line 1276 of file kconfiggroup.cpp.
| QString KConfigGroup::name | ( | ) | const |
The name of this group.
The root group is named "<default>".
Definition at line 672 of file kconfiggroup.cpp.
| KConfigGroup & KConfigGroup::operator= | ( | const KConfigGroup & | rhs | ) |
Definition at line 588 of file kconfiggroup.cpp.
| KConfigGroup KConfigGroup::parent | ( | ) | const |
Returns the group that this group belongs to.
- Returns:
- the parent group, or an invalid group if this is a top-level group
- Since:
- 4.1
Definition at line 629 of file kconfiggroup.cpp.
| QList<T> KConfigGroup::readEntry | ( | const char * | key, |
| const QList< T > & | aDefault | ||
| ) | const [inline] |
Overload for readEntry(const QString&, const QList<T>&)
Definition at line 327 of file kconfiggroup.h.
| T KConfigGroup::readEntry | ( | const char * | key, |
| const T & | aDefault | ||
| ) | const [inline] |
Overload for readEntry(const QString&, const T&) const.
Definition at line 252 of file kconfiggroup.h.
Reads the value of an entry specified by key in the current group.
- Parameters:
-
key the key to search for aDefault a default value returned if the key was not found
- Returns:
- the value for this key, or
aDefaultif the key was not found
- See also:
- writeEntry(), deleteEntry(), hasKey()
Definition at line 807 of file kconfiggroup.cpp.
Overload for readEntry(const QString&, const QVariant&)
Definition at line 792 of file kconfiggroup.cpp.
Reads the string value of an entry specified by key in the current group.
If you want to read a path, please use readPathEntry().
- Parameters:
-
key the key to search for aDefault a default value returned if the key was not found
- Returns:
- the value for this key, or
aDefaultif the key was not found
- See also:
- readPathEntry(), writeEntry(), deleteEntry(), hasKey()
Definition at line 771 of file kconfiggroup.cpp.
Overload for readEntry(const QString&, const QString&)
Definition at line 753 of file kconfiggroup.cpp.
Overload for readEntry(const QString&, const QString&)
Definition at line 748 of file kconfiggroup.cpp.
| QString KConfigGroup::readEntry | ( | const char * | key, |
| const char * | aDefault = 0 |
||
| ) | const |
Overload for readEntry(const QString&, const QString&)
Definition at line 743 of file kconfiggroup.cpp.
| QVariantList KConfigGroup::readEntry | ( | const QString & | key, |
| const QVariantList & | aDefault | ||
| ) | const |
Overload for readEntry(const QString&, const QStringList&)
- Warning:
- This function doesn't convert the items returned to any type. It's actually a list of QVariant::String's. If you want the items converted to a specific type use readEntry(const char*, const QList<T>&) const
Definition at line 827 of file kconfiggroup.cpp.
| QVariantList KConfigGroup::readEntry | ( | const char * | key, |
| const QVariantList & | aDefault | ||
| ) | const |
Overload for readEntry(const QString&, const QVariantList&)
Definition at line 812 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readEntry | ( | const QString & | key, |
| const QStringList & | aDefault | ||
| ) | const |
Reads a list of strings from the config object.
- Parameters:
-
key The key to search for aDefault The default value to use if the key does not exist
- Returns:
- The list, or
aDefaultifkeydoes not exist
- See also:
- readXdgListEntry(), writeEntry(), deleteEntry(), hasKey()
Definition at line 787 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readEntry | ( | const char * | key, |
| const QStringList & | aDefault | ||
| ) | const |
Overload for readEntry(const QString&, const QStringList&)
Definition at line 776 of file kconfiggroup.cpp.
| QList<T> KConfigGroup::readEntry | ( | const QString & | key, |
| const QList< T > & | aDefault | ||
| ) | const [inline] |
Reads a list of values from the config object.
- Parameters:
-
key the key to search for aDefault the default value to use if the key does not exist
- Returns:
- the list, or
aDefaultifkeydoes not exist
- See also:
- readXdgListEntry(), writeEntry(), deleteEntry(), hasKey()
Definition at line 323 of file kconfiggroup.h.
| T KConfigGroup::readEntry | ( | const QString & | key, |
| const T & | aDefault | ||
| ) | const [inline] |
Reads the value of an entry specified by pKey in the current group.
This template method makes it possible to write QString foo = readEntry("...", QString("default")); and the same with all other types supported by QVariant.
The return type of the method is simply the same as the type of the default value.
- Note:
- readEntry("...", Qt::white) will not compile because Qt::white is an enum. You must turn it into readEntry("...", QColor(Qt::white)).
- Only the following QVariant types are allowed : String, StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool, Double, LongLong, ULongLong, DateTime and Date.
- Parameters:
-
key The key to search for aDefault A default value returned if the key was not found
- Returns:
- The value for this key, or
aDefault.
- See also:
- writeEntry(), deleteEntry(), hasKey()
Definition at line 248 of file kconfiggroup.h.
| QString KConfigGroup::readEntryUntranslated | ( | const QString & | pKey, |
| const QString & | aDefault = QString() |
||
| ) | const |
Reads an untranslated string entry.
You should not normally need to use this.
- Parameters:
-
pKey the key to search for aDefault a default value returned if the key was not found
- Returns:
- the value for this key, or
aDefaultif the key does not exist
Definition at line 728 of file kconfiggroup.cpp.
| QString KConfigGroup::readEntryUntranslated | ( | const char * | key, |
| const QString & | aDefault = QString() |
||
| ) | const |
Overload for readEntryUntranslated(const QString&, const QString&)
Definition at line 733 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readPathEntry | ( | const char * | key, |
| const QStringList & | aDefault | ||
| ) | const |
Overload for readPathEntry(const QString&, const QStringList&)
Definition at line 896 of file kconfiggroup.cpp.
Overload for readPathEntry(const QString&, const QString&)
Definition at line 877 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readPathEntry | ( | const QString & | pKey, |
| const QStringList & | aDefault | ||
| ) | const |
Reads a list of paths.
Read the value of an entry specified by pKey in the current group and interpret it as a list of paths. This means, dollar expansion is activated for this value, so that e.g. $HOME gets expanded.
- Parameters:
-
pKey the key to search for aDefault a default value returned if the key was not found
- Returns:
- the list, or
aDefaultif the key does not exist
Definition at line 891 of file kconfiggroup.cpp.
Reads a path.
Read the value of an entry specified by pKey in the current group and interpret it as a path. This means, dollar expansion is activated for this value, so that e.g. $HOME gets expanded.
- Parameters:
-
pKey The key to search for. aDefault A default value returned if the key was not found.
- Returns:
- The value for this key. Can be QString() if
aDefaultis null.
Definition at line 872 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readXdgListEntry | ( | const QString & | pKey, |
| const QStringList & | aDefault = QStringList() |
||
| ) | const |
Reads a list of strings from the config object, following XDG desktop entry spec separator semantics.
- Parameters:
-
pKey the key to search for aDefault the default value to use if the key does not exist
- Returns:
- the list, or
aDefaultifpKeydoes not exist
Definition at line 832 of file kconfiggroup.cpp.
| QStringList KConfigGroup::readXdgListEntry | ( | const char * | pKey, |
| const QStringList & | aDefault = QStringList() |
||
| ) | const |
Overload for readXdgListEntry(const QString&, const QStringList&)
Definition at line 837 of file kconfiggroup.cpp.
| void KConfigGroup::reparent | ( | KConfigBase * | parent, |
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Changes the configuration object that this group belongs to.
- Note:
othercan be another group, the top-level KConfig object or a different KConfig object entirely.
If parent is already the parent of this group, this method will have no effect.
- Parameters:
-
parent the config object to place this group under pFlags the flags to use in determining which storage source to write the data to
- Since:
- 4.1
Definition at line 1330 of file kconfiggroup.cpp.
| void KConfigGroup::revertToDefault | ( | const QString & | key | ) |
Reverts an entry to the default settings.
Reverts the entry with key key in the current group in the application specific config file to either the system wide (default) value or the value specified in the global KDE config file.
To revert entries in the global KDE config file, the global KDE config file should be opened explicitly in a separate config object.
- Note:
- This is not the same as deleting the key, as instead the global setting will be copied to the configuration file that this object manipulates.
- Parameters:
-
key The key of the entry to revert.
Definition at line 1220 of file kconfiggroup.cpp.
| void KConfigGroup::revertToDefault | ( | const char * | key | ) |
Overload for revertToDefault(const QString&)
Definition at line 1209 of file kconfiggroup.cpp.
| void KConfigGroup::sync | ( | ) | [virtual] |
- Reimplemented from superclass.
Syncs the parent config.
Implements KConfigBase.
Definition at line 686 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const char * | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 928 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const char * | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 920 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 961 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 948 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const T & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) | [inline] |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 429 of file kconfiggroup.h.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QList< T > & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) | [inline] |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 448 of file kconfiggroup.h.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QList< T > & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) | [inline] |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 452 of file kconfiggroup.h.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QByteArray & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 933 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const T & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) | [inline] |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 425 of file kconfiggroup.h.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QVariant & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Writes a value to the configuration object.
- Parameters:
-
key the key to write to value the value to write pFlags the flags to use when writing this entry
- See also:
- readEntry(), writeXdgListEntry(), deleteEntry()
Definition at line 1129 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QString & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 915 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QVariant & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 983 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QByteArray & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 942 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QVariantList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 966 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const QString & | key, |
| const QVariantList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 1134 of file kconfiggroup.cpp.
| void KConfigGroup::writeEntry | ( | const char * | key, |
| const QString & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeEntry(const QString&, const QVariant&, WriteConfigFlags)
Definition at line 907 of file kconfiggroup.cpp.
| void KConfigGroup::writePathEntry | ( | const char * | pKey, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writePathEntry(const QString&, const QStringList&, WriteConfigFlags)
Definition at line 1184 of file kconfiggroup.cpp.
| void KConfigGroup::writePathEntry | ( | const QString & | pKey, |
| const QString & | path, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Writes a file path to the configuration.
If the path is located under $HOME, the user's home directory is replaced with $HOME in the persistent storage. The path should therefore be read back with readPathEntry()
- Parameters:
-
pKey the key to write to path the path to write pFlags the flags to use when writing this entry
- See also:
- writeEntry(), readPathEntry()
Definition at line 1166 of file kconfiggroup.cpp.
| void KConfigGroup::writePathEntry | ( | const char * | pKey, |
| const QString & | path, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writePathEntry(const QString&, const QString&, WriteConfigFlags)
Definition at line 1171 of file kconfiggroup.cpp.
| void KConfigGroup::writePathEntry | ( | const QString & | pKey, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Writes a list of paths to the configuration.
If any of the paths are located under $HOME, the user's home directory is replaced with $HOME in the persistent storage. The paths should therefore be read back with readPathEntry()
- Parameters:
-
pKey the key to write to value the list to write pFlags the flags to use when writing this entry
- See also:
- writeEntry(), readPathEntry()
Definition at line 1179 of file kconfiggroup.cpp.
| void KConfigGroup::writeXdgListEntry | ( | const char * | pKey, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Overload for writeXdgListEntry(const QString&, const QStringList&, WriteConfigFlags)
Definition at line 1144 of file kconfiggroup.cpp.
| void KConfigGroup::writeXdgListEntry | ( | const QString & | pKey, |
| const QStringList & | value, | ||
| WriteConfigFlags | pFlags = Normal |
||
| ) |
Writes a list of strings to the config object, following XDG desktop entry spec separator semantics.
- Parameters:
-
pKey the key to write to value the list to write pFlags the flags to use when writing this entry
- See also:
- writeEntry(), readXdgListEntry()
Definition at line 1139 of file kconfiggroup.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference