#include <cascade/app/CascadePowerMessage.h>
Public Types | |
enum | PowerState { kStandby = 0, kOn = 1 } |
Static Public Member Functions | |
static u32 | MessageID () |
Public Attributes | |
PowerState | m_oldState |
PowerState | m_newState |
CascadePowerMessage is broadcast to all local wormholes whenever the system power state is changed. Power messages are automatically dispatched by class CascadeApp.
|
represents a system power state CascadePowerMessage contain two member variables of this type indicating the old system power state and the new system power state for a power state transition.
|
|
returns the messageID of the CascadePowerMessage MessageID() is used to determine if a wormhole message is a CascadePowerMessage Use it as follows: CascadeMessage * pMessage = wormhole.WaitForMessage(); if ((NULL != pMessage) && (pMessage->ID() == CascadePowerMessage::MessageID())) { // we have a power message }
|
|
the new system power state of a power state transition m_newState contains new power state of the power state transition represented by this power message.
|
|
the old system power state of a power state transition m_oldState contains old power state of the power state transition represented by this power message.
|