class KConfigBackEnd

KDE Configuration file loading/saving abstract base class. More...

Contains pure virtuals
Definition#include <kconfigbackend.h>
Inherited byKConfigDBMBackEnd, KConfigINIBackEnd
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

Abstract base class for KDE configuration file loading/saving.

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.

 KConfigBackEnd (KConfigBase *_config, const QString &_fileName, const char * _resType, bool _useKDEGlobals)

Construct a configuration back end.

Parameters:

KConfigBackEnd ()

[virtual]

Destructor.

bool  parseConfigFiles ()

[pure virtual]

Parse all configuration files for a configuration object. This method must be reimplemented by the derived classes.

Returns: Whether or not parsing was successful.

void  sync (bool bMerge = true)

[pure virtual]

Write configuration data to file(s). This method must be reimplemented by the derived classes.

Parameters:

void  changeFileName (const QString &_fileName, const char * _resType, bool _useKDEGlobals)

change the filenames associated with this back end. You should probably reparse your config info after doing this.

Parameters:

KConfigBase::ConfigState  getConfigState ()

[const virtual]

Retrieve 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)

KConfigBase * pConfig

[protected]

QString fileName

[protected]

QCString resType

[protected]

bool useKDEGlobals

[protected]

QCString localeString

[protected]

KConfigBackEndPrivate * d

[protected]