sysstatemgmt/ssmcmdlists/data/uiswpcmdlists.rss
changeset 0 4e1aa6a622a0
child 23 66ecddbca914
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 * 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_enableappskey,        // prio 0xFFA7 - Enable applications key
       
    75         r_cmd_enableglobalnotes,    // prio 0xFFA7 - Enable global notes
       
    76         r_cmd_swidaemon             // prio 0xFF97 - Initializes pre-installed applications from memory card
       
    77         };
       
    78     }
       
    79 
       
    80 // ===========================================================================
       
    81 // Command items in alphabetical order
       
    82 // ===========================================================================
       
    83 //
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // r_cmd_devlockcheck
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_devlockcheck
       
    90     {
       
    91     priority = 0xFFD7;
       
    92     severity = ECmdCriticalSeverity;
       
    93     dllname = "customcmds.dll";
       
    94     ordinal = 11; // Device security check
       
    95     unload_on_finish = ENeverUnload;
       
    96     retries = 2;
       
    97     }
       
    98 
       
    99 // ---------------------------------------------------------------------------
       
   100 // r_cmd_enableappskey
       
   101 // ---------------------------------------------------------------------------
       
   102 //
       
   103 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_enableappskey
       
   104     {
       
   105     priority = 0xFFA7;
       
   106     severity = ECmdCriticalSeverity;
       
   107     dllname = "akncustcmds.dll";
       
   108     ordinal = 2; // EnableAppsKey
       
   109     retries = 2;
       
   110     }
       
   111 
       
   112 // ---------------------------------------------------------------------------
       
   113 // r_cmd_enableglobalnotes
       
   114 // ---------------------------------------------------------------------------
       
   115 //
       
   116 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_enableglobalnotes
       
   117     {
       
   118     priority = 0xFFA7;
       
   119     severity = ECmdCriticalSeverity;
       
   120     category = 0x101F8773;  // KPSUidUikon
       
   121     key = 0x00000006;       // KUikGlobalNotesAllowed
       
   122     value = 1;
       
   123     }
       
   124 
       
   125 // ---------------------------------------------------------------------------
       
   126 // r_cmd_kill_splash
       
   127 // ---------------------------------------------------------------------------
       
   128 //
       
   129 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_kill_splash
       
   130     {
       
   131     priority = 0xFFE7;
       
   132     category = 0x101F8766; // KPSUidStartup
       
   133     key      = 0x00000301; // KPSSplashShutdown
       
   134     value    = 101;        // ESplashShutdown
       
   135     }
       
   136 
       
   137 // ---------------------------------------------------------------------------
       
   138 // r_cmd_publishswp
       
   139 // ---------------------------------------------------------------------------
       
   140 //
       
   141 RESOURCE SSM_PUBLISH_SYSTEM_WIDE_PROPERTY r_cmd_publishswp
       
   142     {
       
   143     priority = 0xFFF1;
       
   144     severity = ECmdCriticalSeverity;
       
   145     }
       
   146 
       
   147 // ---------------------------------------------------------------------------
       
   148 // r_cmd_startanim
       
   149 // ---------------------------------------------------------------------------
       
   150 //
       
   151 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_startanim
       
   152     {
       
   153     priority = 0xFFC7;
       
   154     severity = ECmdCriticalSeverity;
       
   155     category = 0x100058F4;  // KPSUidStartupApp
       
   156     key = 0x00000001;       // KPSStartupAppState
       
   157     value = 2;              // EStartupAppStateStartAnimations
       
   158     }
       
   159 
       
   160 // ---------------------------------------------------------------------------
       
   161 // r_cmd_swidaemon
       
   162 // ---------------------------------------------------------------------------
       
   163 //
       
   164 RESOURCE SSM_START_PROCESS_INFO r_cmd_swidaemon
       
   165     {
       
   166     priority = 0xFF97;
       
   167     name = "z:\\sys\\bin\\swidaemon.exe";
       
   168     execution_behaviour = ESsmWaitForSignal;
       
   169     monitor_info = r_mon_3_restarts_reset;
       
   170     }
       
   171 
       
   172 // ---------------------------------------------------------------------------
       
   173 // r_cmd_waitanim
       
   174 // ---------------------------------------------------------------------------
       
   175 //
       
   176 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_waitanim
       
   177     {
       
   178     priority = 0xFFB7;
       
   179     severity = ECmdCriticalSeverity;
       
   180     dllname = "ssmsystemcmds.dll";
       
   181     ordinal = 5; // WaitPsKeyExact
       
   182     dll_data = r_dlldata_waitanim;
       
   183     unload_on_finish = ENeverUnload;
       
   184     retries = 2;
       
   185     execution_behaviour = ESsmWaitForSignal;
       
   186     }
       
   187 
       
   188 // ===========================================================================
       
   189 // DLL data items in alphabetical order
       
   190 // ===========================================================================
       
   191 //
       
   192 
       
   193 // ---------------------------------------------------------------------------
       
   194 // r_dlldata_waitanim
       
   195 // ---------------------------------------------------------------------------
       
   196 //
       
   197 RESOURCE CMD_PARAM_WAIT_PS r_dlldata_waitanim
       
   198     {
       
   199     category = 0x100058F4;  // KPSUidStartupApp
       
   200     key = 0x00000001;       // KPSStartupAppState
       
   201     target = 3;             // EStartupAppStateFinished
       
   202     }
       
   203 
       
   204 // monitoring.rss contains resource definitions, so it may not be included
       
   205 // before entry point.
       
   206 #include "monitoring.rss"