#include <ksimpleconfig.h>
Inheritance diagram for config::KSimpleConfig:
Public Methods | |
KSimpleConfig (const string &fileName, bool bReadOnly=false) | |
Construct a KSimpleConfig object and make it either read-write or read-only. More... | |
virtual | ~KSimpleConfig () |
Destructor. More... | |
virtual void | sync () |
Flushes all changes that currently reside only in memory back to disk / permanent storage. More... | |
Protected Methods | |
virtual void | virtual_hook (int id, void *data) |
This is a trivial extension of KConfig for applications that need only one configuration file and no default system. A difference with KConfig is that when the data in memory is written back it is not merged with what is on disk. Whatever is in memory simply replaces what is on disk entirely.
|
Construct a KSimpleConfig object and make it either read-write or read-only.
|
|
Destructor. Writes back any dirty configuration entries. |
|
Flushes all changes that currently reside only in memory back to disk / permanent storage. Dirty configuration entries are written to the most specific file available.
Asks the back end to flush out all pending writes, and then calls rollback(). No changes are made if the object has You should call this from your destructor in derivative classes.
Reimplemented from config::KConfigBase. |