.. _object_ConfigurationObject: :index:`ConfigurationObject` ---------------------------- Description *********** The ConfigurationObject object contains the middle layer of the configuration hierarchy. It encapsulates :ref:`ConfigurationItem ` objects which represent the actual settings. :**› Inherits**: :ref:`Object ` :**› Inherited by**: :ref:`GeneralApplicationSettings `, :ref:`GeneralSystemSettings `, :ref:`NetworkInterface ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 1 * :ref:`items ` * :ref:`name ` * :ref:`nameItem ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`toDataMap() ` * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`aboutToBeUpdated() ` * :ref:`itemsDataChanged() ` * :ref:`updated() ` * :ref:`Object.completed() ` Properties ********** .. _property_ConfigurationObject_items: .. _signal_ConfigurationObject_itemsChanged: .. index:: single: items items +++++ This property holds a list of :ref:`ConfigurationItem ` objects which represent the actual settings. :**› Type**: :ref:`List `\<:ref:`ConfigurationItem `> :**› Signal**: itemsChanged() :**› Attributes**: Readonly .. _property_ConfigurationObject_name: .. _signal_ConfigurationObject_nameChanged: .. index:: single: name name ++++ This property holds the name of this configuration subgroup. It is printed as headline in Fluentum. :**› Type**: String :**› Signal**: nameChanged() :**› Attributes**: Writable .. _property_ConfigurationObject_nameItem: .. index:: single: nameItem nameItem ++++++++ This property holds an internal :ref:`ConfigurationItem ` instance for the :ref:`name ` property. :**› Type**: :ref:`ConfigurationItem ` :**› Attributes**: Readonly Methods ******* .. _method_ConfigurationObject_toDataMap: .. index:: single: toDataMap toDataMap() +++++++++++ This method is similar to :ref:`Object.serializeProperties() ` but only returns the serialized :ref:`DataObject.data ` properties of each :ref:`ConfigurationItem `. This method was introduced in InCore 2.6. :**› Returns**: Map Signals ******* .. _signal_ConfigurationObject_aboutToBeUpdated: .. index:: single: aboutToBeUpdated aboutToBeUpdated() ++++++++++++++++++ This signal is emitted before the configuration object is being updated through object deserialization, e.g. when using in conjunction with an :ref:`JsonRpcService ` and loading settings through RPC calls. This signal was introduced in InCore 2.4. .. _signal_ConfigurationObject_itemsDataChanged: .. index:: single: itemsDataChanged itemsDataChanged(SignedInteger index) +++++++++++++++++++++++++++++++++++++ This signal is emitted whenever the :ref:`List.dataChanged() ` signal is emitted, i.e. the item at ``index`` in the :ref:`items ` list itself emitted the dataChanged() signal. .. _signal_ConfigurationObject_updated: .. index:: single: updated updated() +++++++++ This signal is emitted after the configuration object has been updated through object deserialization, e.g. when using in conjunction with an :ref:`JsonRpcService ` and loading settings through RPC calls. This signal was introduced in InCore 2.4.