Back to index
Data object representing the data instance in the tree-like hierarchy. More...
|Watcher class, responsible for the emitting signals on behalf of the data objects. More...|
Data object representing the data instance in the tree-like hierarchy.
Data object represents uniform data tree structure recommended to use in the SUIT-based applications.
Watcher class, responsible for the emitting signals on behalf of the data objects.
SUIT_DataObject class does not inherit from QObject for the performance reasons, so it can not use signals/slots mechanism directly. Instead it uses the only Signal object to emit the signals when the data object is created, destroyed, inserted to the parent object or removed from it.
If some object needs to handle, for example, data object destroying, it can use SUIT_DataObject::signal() method to connect the signal:
MyHandler* h = new MyHandler(); h->connect( SUIT_DataObject::signal(), SIGNAL(destroyed(SUIT_DataObject*)), h, SLOT(onDestroyed(SUIT_DataObject*)) );
The same can be done by using static method SUIT_DataObject::connect(). For example,