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