org.kde.koala
public class KConfigBase extends QObject
See Also: KGlobal KConfig KSimpleConfig KSharedConfig
UNKNOWN: KDE Configuration Management abstract base class.
Field Summary | |
---|---|
static int | NoAccess
Possible return values for getConfigState(). |
static int | ReadOnly |
static int | ReadWrite |
Constructor Summary | |
---|---|
protected | KConfigBase(Class dummy) |
Method Summary | |
---|---|
boolean | checkConfigFilesWritable(boolean warnUser)
Check whether the config files are writable. |
String | className() |
void | deleteEntry(String pKey, boolean bNLS, boolean bGlobal)
Deletes the entry specified by pKey in the current group. |
void | deleteEntry(String pKey, boolean bNLS) |
void | deleteEntry(String pKey) |
boolean | deleteGroup(String group, boolean bDeep, boolean bGlobal)
Deletes a configuration entry group
If the group is not empty and bDeep is false, nothing gets
deleted and false is returned.
|
boolean | deleteGroup(String group, boolean bDeep) |
boolean | deleteGroup(String group) |
boolean | entryIsImmutable(String key)
Checks whether it is possible to change the given entry. |
int | getConfigState()
Returns the state of the app-config object.
|
String | group()
Returns the name of the group in which we are
searching for keys and from which we are retrieving entries. |
boolean | groupIsImmutable(String group)
Checks whether it is possible to change the given group. |
ArrayList | groupList()
Returns a list of groups that are known about. |
boolean | hasDefault(String key)
Returns whether a default is specified for an entry in either the
system wide configuration file or the global KDE config file.
|
boolean | hasGroup(String group)
Returns true if the specified group is known about. |
boolean | hasKey(String key)
Checks whether the key has an entry in the currently active group.
|
boolean | isDirty()
Checks whether the config file has any dirty (modified) entries. |
boolean | isDollarExpansion()
Returns whether dollar expansion is on or off. |
boolean | isImmutable()
Checks whether this configuration file can be modified. |
boolean | isReadOnly()
Returns the read-only status of the config object. |
String | locale()
Returns a the current locale. |
QMetaObject | metaObject() |
boolean | readBoolEntry(String pKey, boolean bDefault)
Reads a booleanean entry.
|
boolean | readBoolEntry(String pKey) |
QColor | readColorEntry(String pKey, QColor pDefault)
Reads a QColor entry.
|
QColor | readColorEntry(String pKey) |
Calendar | readDateTimeEntry(String pKey, Calendar pDefault)
Reads a Calendar entry.
|
Calendar | readDateTimeEntry(String pKey) |
boolean | readDefaults() |
double | readDoubleNumEntry(String pKey, double nDefault)
Reads a floating point value.
|
double | readDoubleNumEntry(String pKey) |
String | readEntry(String pKey, String aDefault)
Reads the value of an entry specified by pKey in the current group.
|
String | readEntry(String pKey) |
String | readEntryUntranslated(String pKey, String aDefault)
Reads the value of an entry specified by pKey in the current group.
|
String | readEntryUntranslated(String pKey) |
QFont | readFontEntry(String pKey, QFont pDefault)
Reads a QFont value.
|
QFont | readFontEntry(String pKey) |
int[] | readIntListEntry(String pKey)
Reads a list of Integers. |
ArrayList | readListEntry(String pKey, char sep)
Reads a list of strings. |
ArrayList | readListEntry(String pKey) |
ArrayList | readListEntry(String pKey, String[] aDefault, char sep)
Reads a list of strings, but returns a default if the key
did not exist. |
ArrayList | readListEntry(String pKey, String[] aDefault) |
long | readLongNumEntry(String pKey, long nDefault)
Reads a numerical value.
|
long | readLongNumEntry(String pKey) |
long | readNum64Entry(String pKey, long nDefault)
Reads a 64-bit numerical value.
|
long | readNum64Entry(String pKey) |
int | readNumEntry(String pKey, int nDefault)
Reads a numerical value.
|
int | readNumEntry(String pKey) |
String | readPathEntry(String pKey, String aDefault)
Reads a path.
|
String | readPathEntry(String pKey) |
ArrayList | readPathListEntry(String pKey, char sep)
Reads a list of string paths.
|
ArrayList | readPathListEntry(String pKey) |
QPoint | readPointEntry(String pKey, QPoint pDefault)
Reads a QPoint entry.
|
QPoint | readPointEntry(String pKey) |
QVariant | readPropertyEntry(String pKey, QVariant aDefault)
Reads the value of an entry specified by pKey in the current group.
|
QRect | readRectEntry(String pKey, QRect pDefault)
Reads a QRect entry.
|
QRect | readRectEntry(String pKey) |
QSize | readSizeEntry(String pKey, QSize pDefault)
Reads a QSize entry.
|
QSize | readSizeEntry(String pKey) |
long | readUnsignedLongNumEntry(String pKey, long nDefault)
Read an unsigned numerical value.
|
long | readUnsignedLongNumEntry(String pKey) |
long | readUnsignedNum64Entry(String pKey, long nDefault)
Read an 64-bit unsigned numerical value.
|
long | readUnsignedNum64Entry(String pKey) |
int | readUnsignedNumEntry(String pKey, int nDefault)
Reads an unsigned numerical value.
|
int | readUnsignedNumEntry(String pKey) |
void | reparseConfiguration()
Reparses all configuration files. |
void | revertToDefault(String key)
Reverts the entry with key key in the current group in the
application specific config file to either the system wide (default)
value or the value specified in the global KDE config file.
|
void | rollback(boolean bDeep)
Mark the config object as "clean," i.e. don't write dirty entries
at destruction time. |
void | rollback() |
void | setDesktopGroup()
Sets the group to the "Desktop Entry" group used for
desktop configuration files for applications, mime types, etc. |
void | setDollarExpansion(boolean _bExpand)
Turns on or off "dollar expansion" (see KConfigBase introduction)
when reading config entries.
|
void | setDollarExpansion() |
void | setGroup(String group)
Specifies the group in which keys will be read and written.
|
void | setReadDefaults(boolean b)
When set, all readEntry and readXXXEntry calls return the system
wide (default) values instead of the user's preference.
|
void | setReadOnly(boolean _ro)
Sets the config object's read-only status. |
void | sync()
Flushes all changes that currently reside only in memory
back to disk / permanent storage. |
void | writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a key/value pair.
|
void | writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, String pValue, boolean bPersistent) |
void | writeEntry(String pKey, String pValue) |
void | writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
writeEntry() Overridden to accept a property.
|
void | writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QVariant rValue, boolean bPersistent) |
void | writeEntry(String pKey, QVariant rValue) |
void | writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS)
writeEntry() overridden to accept a list of strings.
|
void | writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent) |
void | writeEntry(String pKey, String[] rValue, char sep) |
void | writeEntry(String pKey, String[] rValue) |
void | writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
writeEntry() overridden to accept a list of Integers.
|
void | writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, int[] rValue, boolean bPersistent) |
void | writeEntry(String pKey, int[] rValue) |
void | writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Write a (key/value) pair.
|
void | writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, int nValue, boolean bPersistent) |
void | writeEntry(String pKey, int nValue) |
void | writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, long nValue, boolean bPersistent) |
void | writeEntry(String pKey, long nValue) |
void | writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision) |
void | writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format) |
void | writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, double nValue, boolean bPersistent) |
void | writeEntry(String pKey, double nValue) |
void | writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, boolean bValue, boolean bPersistent) |
void | writeEntry(String pKey, boolean bValue) |
void | writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QFont rFont, boolean bPersistent) |
void | writeEntry(String pKey, QFont rFont) |
void | writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QColor rColor, boolean bPersistent) |
void | writeEntry(String pKey, QColor rColor) |
void | writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, Calendar rDateTime, boolean bPersistent) |
void | writeEntry(String pKey, Calendar rDateTime) |
void | writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QRect rValue, boolean bPersistent) |
void | writeEntry(String pKey, QRect rValue) |
void | writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QPoint rValue, boolean bPersistent) |
void | writeEntry(String pKey, QPoint rValue) |
void | writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a (key/value) pair.
|
void | writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal) |
void | writeEntry(String pKey, QSize rValue, boolean bPersistent) |
void | writeEntry(String pKey, QSize rValue) |
void | writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal, boolean bNLS)
Writes a file path.
|
void | writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal) |
void | writePathEntry(String pKey, String path, boolean bPersistent) |
void | writePathEntry(String pKey, String path) |
void | writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS)
writePathEntry() overridden to accept a list of paths (strings).
|
void | writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal) |
void | writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent) |
void | writePathEntry(String pKey, String[] rValue, char sep) |
void | writePathEntry(String pKey, String[] rValue) |
See Also: KConfigBase
UNKNOWN: Possible return values for getConfigState().
Parameters: warnUser Warn the user if the configuration files are not writable.
Returns: Indicates that all of the configuration files used are writable.
UNKNOWN: Check whether the config files are writable.
pKey
in the current group.Parameters: pKey The key to delete. bGlobal If bGlobal
is true, the pair is not removed from the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the key with the locale tag is removed.
UNKNOWN: Deletes the entry specified by pKey
in the current group.
Parameters: group The name of the group bDeep Specify whether non-empty groups should be completely
deleted (including their entries). bGlobal If bGlobal
is true, the group is not removed from the
application specific config file, but from the global KDE config file.
Returns: If the group is not empty and bDeep is false, deleteGroup returns false.
UNKNOWN: Deletes a configuration entry group
Parameters: key the key to check
Returns: whether the entry key
may be changed in the current group
in this configuration file.
UNKNOWN: Checks whether it is possible to change the given entry.
Returns: the state of the app-config object
See Also: ConfigState
UNKNOWN: Returns the state of the app-config object.
Returns: The current group.
UNKNOWN: Returns the name of the group in which we are searching for keys and from which we are retrieving entries.
Parameters: group the group to check
Returns: whether changes may be made to group
in this configuration
file.
UNKNOWN: Checks whether it is possible to change the given group.
Returns: The list of groups.
UNKNOWN: Returns a list of groups that are known about.
QColor computedDefault = kapp.palette().color(QPalette.Active, QColorGroup.Text) QColor color = config.readEntry(key, computedDefault); \encode Then it may wish to make the following check before writing back changes:if ( (value == computedDefault) && !config.hasDefault(key) ) config.revertToDefault(key) else config.writeEntry(key, value)This ensures that as long as the entry is not modified to differ from the computed default, the application will keep using the computed default and will follow changes the computed default makes over time.Parameters: key The key of the entry to check.
UNKNOWN: Returns whether a default is specified for an entry in either the system wide configuration file or the global KDE config file.
Parameters: group The group to search for.
Returns: true if the group exists.
UNKNOWN: Returns true if the specified group is known about.
Parameters: key The key to search for.
Returns: If true, the key is available.
UNKNOWN: Checks whether the key has an entry in the currently active group.
Returns: true if the config file has any dirty (modified) entries.
UNKNOWN: Checks whether the config file has any dirty (modified) entries.
Returns: true if dollar expansion is on.
UNKNOWN: Returns whether dollar expansion is on or off.
Returns: whether changes may be made to this configuration file.
UNKNOWN: Checks whether this configuration file can be modified.
Returns: The read-only status.
UNKNOWN: Returns the read-only status of the config object.
Returns: A string representing the current locale.
UNKNOWN: Returns a the current locale.
pKey
in the current group
and interpret it as a booleanean value. Currently "on" and "true" are
accepted as true, everything else if false.Parameters: pKey The key to search for bDefault A default value returned if the key was not found.
Returns: The value for this key.
UNKNOWN: Reads a boolean entry.
pKey
in the current group
and interpret it as a color.Parameters: pKey The key to search for. pDefault A default value (null QColor by default) returned if the key was not found or if the value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QColor entry.
pKey
in the current group
and interpret it as a date and time.Parameters: pKey The key to search for. pDefault A default value ( currentDateTime() by default) returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QDateTime entry.
Returns: true if all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference.
UNKNOWN:
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a floating point value.
pKey
in the current group.
If you want to read a path, please use readPathEntry().Parameters: pKey The key to search for. aDefault A default value returned if the key was not found.
Returns: The value for this key. Can be null if aDefault is null.
UNKNOWN: Reads the value of an entry specified by pKey
in the current group.
pKey
in the current group.
The untranslated entry is returned, you normally do not need this.Parameters: pKey The key to search for. aDefault A default value returned if the key was not found.
Returns: The value for this key.
UNKNOWN: Reads the value of an entry specified by pKey
in the current group.
pKey
in the current group
and interpret it as a font object.Parameters: pKey The key to search for. pDefault A default value (null QFont by default) returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QFont value.
Parameters: pKey The key to search for.
Returns: The list. Empty if the entry does not exist.
UNKNOWN: Reads a list of Integers.
Parameters: pKey The key to search for. sep The list separator (default is ",").
Returns: The list. Empty if the entry does not exist.
UNKNOWN: Reads a list of strings.
Parameters: pKey The key to search for. aDefault The default value to use if the key does not exist. sep The list separator (default is ",").
Returns: The list. Contains aDefault
if the Key does not exist.
UNKNOWN: Reads a list of strings, but returns a default if the key did not exist.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a numerical value.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a 64-bit numerical value.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a numerical value.
pKey
in the current group
and interpret it as a path. This means, dollar expansion is activated
for this value, so that e.g. $HOME gets expanded.Parameters: pKey The key to search for. aDefault A default value returned if the key was not found.
Returns: The value for this key. Can be null if aDefault is null.
UNKNOWN: Reads a path.
pKey
in the current group
and interpret it as a list of paths. This means, dollar expansion is activated
for this value, so that e.g. $HOME gets expanded.Parameters: pKey The key to search for. sep The list separator (default is ",").
Returns: The list. Empty if the entry does not exist.
UNKNOWN: Reads a list of string paths.
pKey
in the current group
and interpret it as a QPoint object.Parameters: pKey The key to search for pDefault A default value (null QPoint by default) returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QPoint entry.
pKey
in the current group.
The value is treated as if it is of the type of the given default value.
Note that only the following QVariant types are allowed : String,
StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool,
Double, DateTime and Date.Parameters: pKey The key to search for. aDefault A default value returned if the key was not found or if the read value cannot be converted to the QVariant.Type.
Returns: The value for the key or the default value if the key was not found.
UNKNOWN: Reads the value of an entry specified by pKey
in the current group.
Parameters: pKey The key to search for pDefault A default value (null QRect by default) returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QRect entry.
pKey
in the current group
and interpret it as a QSize object.Parameters: pKey The key to search for pDefault A default value (null QSize by default) returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads a QSize entry.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Read an unsigned numerical value.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Read an 64-bit unsigned numerical value.
pKey
in the current group
and interpret it numerically.Parameters: pKey The key to search for. nDefault A default value returned if the key was not found or if the read value cannot be interpreted.
Returns: The value for this key.
UNKNOWN: Reads an unsigned numerical value.
See Also: KConfigBase
UNKNOWN: Reparses all configuration files.
key
in the current group in the
application specific config file to either the system wide (default)
value or the value specified in the global KDE config file.
To revert entries in the global KDE config file, the global KDE config
file should be opened explicitly in a separate config object.Parameters: key The key of the entry to revert.
UNKNOWN: Reverts the entry with key key
in the current group in the application specific config file to either the system wide (default) value or the value specified in the global KDE config file.
bDeep
is false, only the global dirty
flag of the KConfig object gets cleared. If you then call
writeEntry() again, the global dirty flag is set again and all
dirty entries will be written at a subsequent sync() call.
Classes that derive from KConfigBase should override this
method and implement storage-specific behavior, as well as
calling the KConfigBase.rollback() explicitly in the initializer.Parameters: bDeep If true, the dirty flags of all entries are cleared, as well as the global dirty flag.
UNKNOWN: Mark the config object as "clean," i.
UNKNOWN: Sets the group to the "Desktop Entry" group used for desktop configuration files for applications, mime types, etc.
Parameters: _bExpand Tf true, dollar expansion is turned on.
UNKNOWN: Turns on or off "dollar expansion" (see KConfigBase introduction) when reading config entries.
Parameters: group The name of the new group.
UNKNOWN: Specifies the group in which keys will be read and written.
UNKNOWN: When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference.
Parameters: _ro If true, the config object will not write out any changes to disk even if it is destroyed or sync() is called.
UNKNOWN: Sets the config object's read-only status.
readOnly
status.
You should call this from your destructor in derivative classes.See Also: KConfigBase KConfigBase
UNKNOWN: Flushes all changes that currently reside only in memory back to disk / permanent storage.
Parameters: pKey The key to write. pValue The value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will
not be written to disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a key/value pair.
Parameters: pKey The key to write rValue The property to write bPersistent If bPersistent
is false, the entry's dirty flag
will not be set and thus the entry will not be
written to disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
See Also: KConfigBase
UNKNOWN: writeEntry() Overridden to accept a property.
Parameters: pKey The key to write rValue The list to write sep The list separator (default is ","). bPersistent If bPersistent
is false, the entry's dirty flag
will not be set and thus the entry will not be
written to disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
See Also: KConfigBase
UNKNOWN: writeEntry() overridden to accept a list of strings.
Parameters: pKey The key to write rValue The list to write bPersistent If bPersistent
is false, the entry's dirty flag
will not be set and thus the entry will not be
written to disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
See Also: KConfigBase
UNKNOWN: writeEntry() overridden to accept a list of Integers.
Parameters: pKey The key to write. nValue The value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Write a (key/value) pair.
Parameters: pKey The key to write. nValue The value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. nValue The value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. format format
determines the format to which the value
is converted. Default is 'g'. precision precision
sets the precision with which the
value is converted. Default is 6 as in String. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. bValue The value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rFont The font value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rColor The color value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rDateTime The date and time value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rValue The rectangle value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rValue The point value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. rValue The size value to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a (key/value) pair.
Parameters: pKey The key to write. path The path to write. bPersistent If bPersistent
is false, the entry's dirty
flag will not be set and thus the entry will not be written to
disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
UNKNOWN: Writes a file path.
Parameters: pKey The key to write rValue The list to write sep The list separator (default is ","). bPersistent If bPersistent
is false, the entry's dirty flag
will not be set and thus the entry will not be
written to disk at deletion time. bGlobal If bGlobal
is true, the pair is not saved to the
application specific config file, but to the
global KDE config file. bNLS If bNLS
is true, the locale tag is added to the key
when writing it back.
See Also: KConfigBase KConfigBase
UNKNOWN: writePathEntry() overridden to accept a list of paths (strings).