This watches over GCF::ObjectMap to emit signals when the objects are inserted, removed or deleted from GCF::ObjectMap.
More...
#include <GCF3/ObjectMap>
You can set this to watch over a GCF::ObjectMap by using GCF::ObjectMapWatcher::watch(ObjectMap &list) method.
Only one watcher can watch over GCF::ObjectMap at a time.If there is already a watcher watching that ObjectMap when a new one is set, then it will be replaced with the new one.
GCF::ObjectMapWatcher::ObjectMapWatcher |
( |
QObject * |
parent = 0 | ) |
|
GCF::ObjectMapWatcher::~ObjectMapWatcher |
( |
| ) |
|
template<class T >
GCF::ObjectMapWatcher::watch |
( |
ObjectMap< T > & |
map | ) |
|
Sets the GCF::ObjectMap to watch. If there is already a watcher watching that ObjectMap, then it will be replaced with this.
QString GCF::ObjectMapWatcher::listenerType |
( |
| ) |
const |
|
virtual |
Returns the listener type. By default listener type is "GCF::ObjectMapEventListener".
- Returns
- the current listener type
Reimplemented from GCF::ObjectMapEventListener.
GCF::ObjectMapWatcher::objectInserted |
( |
QObject * |
obj | ) |
|
|
signal |
This signal will be emitted when a QObject
is added to the watching GCF::ObjectMap.
- Parameters
-
obj | QObject pointer added. |
GCF::ObjectMapWatcher::objectRemoved |
( |
QObject * |
obj | ) |
|
|
signal |
This signal will be emitted when a QObject
is removed from the watching GCF::ObjectMap.
- Parameters
-
obj | QObject pointer removed. |
GCF::ObjectMapWatcher::objectDeleted |
( |
QObject * |
obj | ) |
|
|
signal |
This signal will be emitted when QObject
inside watching ObjectMap is deleted from anywhere inside application.
- Parameters
-
obj | QObject pointer deleted. |