This listens to GCF::ObjectMap 's events.
#include <GCF3/ObjectMap>. More...
Public Member Functions | |
ObjectMapEventListener () | |
virtual | ~ObjectMapEventListener () |
virtual QString | listenerType () const |
virtual void | objectInserted (QObject *object) |
virtual void | objectRemoved (QObject *object) |
virtual void | objectDeleted (QObject *object) |
Detailed Description
When set as event listener on GCF::ObjectMap
the corresponding virtual functions in this class will be called when a object pointer is inserted, removed or deleted from the GCF::ObjectMap.
To set this class as event listener of GCF::ObjectMap you need to use the method GCF::ObjectMap::setEventListener(GCF::ObjectMapEventListener* listener).
Constructor & Destructor Documentation
GCF::ObjectMapEventListener::ObjectMapEventListener | ( | ) |
Default contructor.
|
virtual |
Destructor.
Member Function Documentation
|
virtual |
Returns the listener type. By default listener type is "GCF::ObjectMapEventListener".
- Returns
- the current listener type
Reimplemented in GCF::ObjectMapWatcher, and GCF::ObjectMapEventBroadcaster.
|
virtual |
By default there is no implementation. This function will be called when an QObject
pointer - Value pair is inserted into the listening GCF::ObjectMap.
- Parameters
-
obj QObject
pointer - Value pair which was inserted into the GCF::ObjectMap.
Reimplemented in GCF::ObjectMapEventBroadcaster.
|
virtual |
By default there is no implementation. This function will be called when an QObject
pointer is removed from the GCF::ObjectMap.
- Parameters
-
obj QObject
pointer which was removed from the listening GCF::ObjectMap.
Reimplemented in GCF::ObjectMapEventBroadcaster.
|
virtual |
By default there is no implementation. This function will be called when QObject
pointer inside the listening ObjectMap is deleted inside application.
- Parameters
-
obj QObject
pointer which got deleted.
Reimplemented in GCF::ObjectMapEventBroadcaster.