00001 // 00002 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 00003 // All rights reserved. 00004 // This component and the accompanying materials are made available 00005 // under the terms of "Eclipse Public License v1.0" 00006 // which accompanies this distribution, and is available 00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 // 00009 // Initial Contributors: 00010 // Nokia Corporation - initial contribution. 00011 // 00012 // Contributors: 00013 // 00014 // Description: This is the resource file for the dummy back up policy 00015 // provided with this System State Manager example code. 00016 // 00017 00018 #include <ssm/ssmcmd.rh> 00019 #include <ssm/ssmsubstates.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 upon the substate of the dummy back up state, 00031 // the command list is constructed using this resource file 00032 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping 00033 { 00034 mappings = 00035 { 00036 SSM_COMMANDLISTID_TO_RESOURCEID 00037 { 00038 command_list_id = ESsmBackupSubState; //Substate 00039 resource_id = r_do_publish_backup; // Construct command list using this resource id 00040 } 00041 }; 00042 } 00043 00044 RESOURCE SSM_COMMAND_LIST r_do_publish_backup 00045 { 00046 commands = 00047 { 00048 r_publish_system_state, // This structure hold the contents necessary to construct a command to publish the system state 00049 r_command_start_process // This structure holds the contents to start a process 00050 }; 00051 } 00052 00053 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_publish_system_state 00054 { 00055 severity = ECmdCriticalSeverity; // Severity associated with the state 00056 } 00057 00058 RESOURCE SSM_START_PROCESS_INFO r_command_start_process 00059 { 00060 severity = ECmdCriticalSeverity; // Severity associated with the process 00061 name = "dummybackup.exe"; 00062 }
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.