22#ifndef _TDECONFIGBACKEND_H
23#define _TDECONFIGBACKEND_H
25#include "tdeconfigdata.h"
26#include <tdeconfigbase.h>
29#include "tdelibs_export.h"
32class TDEConfigBackEndPrivate;
69 const char * _resType,
bool _useKDEGlobals);
93 virtual void sync(
bool bMerge =
true) = 0;
105 void changeFileName(
const TQString &_fileName,
const char * _resType,
106 bool _useKDEGlobals);
114 {
return mConfigState; }
133 void setLocaleString(
const TQCString &_localeString) { localeString = _localeString; }
139 void setFileWriteMode(
int mode);
147 bool checkConfigFilesWritable(
bool warnUser);
162 KDE_DEPRECATED TQString
filename()
const {
return mfileName; }
169 bool useKDEGlobals : 1;
170 bool bFileImmutable : 1;
171 TQCString localeString;
172 TQString mLocalFileName;
173 TQString mGlobalFileName;
178 virtual void virtual_hook(
int id,
void* data );
180 class TDEConfigBackEndPrivate;
181 TDEConfigBackEndPrivate *d;
211 const char * _resType,
bool _useKDEGlobals =
true)
224 bool parseConfigFiles();
233 virtual void sync(
bool bMerge =
true);
251 void parseSingleConfigFile(TQFile& rFile, KEntryMap *pWriteBackMap = 0L,
252 bool bGlobal =
false,
bool bDefault =
false);
257 void translateKey(
TDELocale& locale, TQCString currentGroup, TQCString key);
273 bool writeConfigFile(TQString filename,
bool bGlobal =
false,
bool bMerge =
true);
287 bool getEntryMap(KEntryMap &map,
bool bGlobal, TQFile *mergeFile);
290 void writeEntries(FILE *pStream,
const KEntryMap &aTempMap);
293 virtual void virtual_hook(
int id,
void* data );
295 class TDEConfigINIBackEndPrivate;
296 TDEConfigINIBackEndPrivate *not_d;
Abstract base class for KDE configuration file loading/saving.
const char * resource() const
Returns the resource type as passed to the constructor.
virtual bool parseConfigFiles()=0
Parses all configuration files for a configuration object.
void setLocaleString(const TQCString &_localeString)
Set the locale string that defines the current language.
KDE_DEPRECATED TQString filename() const
TQString fileName() const
Returns the filename as passed to the constructor.
virtual void sync(bool bMerge=true)=0
Writes configuration data to file(s).
virtual TDEConfigBase::ConfigState getConfigState() const
Returns the state of the app-config object.
KDE Configuration Management abstract base class.
ConfigState
Possible return values for getConfigState().
Class for KDE INI-style configuration file loading/saving.
TDEConfigINIBackEnd(TDEConfigBase *_config, const TQString &_fileName, const char *_resType, bool _useKDEGlobals=true)
Constructs an ini-style configuration back end.
virtual ~TDEConfigINIBackEnd()
Destructs the configuration backend.
Access KDE Configuration entries.
TDELocale provides support for country specific stuff like the national language.
TDEConfig variant using shared memory.