startup/stem_emergencycallsonlycmdlist.rss
changeset 86 df7231a66721
parent 85 ee5d5928b136
child 87 e9fb2728ea8b
equal deleted inserted replaced
85:ee5d5928b136 86:df7231a66721
     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 * Command list for the Emergency Calls Only startup state.
       
    16 *
       
    17 */
       
    18 
       
    19 #include <ssm/conditionresourcetypes.rh>
       
    20 #include <ssm/ssmcmd.rh>
       
    21 
       
    22 #include "ssmsubstateext.hrh"
       
    23 #include "ssmdlldatadefs.rh"
       
    24 
       
    25 // Identify command list type
       
    26 UID2 KUidSsmCommandListResourceFile
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // r_entry_point
       
    30 // This must be the first resource
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
       
    34     {
       
    35     command_list_mapping = r_map;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // r_map
       
    40 // Mapping of command list ids to resource ids.
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 RESOURCE SSM_COMMAND_LIST_MAPPING r_map
       
    44     {
       
    45     mappings =
       
    46         {
       
    47         SSM_COMMANDLISTID_TO_RESOURCEID
       
    48             {
       
    49             command_list_id = ESsmStateEmergencyCallsOnly;
       
    50             resource_id = r_cmds;
       
    51             }
       
    52         };
       
    53     }
       
    54 
       
    55 // ===========================================================================
       
    56 // Command lists in alphabetical order
       
    57 // ===========================================================================
       
    58 //
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // r_cmds
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 RESOURCE SSM_COMMAND_LIST r_cmds
       
    65     {
       
    66     commands =
       
    67         {
       
    68         r_cmd_sastate,          // This needs to be the first command in state, prio 0xFFF2
       
    69         r_cmd_publishstate,     // prio 0xFFF1
       
    70         r_cmd_psstate,          // prio 0xFFF0
       
    71         r_cmd_killsplash        // Last command, prio 0x0000
       
    72         };
       
    73     }
       
    74 
       
    75 // ===========================================================================
       
    76 // Command items in alphabetical order
       
    77 // ===========================================================================
       
    78 //
       
    79 
       
    80 // ---------------------------------------------------------------------------
       
    81 // r_cmd_killsplash
       
    82 // ---------------------------------------------------------------------------
       
    83 //
       
    84 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_killsplash
       
    85     {
       
    86     priority = 0x0000;
       
    87     category = 0x101F8766; // KPSUidStartup
       
    88     key      = 0x00000301; // KPSSplashShutdown
       
    89     value    = 101;        // ESplashShutdown
       
    90     }
       
    91 
       
    92 // ---------------------------------------------------------------------------
       
    93 // r_cmd_psstate
       
    94 // ---------------------------------------------------------------------------
       
    95 //
       
    96 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
       
    97     {
       
    98     priority = 0xFFF0;
       
    99     severity = ECmdCriticalSeverity;
       
   100     category = 0x101F8766; // KPSUidStartup
       
   101     key      = 0x00000041; // KPSGlobalSystemState
       
   102     value    = 105;        // ESwStateEmergencyCallsOnly
       
   103     }
       
   104 
       
   105 // ---------------------------------------------------------------------------
       
   106 // r_cmd_publishstate
       
   107 // ---------------------------------------------------------------------------
       
   108 //
       
   109 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
       
   110     {
       
   111     priority = 0xFFF1;
       
   112     severity = ECmdCriticalSeverity;
       
   113     retries = 2;
       
   114     }
       
   115 
       
   116 // ---------------------------------------------------------------------------
       
   117 // r_cmd_sastate
       
   118 // ---------------------------------------------------------------------------
       
   119 //
       
   120 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
       
   121     {
       
   122     priority = 0xFFF2;
       
   123     severity = ECmdCriticalSeverity;
       
   124     dllname = "customcmds.dll";
       
   125     ordinal = 8;
       
   126     unload_on_finish = ENeverUnload;
       
   127     retries = 2;
       
   128     dll_data = r_dlldata_sastate;
       
   129     }
       
   130 
       
   131 // ===========================================================================
       
   132 // DLL data items in alphabetical order
       
   133 // ===========================================================================
       
   134 //
       
   135 
       
   136 // ---------------------------------------------------------------------------
       
   137 // r_dlldata_sastate
       
   138 // ---------------------------------------------------------------------------
       
   139 //
       
   140 RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
       
   141     {
       
   142     mainstate = 0; // ESsmStartup
       
   143     substate = ESsmStateEmergencyCallsOnly;
       
   144     }