Nemo QML Plugin Configuration
API DocumentationConfigurationGroup QML Type
Provides access to a group of configuration values More...
Import Statement: | import Nemo.Configuration 1.0 |
Properties
- path : string
- scope : ConfigurationGroup
- synchronous : bool
Signals
- valueChanged(key)
- valuesChanged()
Methods
- void clear()
- void setValue(string key, variant value)
- void sync()
- variant value(string key, variant defaultValue, int typeHint)
Detailed Description
ConfigurationGroup provides access to a group of DConf key values relative to path. ConfigurationGroups can be nested in which case path is relative to the parent ConfigurationGroup.
Key values can be accessed using the value() and setValue() methods. Value change notifications are via the valueChanged and valuesChanged signals.
Properties declared on the ConfigurationGroup will be synchronized with DConf keys with the same name. Due to the requirement that QML properties start with a lower case letter this method does not allow accessing all possible key values. The value() and setValue() methods can be used in these cases.
Property Documentation
This property holds the path of the configuration group. If this ConfigurationGroup is nested within another ConfigurationGroup then path
is relative to the path
of the parent group.
scope : ConfigurationGroup |
This property holds the parent scope of the configuration group. The path property is relative to the path
of the parent scope.
This property is automatically set when creating nested ConfigurationGroups.
Signal Documentation
Method Documentation
Returns the value of key as a variant. If key does not exist defaultValue will be returned. If specified, the key value will be converted to the meta type id typeHint.