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 QFile::close(), QFile::decodeName(), KURL::directory(), KGlobal::dirs(), KStandardDirs::findAllResources(), QString::fromLatin1(), QCString::isEmpty(), QString::isEmpty(), KConfigBase::isReadOnly(), QFileInfo::lastModified(), KStandardDirs::makeDir(), QFile::open(), parseSingleConfigFile(), KConfigBackEnd::setLocaleString(), KURL::setPath(), QFileInfo::size(), and QString::utf8(). |
|
Writes configuration data to file(s).
Implements KConfigBackEnd. Definition at line 716 of file kconfigbackend.cpp. References KURL::directory(), KConfigBase::isDirty(), QString::isEmpty(), QFileInfo::lastModified(), KConfigBackEnd::lockFile(), KStandardDirs::makeDir(), KURL::setPath(), QFileInfo::size(), and writeConfigFile(). |
|
Parses one configuration file.
Definition at line 426 of file kconfigbackend.cpp. References KEntryKey::bDefault, KEntry::bDeleted, KEntry::bExpand, KEntry::bGlobal, KEntry::bImmutable, KEntryKey::bLocal, KEntry::bNLS, QCString::length(), KConfigBase::lookupData(), KEntry::mValue, and KConfigBase::putData(). Referenced by parseConfigFiles(). |
|
Writes configuration file back.
Definition at line 960 of file kconfigbackend.cpp. References KSaveFile::abort(), KSaveFile::close(), QFile::encodeName(), KSaveFile::fstream(), getEntryMap(), KSaveFile::handle(), KConfigBase::isReadOnly(), KSaveFile::status(), and writeEntries(). Referenced by sync(). |
|
Get the entry map.
Definition at line 906 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 1063 of file kconfigbackend.cpp. Referenced by writeConfigFile(). |
The documentation for this class was generated from the following files: