Watcher class, responsible for the emitting signals on behalf of the data objects. More...
#include <SUIT_DataObject.h>
Signals | |
void | created (SUIT_DataObject *) |
Emitted when data object is created. More... | |
void | destroyed (SUIT_DataObject *) |
Emitted when data object is destroyed. More... | |
void | inserted (SUIT_DataObject *, SUIT_DataObject *) |
Emitted when data object is inserted to the parent data object. More... | |
void | removed (SUIT_DataObject *, SUIT_DataObject *) |
Emitted when data object is removed from the parent data object. More... | |
void | modified (SUIT_DataObject *) |
Public Member Functions | |
Signal () | |
Constructor. More... | |
virtual | ~Signal () |
Destructor. More... | |
Private Member Functions | |
void | emitCreated (SUIT_DataObject *) |
Emit signal about data object creation. More... | |
void | emitDestroyed (SUIT_DataObject *) |
Emit signal about data object destroying. More... | |
void | emitInserted (SUIT_DataObject *, SUIT_DataObject *) |
Emit signal about data object adding to the parent data object. More... | |
void | emitRemoved (SUIT_DataObject *, SUIT_DataObject *) |
Emit signal about data object removed from the parent data object. More... | |
void | emitModified (SUIT_DataObject *) |
Emit a signal to notify that the data object has been modified. More... | |
void | deleteLater (SUIT_DataObject *) |
Schedule data object for the late deleting. More... | |
Private Attributes | |
DataObjectList | myDelLaterObjects |
Friends | |
class | SUIT_DataObject |
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:
The same can be done by using static method SUIT_DataObject::connect(). For example,
SUIT_DataObject::Signal::Signal | ( | ) |
|
virtual |
Destroys data object which are scheduled for the deleting with the deleteLater().
|
signal |
object | data object being created |
|
private |
object | data object to be deleted later |
|
signal |
object | data object being destroyed |
|
private |
object | data object being created |
|
private |
object | data object being destroyed |
|
private |
object | data object being added |
parent | parent data object |
|
private |
object | data object that has been modified |
References SUIT_DataObject::modified().
|
private |
object | data object being removed |
parent | parent data object |
|
signal |
object | data object being created |
parent | parent data object |
|
signal |
|
signal |
object | data object being removed |
parent | parent data object |
|
friend |
|
private |