00001 //ssm_cmdlist_swp_dummy_diskstatus.rss 00002 // 00003 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 00004 // All rights reserved. 00005 // This component and the accompanying materials are made available 00006 // under the terms of "Eclipse Public License v1.0" 00007 // which accompanies this distribution, and is available 00008 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00009 // 00010 // Initial Contributors: 00011 // Nokia Corporation - initial contribution. 00012 // 00013 // Contributors: 00014 // 00015 // Description: A dummy disk status system wide property is provided to demonstrate 00016 // the system state manager framework. 00017 // 00018 #include <ssm/ssmcmd.rh> 00019 #include "dummy_diskstatus_swppolicy.hrh" 00020 00021 UID2 KUidSsmCommandListResourceFile 00022 00023 // SSM_COMMAND_LIST_ROOT must be the first resource in a command list resource file. 00024 // The SSM relies on this having a resource ID of 1. 00025 RESOURCE SSM_COMMAND_LIST_ROOT 00026 { 00027 command_list_mapping = r_command_list_mapping; 00028 } 00029 00030 // Depending on the value of the SwP, the command list is constructed using the resource file 00031 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping 00032 { 00033 mappings = 00034 { 00035 SSM_COMMANDLISTID_TO_RESOURCEID 00036 { 00037 command_list_id = ESwpValueJustPublishSwP; // Value of the dummy disk status SwP 00038 resource_id = r_generic_publish_swp; // Command list is constructed using this resource id 00039 }, 00040 00041 SSM_COMMANDLISTID_TO_RESOURCEID 00042 { 00043 command_list_id = ESwpValueForBackup; // Calue of the dummy disk status SwP 00044 resource_id = r_generic_backup;// Command list is constructed using this resource id 00045 } 00046 }; 00047 } 00048 00049 // Command lists 00050 00051 RESOURCE SSM_COMMAND_LIST r_generic_publish_swp 00052 { 00053 commands = 00054 { 00055 r_publish_swp_command // Command to publish the SwP 00056 }; 00057 } 00058 00059 RESOURCE SSM_COMMAND_LIST r_generic_backup 00060 { 00061 commands = 00062 { 00063 r_publish_swp_command, // Command to publish the SwP 00064 r_command_startprocess // Command to start a process 00065 }; 00066 } 00067 00068 RESOURCE SSM_PUBLISH_SYSTEM_WIDE_PROPERTY r_publish_swp_command 00069 { 00070 severity = ECmdCriticalSeverity; // Severity of the SwP 00071 } 00072 00073 RESOURCE SSM_START_PROCESS_INFO r_command_startprocess 00074 { 00075 severity = ECmdCriticalSeverity; // Severity of the process 00076 name = "dummybackup.exe"; 00077 }
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.