class KConfigINIBackEnd

Class for KDE INI-style configuration file loading/saving. More...

Definition#include <kconfigbackend.h>
InheritsKConfigBackEnd [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

Class for KDE INI-style configuration file loading/saving.

 KConfigINIBackEnd (KConfigBase *_config, const QString &_fileName, const char * _resType, bool _useKDEGlobals = true)

KConfigINIBackEnd

Constructs an ini-style configuration back end.

Parameters:
_configSpecifies the configuration object which values will be passed to as they are read, or from where values to be written to will be obtained from.
_fileNameThe name of the file in which config data is stored. All registered configuration directories will be looked in in order of decreasing relevance.
_resTypethe resource type of the fileName specified, _if_ it is not an absolute path (otherwise this parameter is ignored).
_useKDEGlobalsIf true, the user's system-wide kdeglobals file will be imported into the config object. If false, only the filename specified will be dealt with.

 ~KConfigINIBackEnd ()

~KConfigINIBackEnd

[virtual]

Destructs the configuration backend.

bool  parseConfigFiles ()

parseConfigFiles

Parses all INI-style configuration files for a config object.

Returns: Whether or not parsing was successful.

Reimplemented from KConfigBackEnd.

void  sync (bool bMerge = true)

sync

[virtual]

Writes configuration data to file(s).

Reimplemented from KConfigBackEnd.

void  parseSingleConfigFile (QFile& rFile, KEntryMap *pWriteBackMap = 0L, bool bGlobal = false, bool bDefault = false)

parseSingleConfigFile

[protected]

Parses one configuration file.

Parameters:
rFileThe configuration file to parse
pWriteBackMapIf specified, points to a KEntryMap where the data read from the file should be stored, instead of inserting them directly into the configuration object. Use this area as a "scratchpad" when you need to know what is on disk but don't want to effect the configuration object.
bGlobalSpecifies whether entries should be marked as belonging to the global KDE configuration file rather than the application-specific KDE configuration file(s).
bDefaultSpecifies whether entries should be marked as being default values.

bool  writeConfigFile (QString filename, bool bGlobal = false, bool bMerge = true)

writeConfigFile

[protected]

Writes configuration file back.

Parameters:
filenameThe name of the file to write.
bGlobalSpecifies whether to write only entries which are marked as belonging to the global KDE config file. If this is false, it skips those entries.
bMergeSpecifies whether the old config file already on disk should be merged in with the data in memory. If true, data is read off the disk and merged. If false, the on-disk file is removed and only in-memory data is written out.

Returns: Whether some entries are left to be written to other files.

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]

Reimplemented from KConfigBackEnd.