class CGPRSCreator

GPRS-specific implementation of the MAbstractCreator interface. This class is used by the PeerHood factory to create connection objects that implement the MAbstractConnection interface.

Inheritance:


Public Methods

[more]MAbstractConnection* CreateConnectionL(const std::string& aProto)
Creates a new GPRS specific connection object.
[more]MAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
Creates a new GPRS specific pinger object.
[more]MAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
Creates a new Bluetooth specific pinger object.
[more]const std::string& GetPrototype()
Returns creator's unique id string.


Inherited from MAbstractCreator:


Documentation

GPRS-specific implementation of the MAbstractCreator interface. This class is used by the PeerHood factory to create connection objects that implement the MAbstractConnection interface. The idea is to provide a transparent way to create objects with specific properties. This makes the whole PeerHood system quite flexible; new transport medium can be added without any modifications to the source code itself.

oMAbstractConnection* CreateConnectionL(const std::string& aProto)
Creates a new GPRS specific connection object. The object is created dynamically so the caller is responsible of deletion of the object.

Parameters:
aProto - Prototype of the desired object's type.
Returns:
new CWLAConnection object or NULL if the prototype was not recognized

oMAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
Creates a new GPRS specific pinger object. The object is created dynamically so the caller is responsible of deletion of the object.

Parameters:
aProto - Prototype of the desired object's type.
aAddress - Remote device's address.
Returns:
new CGPRSPinger object or NULL if the prototype was not recognized

oMAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
Creates a new Bluetooth specific pinger object. The object is created dynamically so the caller is responsible of deletion of the object.

Parameters:
aProto - Prototype of the desired object's type.
aAddress - Remote device's address.
Returns:
new CBTPinger object or NULL if the prototype was not recognized

oconst std::string& GetPrototype()
Returns creator's unique id string. GPRS creator's id <i>gprs-base </i> is the same as GPRS plugin's id.

Returns:
creator's unique id string


This class has no child classes.
See Also:
MAbstractCreator
MAbstractConnection
TCPConnection
Factory

Alphabetic index HTML hierarchy of classes or Java



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