Power event listener interface. More...
#include <PowerManager.h>
Public Member Functions | |
virtual bool | powerStateChange (PowerState oldState, PowerState newState)=0 |
Power manager state change. |
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.
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.
oldState | Specifies the old state of the power manager. | |
newState | Specifies the new state of the power manager. |
Implemented in LMXBluetoothModule, and NetworkConnection.