KConfigINIBackEnd Class Reference
Class for KDE INI-style configuration file loading/saving. More...
#include <kconfigbackend.h>
Inheritance diagram for KConfigINIBackEnd:


Public Member Functions | |
| KConfigINIBackEnd (KConfigBase *_config, const QString &_fileName, const char *_resType, bool _useKDEGlobals=true) | |
| virtual | ~KConfigINIBackEnd () |
| bool | parseConfigFiles () |
| virtual void | sync (bool bMerge=true) |
Protected Member Functions | |
| void | parseSingleConfigFile (QFile &rFile, KEntryMap *pWriteBackMap=0L, bool bGlobal=false, bool bDefault=false) |
| bool | writeConfigFile (QString filename, bool bGlobal=false, bool bMerge=true) |
| bool | getEntryMap (KEntryMap &map, bool bGlobal, QFile *mergeFile) |
| void | writeEntries (FILE *pStream, const KEntryMap &aTempMap) |
| virtual void | virtual_hook (int id, void *data) |
Detailed Description
Class for KDE INI-style configuration file loading/saving.
- Author:
- Preston Brown <pbrown@kde.org>, Matthias Kalle Dalheimer <kalle@kde.org>
Definition at line 190 of file kconfigbackend.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Constructs an ini-style configuration back end.
Definition at line 209 of file kconfigbackend.h. |
|
|
Destructs the configuration backend.
Definition at line 216 of file kconfigbackend.h. |
Member Function Documentation
|
|
Parses all INI-style configuration files for a config object.
Implements KConfigBackEnd. Definition at line 296 of file kconfigbackend.cpp. References KURL::directory(), KGlobal::dirs(), KStandardDirs::findAllResources(), KConfigBase::isReadOnly(), KStandardDirs::makeDir(), parseSingleConfigFile(), KConfigBackEnd::setLocaleString(), and KURL::setPath(). |
|
|
Writes configuration data to file(s).
Implements KConfigBackEnd. Definition at line 720 of file kconfigbackend.cpp. References KURL::directory(), KConfigBase::isDirty(), KConfigBackEnd::lockFile(), KStandardDirs::makeDir(), KURL::setPath(), and writeConfigFile(). |
|
||||||||||||||||||||
|
Parses one configuration file.
Definition at line 430 of file kconfigbackend.cpp. References KEntryKey::bDefault, KEntry::bDeleted, KEntry::bExpand, KEntry::bGlobal, KEntry::bImmutable, KEntryKey::bLocal, KEntry::bNLS, KConfigBase::lookupData(), KEntry::mValue, and KConfigBase::putData(). Referenced by parseConfigFiles(). |
|
||||||||||||||||
|
Writes configuration file back.
Definition at line 964 of file kconfigbackend.cpp. References KSaveFile::abort(), KSaveFile::close(), KSaveFile::fstream(), getEntryMap(), KSaveFile::handle(), KConfigBase::isReadOnly(), KSaveFile::status(), and writeEntries(). Referenced by sync(). |
|
||||||||||||||||
|
Get the entry map.
Definition at line 910 of file kconfigbackend.cpp. References KEntry::bDirty, and KEntry::bGlobal. Referenced by writeConfigFile(). |
|
||||||||||||
|
Write the entries in aTempMap to the file stream.
Definition at line 1067 of file kconfigbackend.cpp. Referenced by writeConfigFile(). |
The documentation for this class was generated from the following files:
