class MAbstractListener

Defines the PeerHood listener interface

Inheritance:


Public Methods

[more]virtual ~MAbstractListener()
Virtual destructor @doc
[more]virtual bool Connect() = 0
Connect listener into event source
[more]virtual void Disconnect() = 0
Disconnect listener from event source
[more]virtual void CheckInitialState() = 0
Check the startup state of the listened event
[more]virtual void CheckState() = 0
Check the state of the listened event
[more]virtual const std::string& GetName() = 0
Returns the name of the listener


Documentation

Defines a pure and virtual interface for different listeners, every listener must implement this interface. Listener is used to monitor or check state or environment changes in the device where PeerHood is running. This interface hides underlying implementation from PeerHood, new listeners can be added dynamically. Listeners are used by the object that calls listener to be created, all listeners must register to owner by using the RegisterListener()-function of the MAbstractStateConverter -interface. Functions should be called in order: 1. Connect() after creation 2. CheckInitialState() at start 3. CheckState() periodically when running 4. Disconnect() when shutting down removing listeners.
ovirtual ~MAbstractListener()

ovirtual bool Connect() = 0
After successful creation of object this function is called to let the listener connect to the event/state source.

ovirtual void Disconnect() = 0
Called when removing listeners - all listeners must disconnect from the source (if needed) with this funcion!

ovirtual void CheckInitialState() = 0
Used to check the initial state of the system before plugins and other necessary modules are started.

ovirtual void CheckState() = 0
Used to check the system state for changes, calls PeerHood daemon functions (hardcoded at the moment - no interface yet) to change daemon state.

ovirtual const std::string& GetName() = 0


Direct child classes:
CMaemoWLANListener
CMaemoSystemListener
CMaemoBTListener
CBluezBTListener

Alphabetic index HTML hierarchy of classes or Java



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