sysstatemgmt/ssmpolicyplugins/inc/ssmsubstateext.hrh
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Definitions of SSM subsstates needed to start up S60.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMSUBSTATEEXT_H
       
    20 #define SSMSUBSTATEEXT_H
       
    21 
       
    22 #include <ssm/ssmsubstates.hrh>
       
    23 
       
    24 /**
       
    25 * Substates for the Startup main state.
       
    26 * These substates extend the substate definition in ssmsubstates.hrh.
       
    27 *
       
    28 * These identifiers are also used as command list ids to find the correct
       
    29 * command list among all command lists in the system.
       
    30 */
       
    31 enum TSsmStartupSubStateExt
       
    32     {
       
    33     ESsmStatePreUiServices        = ESsmStartupSubStateCriticalStatic, // 0x10
       
    34     ESsmStateStartingUiServices   = ESsmStartupSubStateNonCritical,    // 0x30
       
    35     ESsmStateStartingCriticalApps = 0x31,
       
    36     ESsmStateSelfTestOK           = 0x32,
       
    37     ESsmStateSecurityCheck        = 0x33,
       
    38     ESsmStateNonCritical          = 0x34,
       
    39     ESsmStateEmergencyCallsOnly   = 0x35,
       
    40     ESsmStateTest                 = 0x36,
       
    41     ESsmStateCharging             = 0x37,
       
    42     ESsmStateAlarm                = 0x38,
       
    43     ESsmStateAlarmToCharging      = 0x3C,
       
    44     ESsmStateChargingToAlarm      = 0x3D,
       
    45     ESsmStateChargingToNormal     = 0x3E,
       
    46     ESsmStateAlarmToNormal        = 0x3F
       
    47     };
       
    48 
       
    49 /**
       
    50 * Substates for the Fail main state.
       
    51 *
       
    52 * These identifiers are also used as command list ids to find the correct
       
    53 * command list among all command lists in the system.
       
    54 */
       
    55 enum TSsmFailSubState
       
    56     {
       
    57     ESsmStateFail = 0x30
       
    58     };
       
    59 
       
    60 /**
       
    61 * Substates for the Shutdown main state.
       
    62 *
       
    63 * These identifiers are also used as command list ids to find the correct
       
    64 * command list among all command lists in the system.
       
    65 */
       
    66 enum TSsmShutdownSubState
       
    67     {
       
    68     ESsmErrorShutdown = 0x4,    // Intermediate state for transitioning from
       
    69                                 // the startup sequence to the shutdown sequence.
       
    70     ESsmNormalShutdown = 0x5    // Differentiates oterh shutdown cases from the
       
    71                                 // ESsmErrorShutdown
       
    72     };
       
    73 
       
    74 #endif // SSMSUBSTATEEXT_H