class MAbstractListenerCreator

Defines the PeerHood Listener creator interface (pure virtual creator)

Inheritance:


Public Methods

[more]virtual ~MAbstractListenerCreator()
Default destructor
[more]virtual MAbstractListener* CreateListener(const std::string& aName, MAbstractStateConverter* aConverter) = 0
Transparently create listener objects based on their prototype names.


Documentation

This pure virtual class defines the interface for creating listeners for various purposes without the need to know anything about underlying technology. Concrete listeners are created via listener factory by using the concrete creator class which has to implement this class. All created listeners will register to component that created it through AbstractStateConverter -interface (that will have to be implemented by the component that is going to use listeners), a reference to this given as one creation parameter, listeners use RegisterListener()-function to register itself to that component.
ovirtual ~MAbstractListenerCreator()
Default destructor, does nothing.

ovirtual MAbstractListener* CreateListener(const std::string& aName, MAbstractStateConverter* aConverter) = 0
Creates a new listener based on the given name, used only through listener factory.

Parameters:
aName - a string representation of the concrete listener prototype
aConverter - reference to the owner object, CANNOT BE NULL!
Returns:
s Created concrete listener object or NULL if the given name doesn't match the prototype name.


Direct child classes:
CMaemoWLANCreator
CMaemoSystemCreator
CMaemoBTCreator
CBluezBTCreator

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.