class KSimpleConfig

KDE Configuration Management class with deletion ability. More...

Definition#include <ksimpleconfig.h>
InheritsKConfig
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

KDE Configuration entries

This is a trivial extension of KConfig for applications that need only one configuration file and no default system. It also adds the ability to delete keys and/or groups. Lastly, when the data in memory is written back out by sync(), it is not merged with what is on disk. Whatever is in memory simply replaces what is on disk entirely.

See also: KConfigBase, KConfig

 KSimpleConfig ( const QString &pFileName, bool bReadOnly = false)

Construct a KSimpleConfig object and make it either read-write or read-only.

Parameters:

KSimpleConfig ()

[virtual]

Destructor.

Writes back any dirty configuration entries.

QString  deleteEntry ( const QString& pKey, bool bLocalized )

Delete a configuration entry.

Parameters:

Returns: The old value of that key.

QString  deleteEntry ( const char *pKey, bool bLocalized )

bool  deleteGroup ( const QString& pGroup, bool bDeep = true )

Delete a configuration entry group

If the group is not empty and bDeep is false, nothing gets deleted and false is returned. If this group is the current group and it is deleted, the current group is undefined and should be set with setGroup() before the next operation on the configuration object.

Parameters:

Returns: If the group does not exist or is not empty and bDeep is false, deleteGroup returns false.

void  sync ()

[virtual]

Reimplemented from KConfigBase.