RestartSys Class Reference
This class provides static functions to safely restart the system.
Member Functions Documentation
RestartSystem()
IMPORT_C
TInt
|
RestartSystem
|
(
|
)
|
[static]
|
RestartSystem(TInt)
IMPORT_C
TInt
|
RestartSystem
|
(
|
TInt
|
aStartupMode
|
)
|
[static]
|
Safely restarts the system in a given startup mode.
-
Post-condition
-
This function will return after posting an event in system event queue. The processing of this event might take some time and even might be cancelled if the system cannot be restarted safely. The execution of the calling thread will continue for an indefinte period of time after this call, but it has no guarantees to finish execution. It is strongly advised to delay for a sufficient period of time to let the shutdown request be processed.
// Usage example to restart the system in licensee-defined mode 3
RestartSys::RestartSystem(3);
User::After(5000000);
-
panic
-
ERestartNotSupportedOnEmulator if this function is called on emulator
-
capability
-
PowerMgmt
-
capability
-
WriteDeviceData
-
capability
-
SwEvent
Parameters
TInt
aStartupMode
|
The startup mode the device will start in after reboot
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.