class MAbstractMonitor

Defines the PeerHood Monitor interface.

Inheritance:


Public Methods

[more] MAbstractMonitor(const std::string& aAddress)
Constructor.
[more]virtual ~MAbstractMonitor()
Default destructor.
[more]virtual const std::string& GetAddress() = 0
Returns remote device's address.
[more]virtual bool InRange() = 0
Tells whether a device is in range or not.
[more]virtual int Monitor() = 0
Monitors a remote device, i.e. checks the signal strength


Documentation

Defines the PeerHood Monitor interface. The methods in this interface are used when monitoring the presence of a remote device. Each networking technology requires its own implementation of this class, so the actual monitoring method is technology specific issue. Instances of this class are created transparently via the corresponding Creator classes.

o MAbstractMonitor(const std::string& aAddress)
Constructor, initializes the class so that the <code>Monitor</code> method can be called immediately after the construction has finished. The target address is the same during the created object's lifetime.

Parameters:
aAddress - The address of the remote device.
Returns:
none

ovirtual ~MAbstractMonitor()
Default destructor. Currently this does nothing but is here because virtual base classes without a destructor are <b><i>evil</i></b>.

Returns:
none

ovirtual const std::string& GetAddress() = 0
Return the address of the device under monitoring.

Returns:
remote device's address

ovirtual bool InRange() = 0
Tells whether a device is in range or not.

Returns:
true if the device is in range

ovirtual int Monitor() = 0
Monitors a remote device, i.e. checks the signal strengt

Returns:
true if the remote device is present


Direct child classes:
CWLANMonitor
CGPRSMonitor
CBTMonitor
See Also:
MAbstractCreator

Alphabetic index HTML hierarchy of classes or Java



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