|
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 list for the Selftest OK startup state. |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <ssm/conditionresourcetypes.rh> |
|
20 #include <ssm/ssmcmd.rh> |
|
21 |
|
22 #include "ssmsubstateext.hrh" |
|
23 #include "ssmdlldatadefs.rh" |
|
24 |
|
25 // Identify command list type |
|
26 UID2 KUidSsmCommandListResourceFile |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // r_entry_point |
|
30 // This must be the first resource |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point |
|
34 { |
|
35 command_list_mapping = r_map; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // r_map |
|
40 // Mapping of command list ids to resource ids. |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 RESOURCE SSM_COMMAND_LIST_MAPPING r_map |
|
44 { |
|
45 mappings = |
|
46 { |
|
47 SSM_COMMANDLISTID_TO_RESOURCEID |
|
48 { |
|
49 command_list_id = ESsmStateSelfTestOK; |
|
50 resource_id = r_cmds; |
|
51 } |
|
52 }; |
|
53 } |
|
54 |
|
55 // =========================================================================== |
|
56 // Command lists in alphabetical order |
|
57 // =========================================================================== |
|
58 // |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // r_cmds |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 RESOURCE SSM_COMMAND_LIST r_cmds |
|
65 { |
|
66 commands = |
|
67 { |
|
68 r_cmd_sastate, // This needs to be the first command in state, prio 0xFFF2 |
|
69 r_cmd_publishstate, // prio 0xFFF1 |
|
70 r_cmd_psstate // prio 0xFFF0 |
|
71 }; |
|
72 } |
|
73 |
|
74 // =========================================================================== |
|
75 // Command items in alphabetical order |
|
76 // =========================================================================== |
|
77 // |
|
78 |
|
79 // --------------------------------------------------------------------------- |
|
80 // r_cmd_psstate |
|
81 // --------------------------------------------------------------------------- |
|
82 // |
|
83 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate |
|
84 { |
|
85 priority = 0xFFF0; |
|
86 severity = ECmdCriticalSeverity; |
|
87 category = 0x101F8766; // KPSUidStartup |
|
88 key = 0x00000041; // KPSGlobalSystemState |
|
89 value = 102; // ESwStateSelfTestOK |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------------------------- |
|
93 // r_cmd_publishstate |
|
94 // --------------------------------------------------------------------------- |
|
95 // |
|
96 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate |
|
97 { |
|
98 priority = 0xFFF1; |
|
99 severity = ECmdCriticalSeverity; |
|
100 retries = 2; |
|
101 } |
|
102 |
|
103 // --------------------------------------------------------------------------- |
|
104 // r_cmd_sastate |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate |
|
108 { |
|
109 priority = 0xFFF2; |
|
110 severity = ECmdCriticalSeverity; |
|
111 dllname = "customcmds.dll"; |
|
112 ordinal = 8; |
|
113 unload_on_finish = ENeverUnload; |
|
114 retries = 2; |
|
115 dll_data = r_dlldata_sastate; |
|
116 } |
|
117 |
|
118 // =========================================================================== |
|
119 // DLL data items in alphabetical order |
|
120 // =========================================================================== |
|
121 // |
|
122 |
|
123 // --------------------------------------------------------------------------- |
|
124 // r_dlldata_sastate |
|
125 // --------------------------------------------------------------------------- |
|
126 // |
|
127 RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate |
|
128 { |
|
129 mainstate = 0; // ESsmStartup |
|
130 substate = ESsmStateSelfTestOK; |
|
131 } |