Bluetooth-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
-
MAbstractConnection* CreateConnectionL(const std::string& aProto)
- Creates a new Bluetooth specific connection object.
-
MAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
- Creates a new Bluetooth specific pinger object.
-
MAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
- Creates a new Bluetooth specific pinger object.
-
const std::string& GetPrototype()
- Returns creator's unique id string.
Documentation
Bluetooth-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.
MAbstractConnection* CreateConnectionL(const std::string& aProto)
-
Creates a new Bluetooth 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 CBTConnection object or NULL if the prototype was not recognized
MAbstractPinger* CreatePingerL(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
MAbstractMonitor* 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
const std::string& GetPrototype()
-
Returns creator's unique id string. Bluetooth creator's id <i>bt-base
</i> is the same as Bluetooth plugin's id.
- Returns:
- creator's unique id string
- This class has no child classes.
- See Also:
- MAbstractCreator
MAbstractConnection
CBTConnection
Factory
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.