startup/stem_uiswpcmdlists.rss
changeset 86 df7231a66721
parent 85 ee5d5928b136
child 87 e9fb2728ea8b
equal deleted inserted replaced
85:ee5d5928b136 86:df7231a66721
     1 /*
       
     2 * Copyright (c) 2009-2010 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 lists for the UI phase SWP:
       
    16 *   - UI phase Started
       
    17 *
       
    18 */
       
    19 
       
    20 #include <ssm/ssmcmd.rh>
       
    21 #include <ssm/clayerswp.hrh>
       
    22 
       
    23 #include "ssmswp.hrh"
       
    24 #include "ssmdlldatadefs.rh"
       
    25 
       
    26 // Identify command list type
       
    27 UID2 KUidSsmCommandListResourceFile
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // r_entry_point
       
    31 // This must be the first resource
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
       
    35     {
       
    36     command_list_mapping = r_map;
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // r_map
       
    41 // Mapping of command list ids to resource ids.
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 RESOURCE SSM_COMMAND_LIST_MAPPING r_map
       
    45     {
       
    46     mappings =
       
    47         {
       
    48         SSM_COMMANDLISTID_TO_RESOURCEID
       
    49             {
       
    50             command_list_id = ESsmUiPhaseStarted;
       
    51             resource_id = r_started_commands;
       
    52             }
       
    53         };
       
    54     }
       
    55 
       
    56 // ===========================================================================
       
    57 // Command lists in alphabetical order
       
    58 // ===========================================================================
       
    59 //
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // r_started_commands
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 RESOURCE SSM_COMMAND_LIST r_started_commands
       
    66     {
       
    67     commands =
       
    68         {
       
    69         r_cmd_publishswp,           // prio 0xFFF1
       
    70         r_cmd_kill_splash,          // prio 0xFFE7 - Remove splash screen
       
    71         r_cmd_devlockcheck,         // prio 0xFFD7 - Security code query, if needed
       
    72         r_cmd_startanim,            // prio 0xFFC7 - Startup animation(s)
       
    73         r_cmd_waitanim,             // prio 0xFFB7 - Wait for the animations to finish
       
    74 		r_cmd_adtupdater,			// prio 0xFFAA - Location, date & time queries //CR:ESAH-84JFCU
       
    75         r_cmd_enableappskey,        // prio 0xFFA7 - Enable applications key
       
    76         r_cmd_enableglobalnotes,    // prio 0xFFA7 - Enable global notes
       
    77         r_cmd_swidaemon             // prio 0xFF97 - Initializes pre-installed applications from memory card
       
    78 		};
       
    79     }
       
    80 
       
    81 // ===========================================================================
       
    82 // Command items in alphabetical order
       
    83 // ===========================================================================
       
    84 //
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // r_cmd_adtupdater
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 RESOURCE SSM_START_PROCESS_INFO r_cmd_adtupdater
       
    91     {
       
    92     priority = 0xFFAA;
       
    93     name = "adtupdater.exe";
       
    94     execution_behaviour = ESsmFireAndForget;
       
    95     }
       
    96 
       
    97 // ---------------------------------------------------------------------------
       
    98 // r_cmd_devlockcheck
       
    99 // ---------------------------------------------------------------------------
       
   100 //
       
   101 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_devlockcheck
       
   102     {
       
   103     priority = 0xFFD7;
       
   104     severity = ECmdCriticalSeverity;
       
   105     dllname = "customcmds.dll";
       
   106     ordinal = 11; // Device security check
       
   107     unload_on_finish = ENeverUnload;
       
   108     retries = 2;
       
   109     }
       
   110 
       
   111 // ---------------------------------------------------------------------------
       
   112 // r_cmd_enableappskey
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_enableappskey
       
   116     {
       
   117     priority = 0xFFA7;
       
   118     severity = ECmdCriticalSeverity;
       
   119     dllname = "akncustcmds.dll";
       
   120     ordinal = 2; // EnableAppsKey
       
   121     retries = 2;
       
   122     }
       
   123 
       
   124 // ---------------------------------------------------------------------------
       
   125 // r_cmd_enableglobalnotes
       
   126 // ---------------------------------------------------------------------------
       
   127 //
       
   128 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_enableglobalnotes
       
   129     {
       
   130     priority = 0xFFA7;
       
   131     severity = ECmdCriticalSeverity;
       
   132     category = 0x101F8773;  // KPSUidUikon
       
   133     key = 0x00000006;       // KUikGlobalNotesAllowed
       
   134     value = 1;
       
   135     }
       
   136 
       
   137 // ---------------------------------------------------------------------------
       
   138 // r_cmd_kill_splash
       
   139 // ---------------------------------------------------------------------------
       
   140 //
       
   141 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_kill_splash
       
   142     {
       
   143     priority = 0xFFE7;
       
   144     category = 0x101F8766; // KPSUidStartup
       
   145     key      = 0x00000301; // KPSSplashShutdown
       
   146     value    = 101;        // ESplashShutdown
       
   147     }
       
   148 
       
   149 // ---------------------------------------------------------------------------
       
   150 // r_cmd_publishswp
       
   151 // ---------------------------------------------------------------------------
       
   152 //
       
   153 RESOURCE SSM_PUBLISH_SYSTEM_WIDE_PROPERTY r_cmd_publishswp
       
   154     {
       
   155     priority = 0xFFF1;
       
   156     severity = ECmdCriticalSeverity;
       
   157     }
       
   158 
       
   159 // ---------------------------------------------------------------------------
       
   160 // r_cmd_startanim
       
   161 // ---------------------------------------------------------------------------
       
   162 //
       
   163 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_startanim
       
   164     {
       
   165     priority = 0xFFC7;
       
   166     severity = ECmdCriticalSeverity;
       
   167     category = 0x100058F4;  // KPSUidStartupApp
       
   168     key = 0x00000001;       // KPSStartupAppState
       
   169     value = 2;              // EStartupAppStateStartAnimations
       
   170     }
       
   171 
       
   172 // ---------------------------------------------------------------------------
       
   173 // r_cmd_swidaemon
       
   174 // ---------------------------------------------------------------------------
       
   175 //
       
   176 RESOURCE SSM_START_PROCESS_INFO r_cmd_swidaemon
       
   177     {
       
   178     priority = 0xFF97;
       
   179     name = "z:\\sys\\bin\\swidaemon.exe";
       
   180     execution_behaviour = ESsmWaitForSignal;
       
   181     monitor_info = r_mon_3_restarts_reset;
       
   182     }
       
   183 
       
   184 // ---------------------------------------------------------------------------
       
   185 // r_cmd_waitanim
       
   186 // ---------------------------------------------------------------------------
       
   187 //
       
   188 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_waitanim
       
   189     {
       
   190     priority = 0xFFB7;
       
   191     severity = ECmdCriticalSeverity;
       
   192     dllname = "ssmsystemcmds.dll";
       
   193     ordinal = 5; // WaitPsKeyExact
       
   194     dll_data = r_dlldata_waitanim;
       
   195     unload_on_finish = ENeverUnload;
       
   196     retries = 2;
       
   197     execution_behaviour = ESsmWaitForSignal;
       
   198     }
       
   199 
       
   200 // ===========================================================================
       
   201 // DLL data items in alphabetical order
       
   202 // ===========================================================================
       
   203 //
       
   204 
       
   205 // ---------------------------------------------------------------------------
       
   206 // r_dlldata_waitanim
       
   207 // ---------------------------------------------------------------------------
       
   208 //
       
   209 RESOURCE CMD_PARAM_WAIT_PS r_dlldata_waitanim
       
   210     {
       
   211     category = 0x100058F4;  // KPSUidStartupApp
       
   212     key = 0x00000001;       // KPSStartupAppState
       
   213     target = 3;             // EStartupAppStateFinished
       
   214     }
       
   215 
       
   216 // monitoring.rss contains resource definitions, so it may not be included
       
   217 // before entry point.
       
   218 #include "stem_monitoring.rss"