WLAN-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 WLAN specific connection object.
-
MAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
- Creates a new WLAN specific pinger object.
-
MAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
- Creates a new WLAN specific monitor object.
-
const std::string& GetPrototype()
- Returns creator's unique id string.
-
bool LoadParameter(std::string& aParameter)
- Loads a parameter from the configuration file.
Documentation
WLAN-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 WLAN 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
MAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
-
Creates a new WLAN 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 CWLANPinger object or NULL if the prototype was not recognized
MAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
-
Creates a new WLAN specific monitor 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 CWLANPinger object or NULL if the prototype was not recognized
const std::string& GetPrototype()
-
Returns creator's unique id string. WLAN creator's id <i>wlan-base
</i> is the same as WLAN plugin's id.
- Returns:
- creator's unique id string
bool LoadParameter(std::string& aParameter)
-
Loads a parameter from the configuration file. If the requested
parameter is found then the argument <code>aParameter</code> is replaced
with parameter's value.
- Parameters:
- aParameter - Parameter's name.
- Returns:
- true if the requested parameter was found
- 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++.