PowerEventListener Class Reference

Power event listener interface. More...

#include <PowerManager.h>

Inheritance diagram for PowerEventListener:
LMXBluetoothModule NetworkConnection GprsConnection WlanConnection

List of all members.

Public Member Functions

virtual bool powerStateChange (PowerState oldState, PowerState newState)=0
 Power manager state change.

Detailed Description

Power event listener interface.

Interface for delivery of power manager events. Any class that wishes to listen to power manager events should implement this interface.


Member Function Documentation

virtual bool PowerEventListener::powerStateChange ( PowerState  oldState,
PowerState  newState 
) [pure virtual]

Power manager state change.

Notifies the listener class about a change in the power manager state. The method is called before the power manager executes all steps necessary to proceed to the specified new power state. The listener may reject current state transition by returning false. If the listener does not want to interfere, or allows transition to the new state, it should return true.

Parameters:
oldState Specifies the old state of the power manager.
newState Specifies the new state of the power manager.

Implemented in LMXBluetoothModule, and NetworkConnection.


The documentation for this class was generated from the following file:
Generated on Wed Oct 20 11:13:44 2010 for libspatha by  doxygen 1.6.3