|
|
Access KDE desktop resources stored on the root window.
A companion to the KConfig class.
The KRootProp class is used for reading and writing configuration entries to properties on the root window.
All configuration entries are of the form "key=value".
|
Construct a KRootProp object for the property rProp.
~ |
Destructor.
Writes back any dirty configuration entries.
void |
Specify the property in which keys will be searched.
QString |
[const]
Retrieve the name of the property under which keys are searched.
void |
Destroy the property completely.
I.e. all entries will be cleared and the property will be removed from the root window.
QString |
[const]
Read the value of an entry specified by rKey
in the current property
Parameters:
Returns: The value for this key or the default if no value was found.
int |
[const]
Read a numerical value.
Read the value of an entry specified by rKey
in the current property
and interpret it numerically.
Parameters:
Returns: The value for this key or the default if no value was found.
QFont |
[const]
Read a QFont.
Read the value of an entry specified by rKey
in the current property
and interpret it as a font object.
Parameters:
Returns: The value for this key or a default font if no value was found.
QColor |
[const]
Read a QColor.
Read the value of an entry specified by rKey
in the current property
and interpret it as a color.
Parameters:
Returns: The value for this key or a default color if no value was found.
QString |
writeEntry() overridden to accept a const QString& argument.
This is stored to the current property when destroying the config object or when calling sync().
Parameters:
Returns: The old value for this key. If this key did not exist, a null string is returned.
QString |
Write the key value pair. Same as above, but write a numerical value.
Parameters:
Returns: The old value for this key. If this key did not exist, a null string is returned.
QString |
Write the key value pair. Same as above, but write a font.
Parameters:
Returns: The old value for this key. If this key did not exist, a null string is returned.
QString |
Write the key value pair. Same as above, but write a color.
Parameters:
Returns: The old value for this key. If this key did not exist, a null string is returned.
QString |
Remove an entry.
Parameters:
Returns: The old value for this key. If this key did not exist, a null string is returned.
QStringList |
[const]
Get a list of all keys.
Returns: A QStringList containing all the keys.
void |
Flush the entry cache. Write back dirty configuration entries to the current property, This is called automatically from the destructor.