KConfigBackEnd Class Reference
Abstract base class for KDE configuration file loading/saving. KDE Configuration file loading/saving abstract base class. More...
#include <kconfigbackend.h>
Inheritance diagram for KConfigBackEnd:

Public Methods | |
KConfigBackEnd (KConfigBase *_config, const QString &_fileName, const char *_resType, bool _useKDEGlobals) | |
Constructs a configuration back end. | |
virtual | ~KConfigBackEnd () |
Destructs the configuration backend. | |
virtual bool | parseConfigFiles ()=0 |
Parses all configuration files for a configuration object. | |
virtual void | sync (bool bMerge=true)=0 |
Writes configuration data to file(s). | |
void | changeFileName (const QString &_fileName, const char *_resType, bool _useKDEGlobals) |
Changes the filenames associated with this back end. | |
virtual KConfigBase::ConfigState | getConfigState () const |
Returns the state of the app-config object. | |
QString | fileName () const |
Returns the filename as passed to the constructor. | |
const char * | resource () const |
Returns the resource type as passed to the constructor. | |
void | setLocaleString (const QCString &_localeString) |
Set the locale string that defines the current language. | |
void | setFileWriteMode (int mode) |
Set the file mode for newly created files. | |
QString | filename () const |
Detailed Description
Abstract base class for KDE configuration file loading/saving. KDE Configuration file loading/saving abstract base class.This class forms the base for all classes that implement some manner of loading/saving to configuration files. It is an abstract base class, meaning that you cannot directly instantiate objects of this class. As of right now, the only back end available is one to read/write to INI-style files, but in the future, other formats may be available, such as XML or a database.
- Author:
- Preston Brown <pbrown@kde.org>, Matthias Kalle Dalheimer <kalle@kde.org>
- Version:
- Id:
- kconfigbackend.h,v 1.22 2002/09/17 21:24:43 tjansen Exp
Definition at line 46 of file kconfigbackend.h.
Constructor & Destructor Documentation
|
Constructs a configuration back end.
Definition at line 184 of file kconfigbackend.cpp. References changeFileName(). |
|
Destructs the configuration backend.
Definition at line 70 of file kconfigbackend.h. |
Member Function Documentation
|
Parses all configuration files for a configuration object. This method must be reimplemented by the derived classes.
Implemented in KConfigINIBackEnd. Referenced by KConfigBase::parseConfigFiles(). |
|
Writes configuration data to file(s). This method must be reimplemented by the derived classes.
Implemented in KConfigINIBackEnd. Referenced by KSimpleConfig::sync(), and KConfigBase::sync(). |
|
Changes the filenames associated with this back end. You should probably reparse your config info after doing this.
Definition at line 163 of file kconfigbackend.cpp. References KGlobal::dirs(), QString::fromLatin1(), QString::isEmpty(), and KStandardDirs::saveLocation(). Referenced by KConfigBackEnd(), KDesktopFile::KDesktopFile(), and KSimpleConfig::KSimpleConfig(). |
|
Returns the state of the app-config object.
Definition at line 109 of file kconfigbackend.h. References KConfigBase::ConfigState. Referenced by KConfigBase::getConfigState(), and KConfigBase::parseConfigFiles(). |
|
Returns the filename as passed to the constructor.
Definition at line 116 of file kconfigbackend.h. Referenced by KDesktopFile::fileName(). |
|
Returns the resource type as passed to the constructor.
Definition at line 122 of file kconfigbackend.h. Referenced by KDesktopFile::resource(). |
|
Set the locale string that defines the current language.
Definition at line 129 of file kconfigbackend.h. Referenced by KConfigINIBackEnd::parseConfigFiles(), and KConfigBase::setLocale(). |
|
Set the file mode for newly created files.
Definition at line 193 of file kconfigbackend.cpp. Referenced by KConfig::setFileWriteMode(). |
|
Definition at line 143 of file kconfigbackend.h. |
The documentation for this class was generated from the following files: