This watches over ObjectList to emit signals when the objects are added, removed or deleted from GCF::ObjectList.
More...
#include <GCF3/ObjectList>
You can set this to watch over an GCF::ObjectList by using GCF::ObjectListWatcher::watch(ObjectList &list) method.
Only one watcher can watch over GCF::ObjectList at a time.If there is already a watcher watching that ObjectList when a new one is set then it will be replaced by the new one.
GCF::ObjectListWatcher::ObjectListWatcher |
( |
QObject * |
parent = 0 | ) |
|
GCF::ObjectListWatcher::~ObjectListWatcher |
( |
| ) |
|
void GCF::ObjectListWatcher::watch |
( |
ObjectList & |
list | ) |
|
QString GCF::ObjectListWatcher::listenerType |
( |
| ) |
const |
|
virtual |
GCF::ObjectListWatcher::objectAdded |
( |
int |
index, |
|
|
QObject * |
obj |
|
) |
| |
|
signal |
This signal will be emitted when a QObject
is added to the GCF::ObjectList.
- Parameters
-
index | index at which the object was inserted. |
obj | QObject added. |
GCF::ObjectListWatcher::objectRemoved |
( |
int |
index, |
|
|
QObject * |
obj |
|
) |
| |
|
signal |
This signal will be emitted when a QObject
is removed from the GCF::ObjectList.
- Parameters
-
index | index from which the QObject was removed. |
obj | QObject removed. |
GCF::ObjectListWatcher::objectDeleted |
( |
int |
index, |
|
|
QObject * |
obj |
|
) |
| |
|
signal |
This signal will be emitted when a QObject is deleted from the GCF::ObjectList.
- Parameters
-
index | index of QObject in GCF::ObjectList which got deleted. |
obj | QObject deleted. |