class KConfig |
|
|
|
|
|
|
configuration object state |
|
Sets the merge stack to the list of files. The stack is last in first out with
the top of the stack being the most specific config file.
@note: Most specific config file is relative to this list, the overall most specific file of this KConfig object is still the file it was created with, no matter which file is passed last into this function. This includes that writing always goes to the file which was used to create the KConfig object. files - A list of extra config files containing the full paths of the local config files to set. |
|
Checks whether the config file contains the update id
as contained in updateFile. If not, it runs kconf_update
to update the config file.
If you install config update files with critical fixes you may wish to use this method to verify that a critical update has indeed been performed to catch the case where a user restores an old config file from backup that has not been updated yet. id - the update to check updateFile - the file containing the update |
|
|
Copies all entries from this config object to a new config
object that will save itself to file.
Actual saving to file happens when the returned object is destructed or when sync() is called upon it. file - the new config object will save itself to. config - optional config object to reuse |
|
|
Returns a map (tree) of entries in a particular group. Only the actual entry as a string
is returned, none of the other internal data is included.
aGroup - The group to get keys from - If aGroup is the empty string "", the entries from the default group are returned. - If aGroup is null, the entries from the current group are returned. Returns A map of entries in the group specified, indexed by key. The returned map may be empty if the group is empty, or not found. See also QMap |
|
Returns whether all entries are being written to kdeglobals.
Returns true if all entries are being written to kdeglobals
See also setForceGlobal Deprecated |
|
|
|
|
|
|
|
immutability |
|
Returns the current locale. |
|
|
Returns the filename passed to the constructor. |
|
|
Clears all internal data structures and then reread configuration information from persistent storage. |
|
Forces all following write-operations to be performed on kdeglobals,
independent of the Global flag in writeEntry().
force - true to force writing to kdeglobals See also forceGlobal |
|
Sets the locale to aLocale. The global locale is used as default. If set to the empty string, no locale will be matched. This effectively disables Native Language Support. Returns true if locale was changed and configuration was reparsed. |
|
When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference. This is off by default. |
|
|
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility. Unused in this class. |
IncludeGlobals | - 0x01 | - | ||
CascadeConfig | - 0x02 | - | ||
SimpleConfig | - 0x00 | - | ||
NoCascade | - IncludeGlobals | - | ||
NoGlobals | - CascadeConfig | - | ||
FullConfig | - IncludeGlobals|CascadeConfig | - |