#include <kconfig.h>
Inheritance diagram for KConfig:

Public Methods | |
| KConfig (const QString &fileName=QString::null, bool bReadOnly=false, bool bUseKDEGlobals=true, const char *resType="config") | |
| virtual | ~KConfig () |
| virtual void | rollback (bool bDeep=true) |
| virtual QStringList | groupList () const |
| virtual QMap< QString, QString > | entryMap (const QString &pGroup) const |
| virtual void | reparseConfiguration () |
| void | setFileWriteMode (int mode) |
| void | setForceGlobal (bool force) |
| bool | forceGlobal () const |
| void | checkUpdate (const QString &id, const QString &updateFile) |
Protected Methods | |
| virtual bool | internalHasGroup (const QCString &group) const |
| virtual KEntryMap | internalEntryMap (const QString &pGroup) const |
| virtual KEntryMap | internalEntryMap () const |
| virtual void | putData (const KEntryKey &_key, const KEntry &_data, bool _checkGroup=true) |
| virtual KEntry | lookupData (const KEntryKey &_key) const |
| virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
| KEntryMap | aEntryMap |
Access KDE Configuration entries.
This class implements KDE's default configuration system.
Definition at line 43 of file kconfig.h.
|
||||||||||||||||||||
|
Constructs a KConfig object.
|
|
|
Destructs the KConfig object. Writes back any dirty configuration entries, and destroys dynamically created objects. |
|
||||||||||||
|
Checks whether the config file contains the update If you install config update files with critical fixes you may wish to use this method to verify that a critical update has indeed been performed to catch the case where a user restores an old config file from backup that has not been updated yet.
|
|
|
Returns a map (tree) of entries for all entries in a particular group. Only the actual entry string is returned, none of the other internal data should be included.
Implements KConfigBase. |
|
|
Returns true if all entries are being written into kdeglobals.
|
|
|
Returns a list of groups that are known.
Implements KConfigBase. |
|
|
Returns a copy of the internal map used to hold all entries. Do not use this function, the implementation / return type are subject to change.
Implements KConfigBase. Definition at line 183 of file kconfig.h. References aEntryMap. |
|
|
Returns a map (tree) of the entries in the specified group. Do not use this function, the implementation / return type are subject to change.
Implements KConfigBase. |
|
|
Returns true if the specified group is known.
Implements KConfigBase. |
|
|
Looks up an entry in the config object's internal structure.
Implements KConfigBase. |
|
||||||||||||||||
|
Inserts a (key, value) pair into the internal storage mechanism of the configuration object.
Implements KConfigBase. |
|
|
Clears all internal data structures and then reread configuration information from disk. Implements KConfigBase. |
|
|
Clears all entries out of the
Reimplemented from KConfigBase. |
|
|
Set the file mode for newly created files.
|
|
|
Forces all following write-operations being performed on kdeglobals, independent of the bGlobal flag in writeEntry().
|
|
|
Contains all key,value entries, as well as some "special" keys which indicate the start of a group of entries. These special keys will have the .key portion of their KEntryKey set to QString::null. Definition at line 214 of file kconfig.h. Referenced by internalEntryMap(). |
1.2.18