View a printable version of the current page.
  Wiki > Symbian Developer Network Public Wiki > ... > Example source code > How to restart device progmatically
  How to restart device progmatically
Added by alie, last edited by Petteri Muilu on Aug 12, 2008  (view change) show comment
Labels: 
(None)

Header file:

enum TSWStartupReason
    {
    // Normal startup reasons (100..149)

    // Nothing set the (default value).
    ESWNone = 100,

    // Restore Factory Settings (Normal)
    ESWRestoreFactorySet = 101,

    // Language Switched
    ESWLangSwitch = 102,

    // Warranty transfer
    ESWWarrantyTransfer = 103,

    // Possibly needed for handling power off & charger connected use case.
    ESWChargerConnected = 104,

    // Restore Factory Settings (Deep)
    ESWRestoreFactorySetDeep = 105
    };

class SysStartup
    {
    public:
        IMPORT_C static TInt ShutdownAndRestart(const class TUid& aSource, TSWStartupReason aReason);
    };

Implementation

TUid uid = {0x};
SysStartup::ShutdownAndRestart( uid, ESWNone);
Interactive Services Terms & Conditions of use | Terms of use | Privacy policy | Media Center | Contact us | © 2008 Symbian