kconfig.cpp
155 tmpMap.insert(TQString::fromUtf8(aIt.key().mKey), TQString::fromUtf8((*aIt).mValue.data(), (*aIt).mValue.length()));
334 KSharedConfig::Ptr KSharedConfig::openConfig(const TQString& fileName, bool readOnly, bool useKDEGlobals )
static int kdeinitExecWait(const TQString &name, const TQStringList &args, TQString *error, int *pid, const TQCString &startup_id)
Starts a program via kdeinit and wait for it to finish.
Definition: kapplication.cpp:3165
Abstract base class for KDE configuration file loading/saving.
Definition: kconfigbackend.h:49
KLockFile::Ptr lockFile(bool bGlobal=false)
Returns a lock file object for the configuration file.
Definition: kconfigbackend.cpp:273
void changeFileName(const TQString &_fileName, const char *_resType, bool _useKDEGlobals)
Changes the filenames associated with this back end.
Definition: kconfigbackend.cpp:243
void setFileWriteMode(int mode)
Set the file mode for newly created files.
Definition: kconfigbackend.cpp:315
virtual void setReadOnly(bool _ro)
Sets the config object's read-only status.
Definition: kconfigbase.h:1732
int readListEntry(const TQString &pKey, TQStrList &list, char sep=',') const
Reads a list of strings.
Definition: kconfigbase.cpp:490
virtual void sync()
Flushes all changes that currently reside only in memory back to disk / permanent storage.
Definition: kconfigbase.cpp:1776
virtual void rollback(bool bDeep=true)
Mark the config object as "clean," i.e.
Definition: kconfigbase.cpp:1793
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a key/value pair.
Definition: kconfigbase.cpp:1067
TQString group() const
Returns the name of the group in which we are searching for keys and from which we are retrieving ent...
Definition: kconfigbase.cpp:101
void setGroup(const TQString &group)
Specifies the group in which keys will be read and written.
Definition: kconfigbase.cpp:80
KConfigBackEnd * backEnd
A back end for loading/saving to disk in a particular format.
Definition: kconfigbase.h:1976
bool isReadOnly() const
Returns the read-only status of the config object.
Definition: kconfigbase.h:1739
bool bDirty
Indicates whether there are any dirty entries in the config object that need to be written back to di...
Definition: kconfigbase.h:2002
virtual void parseConfigFiles()
Parses all configuration files for a configuration object.
Definition: kconfigbase.cpp:1764
Class for KDE INI-style configuration file loading/saving.
Definition: kconfigbackend.h:192
void setFileWriteMode(int mode)
Set the file mode for newly created files.
Definition: kconfig.cpp:275
virtual void rollback(bool bDeep=true)
Clears all entries out of the dirtyEntryMap, so the values will not be written to disk on a later cal...
Definition: kconfig.cpp:94
KEntryMap aEntryMap
Contains all key,value entries, as well as some "special" keys which indicate the start of a group of...
Definition: kconfig.h:243
KLockFile::Ptr lockFile(bool bGlobal=false)
Returns a lock file object for the configuration file or 0 if the backend does not support locking.
Definition: kconfig.cpp:280
virtual void reparseConfiguration()
Clears all internal data structures and then reread configuration information from disk.
Definition: kconfig.cpp:161
virtual TQStringList groupList() const
Returns a list of groups that are known.
Definition: kconfig.cpp:107
void checkUpdate(const TQString &id, const TQString &updateFile)
Checks whether the config file contains the update id as contained in updateFile.
Definition: kconfig.cpp:287
virtual KEntry lookupData(const KEntryKey &_key) const
Looks up an entry in the config object's internal structure.
Definition: kconfig.cpp:238
KConfig(const TQString &fileName=TQString::null, bool bReadOnly=false, bool bUseKDEGlobals=true, const char *resType="config")
Constructs a KConfig object.
Definition: kconfig.cpp:44
virtual KEntryMap internalEntryMap() const
Returns a map (tree) of the entries in the tree.
Definition: kconfig.h:212
virtual void putData(const KEntryKey &_key, const KEntry &_data, bool _checkGroup=true)
Inserts a (key, value) pair into the internal storage mechanism of the configuration object.
Definition: kconfig.cpp:202
virtual bool internalHasGroup(const TQCString &group) const
Returns true if the specified group is known.
Definition: kconfig.cpp:254
virtual TQMap< TQString, TQString > entryMap(const TQString &pGroup) const
Returns a map (tree) of entries for all entries in a particular group.
Definition: kconfig.cpp:141
KConfig * copyTo(const TQString &file, KConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file.
Definition: kconfig.cpp:303
static KStandardDirs * dirs()
Returns the application standard dirs object.
Definition: kglobal.cpp:54
Little helper class to clean up static objects that are held as pointer.
Definition: kstaticdeleter.h:74
key structure holding both the actual key and the the group to which it belongs.
Definition: kconfigdata.h:70
TQMap< KEntryKey, KEntry > KEntryMap
type specifying a map of entries (key,value pairs).
Definition: kconfigdata.h:128