GCF LOGO VCL LOGO
GCF::ObjectMapEventListener Class Reference

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.

GCF::ObjectMapEventListener::~ObjectMapEventListener ( )
virtual

Destructor.

Member Function Documentation

GCF::ObjectMapEventListener::listenerType ( ) const
virtual

Returns the listener type. By default listener type is "GCF::ObjectMapEventListener".

Returns
the current listener type

Reimplemented in GCF::ObjectMapWatcher, and GCF::ObjectMapEventBroadcaster.

GCF::ObjectMapEventListener::objectInserted ( QObject *  obj)
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
objQObject pointer - Value pair which was inserted into the GCF::ObjectMap.

Reimplemented in GCF::ObjectMapEventBroadcaster.

GCF::ObjectMapEventListener::objectRemoved ( QObject *  obj)
virtual

By default there is no implementation. This function will be called when an QObject pointer is removed from the GCF::ObjectMap.

Parameters
objQObject pointer which was removed from the listening GCF::ObjectMap.

Reimplemented in GCF::ObjectMapEventBroadcaster.

GCF::ObjectMapEventListener::objectDeleted ( QObject *  obj)
virtual

By default there is no implementation. This function will be called when QObject pointer inside the listening ObjectMap is deleted inside application.

Parameters
objQObject pointer which got deleted.

Reimplemented in GCF::ObjectMapEventBroadcaster.