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>
- Version:
- Id
- kconfigbackend.h,v 1.34 2004/05/07 12:47:15 waba Exp
Definition at line 192 of file kconfigbackend.h.
Constructor & Destructor Documentation
|
Constructs an ini-style configuration back end.
Definition at line 211 of file kconfigbackend.h. |
|
Destructs the configuration backend.
Definition at line 218 of file kconfigbackend.h. |
Member Function Documentation
|
Parses all INI-style configuration files for a config object.
Implements KConfigBackEnd. Definition at line 295 of file kconfigbackend.cpp. References KURL::directory(), KGlobal::dirs(), KConfigBase::isReadOnly(), KStandardDirs::makeDir(), parseSingleConfigFile(), KConfigBackEnd::setLocaleString(), and KURL::setPath(). |
|
Writes configuration data to file(s).
Implements KConfigBackEnd. Definition at line 709 of file kconfigbackend.cpp. References KURL::directory(), KConfigBase::isDirty(), KConfigBackEnd::lockFile(), KLockFile::LockForce, KStandardDirs::makeDir(), KURL::setPath(), and writeConfigFile(). |
|
Parses one configuration file.
Definition at line 419 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 getEntryMap(), and parseConfigFiles(). |
|
Writes configuration file back.
Definition at line 953 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 899 of file kconfigbackend.cpp. References KEntry::bDirty, KEntry::bGlobal, KConfigBase::internalEntryMap(), and parseSingleConfigFile(). Referenced by writeConfigFile(). |
|
Write the entries in aTempMap to the file stream.
Definition at line 1056 of file kconfigbackend.cpp. Referenced by writeConfigFile(). |
The documentation for this class was generated from the following files: