sysstatemgmt/ssmcmdlists/data/securitycheckcmdlist.rss
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:45:37 +0200
branchRCL_3
changeset 6 6bb05bdcbe09
parent 0 4e1aa6a622a0
child 21 ccb4f6b3db21
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Command list for the Security Check startup state.
*
*/

#include <ssm/conditionresourcetypes.rh>
#include <ssm/ssmcmd.rh>

#include "ssmsubstateext.hrh"
#include "ssmdlldatadefs.rh"

// Identify command list type
UID2 KUidSsmCommandListResourceFile

// ---------------------------------------------------------------------------
// r_entry_point
// This must be the first resource
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
    {
    command_list_mapping = r_map;
    }

// ---------------------------------------------------------------------------
// r_map
// Mapping of command list ids to resource ids.
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_MAPPING r_map
    {
    mappings =
        {
        SSM_COMMANDLISTID_TO_RESOURCEID
            {
            command_list_id = ESsmStateSecurityCheck;
            resource_id = r_cmds;
            }
        };
    }

// ===========================================================================
// Command lists in alphabetical order
// ===========================================================================
//

// ---------------------------------------------------------------------------
// r_cmds
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST r_cmds
    {
    commands =
        {
        r_cmd_sastate,      // This needs to be the first command in state, prio 0xFFF2
        r_cmd_publishstate, // prio 0xFFF1
        r_cmd_psstate,      // prio 0xFFF0
        // prio 0xFFE7
		r_cmd_menu,
        r_cmd_idle,
        // prio 0xFFE6
        r_cmd_multiwaitforever1,
        // prio 0xFFE3
        r_cmd_startup,
        r_cmd_phone,
        r_cmd_nitz,
        // prio 0xFFE2
        r_cmd_multiwaitforever2,
        // prio 0xFFDF
        r_cmd_touchscreen,
        r_cmd_touchplg,
        // prio 0xFFDE
        r_cmd_multiwaitforever3,
        // prio 0xFFD8
        r_cmd_createswp_simstatus,
        // prio 0xFFD7
        r_cmd_loadsup_simeventobserver,
        // prio 0xFFD6
        r_cmd_securitycheck
        };
    }

// ===========================================================================
// Command items in alphabetical order
// ===========================================================================
//

// ---------------------------------------------------------------------------
// r_cmd_createswp_simstatus
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_cmd_createswp_simstatus
    {
    priority = 0xFFD8;
    severity = ECmdCriticalSeverity;
    key = 0x00000031; // KPSSimStatus
    filename = "ssm.swp.policy.simstatus.dll";
    }

// ---------------------------------------------------------------------------
// r_cmd_idle
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_idle
    {
    priority = 0xFFE7;
    name = "z:\\sys\\bin\\ailaunch.exe";
    execution_behaviour = ESsmDeferredWaitForSignal;
    monitor_info = r_mon_max_restarts_ignore;
    }

// ---------------------------------------------------------------------------
// r_cmd_menu
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_APP_INFO r_cmd_menu
    {
    priority = 0xFFE7;
    name = "z:\\sys\\bin\\matrixmenu.exe";
    execution_behaviour = ESsmDeferredWaitForSignal;
    background = 1; // To background
    }

// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever1
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever1
    {
    priority = 0xFFE6;
    }

// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever2
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever2
    {
    priority = 0xFFE2;
    }

// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever3
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever3
    {
    priority = 0xFFDE;
    }

// ---------------------------------------------------------------------------
// r_cmd_nitz
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_nitz
    {
    priority = 0xFFE3;
    name = "z:\\sys\\bin\\clockserver.exe";
    execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() --
    monitor_info = r_mon_3_restarts_ignore;
    }

// ---------------------------------------------------------------------------
// r_cmd_phone
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_APP_INFO r_cmd_phone
    {
    priority = 0xFFE3;
    name = "z:\\sys\\bin\\phoneui.exe";
    execution_behaviour = ESsmFireAndForget;
    retries = 2;
    background = 1; // To background
    monitor_info = r_mon_reset;
    }

// ---------------------------------------------------------------------------
// r_cmd_loadsup_simeventobserver
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_SSM_UTILITY_PLUGIN r_cmd_loadsup_simeventobserver
    {
    priority = 0xFFD7;
    severity = ECmdCriticalSeverity;
    filename = "ssmclayersup.dll";
    ordinal = 2; // SimEventObserverNewL
    }

// ---------------------------------------------------------------------------
// r_cmd_psstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
    {
    priority = 0xFFF0;
    severity = ECmdCriticalSeverity;
    category = 0x101F8766; // KPSUidStartup
    key      = 0x00000041; // KPSGlobalSystemState
    value    = 103;        // ESwStateSecurityCheck
    }

// ---------------------------------------------------------------------------
// r_cmd_publishstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
    {
    priority = 0xFFF1;
    severity = ECmdCriticalSeverity;
    retries = 2;
    }

// ---------------------------------------------------------------------------
// r_cmd_sastate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
    {
    priority = 0xFFF2;
    severity = ECmdCriticalSeverity;
    dllname = "customcmds.dll";
    ordinal = 8;
    unload_on_finish = ENeverUnload;
    retries = 2;
    dll_data = r_dlldata_sastate;
    }

// ---------------------------------------------------------------------------
// r_cmd_securitycheck
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_securitycheck
    {
    priority = 0xFFD6;
    severity = ECmdCriticalSeverity;
    dllname = "customcmds.dll";
    ordinal = 1;
    unload_on_finish = ENeverUnload;
    }

// ---------------------------------------------------------------------------
// r_cmd_startup
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_startup
    {
    priority = 0xFFE3;
    name = "z:\\sys\\bin\\startup.exe";
    execution_behaviour = ESsmDeferredWaitForSignal;
    severity = ECmdCriticalSeverity;
    retries = 2;
    }

// ---------------------------------------------------------------------------
// r_cmd_touchplg
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_touchplg
    {
    priority = 0xFFDF;
    severity = ECmdCriticalSeverity;
    dllname = "tsccustcmds.dll";
    ordinal = 1;
    retries = 2;
    execution_behaviour = ESsmDeferredWaitForSignal;
    conditional_information = r_cond_firstboot_and_tscinstartup;
    }

// ---------------------------------------------------------------------------
// r_cmd_touchscreen
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_touchscreen
    {
    priority = 0xFFDF;
    name = "z:\\sys\\bin\\touchscreencalib.exe";
    execution_behaviour = ESsmDeferredWaitForSignal;
    conditional_information = r_cond_firstboot_and_tscinstartup;
    }

// ===========================================================================
// DLL data items in alphabetical order
// ===========================================================================
//

// ---------------------------------------------------------------------------
// r_dlldata_sastate
// ---------------------------------------------------------------------------
//
RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
    {
    mainstate = 0; // ESsmStartup
    substate = ESsmStateSecurityCheck;
    }

// ===========================================================================
// Conditional blocks in alphabetical order
// ===========================================================================
//

// ---------------------------------------------------------------------------
// r_cond_ps_firstboot
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_firstboot
    {
    category		  = 0x101F8766; // KPSUidStartup
    key           = 0x00000013; // KPSStartupFirstBoot
    value         = 101;        // EPSStartupFirstBoot
    }

// ---------------------------------------------------------------------------
// r_cond_feat_tscinstartup
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_tscinstartup
    {
    feature_id = KFeatureIdTouchscreencalibInStartup;
    }

// ---------------------------------------------------------------------------
// r_cond_firstboot_and_tscinstartup
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_LOGICAL_AND r_cond_firstboot_and_tscinstartup
    {
    lhs = r_cond_feat_tscinstartup;
    rhs = r_cond_ps_firstboot;
    }

// monitoring.rss contains resource definitions, so it may not be included
// before entry point.
#include "monitoring.rss"