QmSystemState provides information and actions on device state. More...
Public Types |
|
| enum | NextState { Powerup = 0, Reboot, ShuttingDown } |
|
States the user can set. More... |
|
| enum | StateIndication { Shutdown = 0, ThermalStateFatal, BatteryStateEmpty, SaveData, RebootDeniedUSB, ShutdownDeniedUSB } |
|
State indication. More... |
|
| enum | RunState { RunState_User = 0, RunState_ActDead, RunState_Test, RunState_Local, RunState_Malf, RunState_Flash, RunState_Shutdown, RunState_Unknown } |
| enum | BootReason { BootReason_Unknown = -1, BootReason_SwdgTimeout = 0, BootReason_SecViolation, BootReason_Wdg32kTimeout, BootReason_PowerOnReset, BootReason_PowerKey, BootReason_MBus, BootReason_Charger, BootReason_Usb, BootReason_SWReset, BootReason_RTCAlarm, BootReason_NSU } |
Signals |
|
| void | systemStateChanged (MeeGo::QmSystemState::StateIndication what) |
| Sent when device state indication has been received. |
|
Public Member Functions |
|
| QmSystemState (QObject *parent=0) | |
| Constructor. |
|
| ~QmSystemState () | |
| bool | set (NextState nextState) |
Requests the system to move into state nextState. The system state change may not actually change when the function returns; use the systemStateChanged(MeeGo::QmSystemState::StateIndication) signal to track the system state changes. |
|
| RunState | getRunState () |
| Gets the current run state. |
|
| BootReason | getBootReason () |
| Gets the current boot reason. |
|
| unsigned int | getPowerOnTimeInSeconds () |
| Gets the accumulated value of the power on counter in seconds, which represents the total time the device has been powered on. |
|
Protected Member Functions |
|
| void | connectNotify (const char *signal) |
| void | disconnectNotify (const char *signal) |
QmSystemState provides information and actions on device state.
State indication.
| MeeGo::QmSystemState::QmSystemState | ( | QObject * | parent = 0 |
) |
Constructor.
| parent | The possible parent object |
| MeeGo::QmSystemState::~QmSystemState | ( | ) |
| void MeeGo::QmSystemState::connectNotify | ( | const char * | signal | ) | [protected, virtual] |
Reimplemented from QObject.
| void MeeGo::QmSystemState::disconnectNotify | ( | const char * | signal | ) | [protected, virtual] |
Reimplemented from QObject.
| BootReason MeeGo::QmSystemState::getBootReason | ( | ) |
Gets the current boot reason.
| unsigned int MeeGo::QmSystemState::getPowerOnTimeInSeconds | ( | ) |
Gets the accumulated value of the power on counter in seconds, which represents the total time the device has been powered on.
| RunState MeeGo::QmSystemState::getRunState | ( | ) |
Gets the current run state.
| bool MeeGo::QmSystemState::set | ( | NextState | nextState | ) |
Requests the system to move into state nextState. The system state change may not actually change when the function returns; use the systemStateChanged(MeeGo::QmSystemState::StateIndication) signal to track the system state changes.
| nextState | New state |
| void MeeGo::QmSystemState::systemStateChanged | ( | MeeGo::QmSystemState::StateIndication | what | ) | [signal] |
Sent when device state indication has been received.
| what | Received state indication type |
| (C) 2009-2011 Nokia Corporation LGPL Lesser General Public License |
MeeGo 1.2 Harmattan API
|



