#include <kconfigbackend.h>
Inheritance diagram for config::KConfigBackEnd:
Public Methods | |
KConfigBackEnd (KConfigBase *_config, const string &_fileName, const char *_resType, bool _useKDEGlobals) | |
Constructs a configuration back end. More... | |
virtual | ~KConfigBackEnd () |
Destructs the configuration backend. | |
virtual bool | parseConfigFiles ()=0 |
Parses all configuration files for a configuration object. More... | |
virtual void | sync (bool bMerge=true)=0 |
Writes configuration data to file(s). More... | |
void | changeFileName (const string &_fileName, const char *_resType, bool _useKDEGlobals) |
Changes the filenames associated with this back end. More... | |
virtual KConfigBase::ConfigState | getConfigState () const |
Returns the state of the app-config object. More... | |
string | fileName () const |
const char * | resource () const |
void | setLocaleString (const string &_localeString) |
void | setFileWriteMode (int mode) |
Set the file mode for newly created files. | |
string | filename () const |
Protected Methods | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
KConfigBase * | pConfig |
string | mfileName |
string | resType |
bool | useKDEGlobals: 1 |
bool | bFileImmutable: 1 |
string | localeString |
string | mLocalFileName |
string | mGlobalFileName |
KConfigBase::ConfigState | mConfigState |
int | mFileMode |
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.
|
Constructs a configuration back end.
|
|
Changes the filenames associated with this back end. You should probably reparse your config info after doing this.
|
|
|
|
|
|
Returns the state of the app-config object.
|
|
Parses all configuration files for a configuration object. This method must be reimplemented by the derived classes.
Implemented in config::KConfigINIBackEnd. |
|
|
|
Writes configuration data to file(s). This method must be reimplemented by the derived classes.
Implemented in config::KConfigINIBackEnd. |