00001 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // Contains Generic Startup Architecture Normal State command lists 00015 // 00016 // This example Normal State policy creates and registers a SwP (ssm.swp.policy.dummy.diskstatus.dll) 00017 // with key KExampleSwPKey and KExampleSwPValue. 00018 00019 #include <ssm/ssmcmd.rh> 00020 #include <ssm/ssmsubstates.hrh> 00021 #include <ssm/cmdpersistreboots.rh> 00022 #include <ssm/cmdpersistreboots.hrh> 00023 #include "dummy_diskstatus_swppolicy.hrh" 00024 00025 UID2 KUidSsmCommandListResourceFile 00026 00027 // SSM_COMMAND_LIST_ROOT must be the first resource in a command list resource file. 00028 // The SSM relies on this having a resource ID of 1. 00029 RESOURCE SSM_COMMAND_LIST_ROOT 00030 { 00031 command_list_mapping = r_command_list_mapping; 00032 } 00033 00034 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping 00035 { 00036 mappings = 00037 { 00038 SSM_COMMANDLISTID_TO_RESOURCEID 00039 { 00040 command_list_id = ESsmNormalSubState; 00041 resource_id = r_normal_command; 00042 } 00043 }; 00044 } 00045 00046 RESOURCE SSM_COMMAND_LIST r_normal_command 00047 { 00048 commands = 00049 { 00050 r_rendezvous_with_estart, 00051 r_command_publish_state, 00052 r_command_create_example_swp, 00053 r_reset_boot_count 00054 }; 00055 } 00056 00057 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_state 00058 { 00059 severity = ECmdCriticalSeverity; 00060 } 00061 00062 RESOURCE SSM_START_CUSTOM_COMMAND r_reset_boot_count 00063 { 00064 severity = ECmdCriticalSeverity; 00065 execution_behaviour = ESsmWaitForSignal; 00066 dllname = "cmncustomcmds.dll"; 00067 ordinal = 1; // Persist reboots custom command is at ordinal 1 00068 dll_data = r_reset; 00069 } 00070 00071 RESOURCE SSM_COMMAND_PERSIST_REBOOTS r_reset 00072 { 00073 val = EResetBootCount; 00074 } 00075 00076 RESOURCE SSM_START_CUSTOM_COMMAND r_rendezvous_with_estart 00077 { 00078 severity = ECmdCriticalSeverity; 00079 dllname = "cmncustomcmds.dll"; 00080 ordinal = 2; // Rendezvous with estart custom command is at ordinal 2 00081 } 00082 00083 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_example_swp 00084 { 00085 severity = ECmdCriticalSeverity; 00086 key = EExampleSwPKey; 00087 value = EExampleSwPValue; 00088 filename = "ssm.swp.policy.dummy.diskstatus.dll"; 00089 }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.