|
1 /* |
|
2 * Copyright (c) 2009-2010 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 Non-critical startup state (HW-specific additions). |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <ssm/conditionresourcetypes.rh> |
|
20 #include <ssm/ssmcmd.rh> |
|
21 #include <ssm/startupreason.h> |
|
22 |
|
23 #include "ssmsubstateext.hrh" |
|
24 #include "ssmdlldatadefs.rh" |
|
25 |
|
26 // Identify command list type |
|
27 UID2 KUidSsmCommandListResourceFile |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // r_entry_point |
|
31 // This must be the first resource |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point |
|
35 { |
|
36 command_list_mapping = r_map; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // r_map |
|
41 // Mapping of command list ids to resource ids. |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 RESOURCE SSM_COMMAND_LIST_MAPPING r_map |
|
45 { |
|
46 mappings = |
|
47 { |
|
48 SSM_COMMANDLISTID_TO_RESOURCEID |
|
49 { |
|
50 command_list_id = ESsmStateNonCritical; |
|
51 resource_id = r_cmds; |
|
52 } |
|
53 }; |
|
54 } |
|
55 |
|
56 // =========================================================================== |
|
57 // Command lists in alphabetical order |
|
58 // =========================================================================== |
|
59 // |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // r_cmds |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 RESOURCE SSM_COMMAND_LIST r_cmds |
|
66 { |
|
67 commands = |
|
68 { |
|
69 r_cmd_connlogger, |
|
70 r_cmd_provisioning, |
|
71 #ifndef SYMBIAN_EXCLUDE_SIP |
|
72 r_cmd_sipprofilesrv, |
|
73 #endif // defined !SYMBIAN_EXCLUDE_SIP |
|
74 r_cmd_remotelock, |
|
75 // prio 0x7EF1 |
|
76 r_cmd_activitymonitor1, |
|
77 // prio 0x7EF0 |
|
78 r_cmd_devencstarter |
|
79 // prio 0x7EEB |
|
80 #ifdef FF_MOBILITY_MANAGEMENT_ERRORS |
|
81 ,r_cmd_item_nwnotifier |
|
82 #endif // FF_MOBILITY_MANAGEMENT_ERRORS |
|
83 }; |
|
84 } |
|
85 |
|
86 // =========================================================================== |
|
87 // Command items in alphabetical order |
|
88 // =========================================================================== |
|
89 // |
|
90 |
|
91 // --------------------------------------------------------------------------- |
|
92 // r_cmd_activitymonitor1 |
|
93 // --------------------------------------------------------------------------- |
|
94 // |
|
95 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_activitymonitor1 |
|
96 { |
|
97 priority = 0x7EF1; |
|
98 severity = ECmdCriticalSeverity; |
|
99 execution_behaviour = ESsmWaitForSignal; |
|
100 dllname = "ssmactivitycmd.dll"; |
|
101 ordinal = 1; // SsmActivityCmdNewL |
|
102 retries = 2; |
|
103 dll_data = r_dlldata_activitymonitor_timeout; |
|
104 } |
|
105 |
|
106 |
|
107 // --------------------------------------------------------------------------- |
|
108 // r_cmd_connlogger |
|
109 // --------------------------------------------------------------------------- |
|
110 // |
|
111 RESOURCE SSM_START_PROCESS_INFO r_cmd_connlogger |
|
112 { |
|
113 priority = 0xFFA7; |
|
114 name = "z:\\sys\\bin\\dataconnectionlogger.exe"; |
|
115 execution_behaviour = ESsmFireAndForget; |
|
116 monitor_info = r_mon_3_restarts_ignore; |
|
117 } |
|
118 |
|
119 |
|
120 // --------------------------------------------------------------------------- |
|
121 // r_cmd_devencstarter |
|
122 // --------------------------------------------------------------------------- |
|
123 // |
|
124 RESOURCE SSM_START_APP_INFO r_cmd_devencstarter |
|
125 { |
|
126 priority = 0x7EF0; |
|
127 name = "z:\\sys\\bin\\devencstarter.exe"; |
|
128 execution_behaviour = ESsmWaitForSignal; |
|
129 timeout = 10000; |
|
130 background = 1; // To background |
|
131 } |
|
132 |
|
133 |
|
134 // --------------------------------------------------------------------------- |
|
135 // r_cmd_provisioning |
|
136 // --------------------------------------------------------------------------- |
|
137 // |
|
138 RESOURCE SSM_START_PROCESS_INFO r_cmd_provisioning |
|
139 { |
|
140 priority = 0xFFA7; |
|
141 name = "z:\\sys\\bin\\provisioningsc.exe"; |
|
142 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
143 conditional_information = r_cond_feat_smartcardprov; |
|
144 } |
|
145 |
|
146 // --------------------------------------------------------------------------- |
|
147 // r_cmd_remotelock |
|
148 // --------------------------------------------------------------------------- |
|
149 // |
|
150 RESOURCE SSM_START_PROCESS_INFO r_cmd_remotelock |
|
151 { |
|
152 priority = 0xFFA7; |
|
153 name = "z:\\sys\\bin\\rlock.exe"; |
|
154 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
155 conditional_information = r_cond_feat_remotelock; |
|
156 monitor_info = r_mon_3_restarts_ignore; |
|
157 } |
|
158 |
|
159 // --------------------------------------------------------------------------- |
|
160 // r_cmd_sipprofilesrv |
|
161 // --------------------------------------------------------------------------- |
|
162 // |
|
163 #ifndef SYMBIAN_EXCLUDE_SIP |
|
164 RESOURCE SSM_START_PROCESS_INFO r_cmd_sipprofilesrv |
|
165 { |
|
166 priority = 0xFFA7; |
|
167 name = "z:\\sys\\bin\\sipprofilesrv.exe"; |
|
168 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
169 } |
|
170 #endif // !SYMBIAN_EXCLUDE_SIP |
|
171 |
|
172 |
|
173 #ifdef FF_MOBILITY_MANAGEMENT_ERRORS |
|
174 // --------------------------------------------------------------------------- |
|
175 // r_cmd_item_nwnotifier |
|
176 // Start list item for network notifier |
|
177 // --------------------------------------------------------------------------- |
|
178 // |
|
179 RESOURCE SSM_START_PROCESS_INFO r_cmd_item_nwnotifier |
|
180 { |
|
181 priority = 0x7EEB; |
|
182 name = "z:\\sys\\bin\\nwnotifier.exe"; |
|
183 execution_behaviour = ESsmWaitForSignal; |
|
184 retries = 3; |
|
185 } |
|
186 #endif // FF_MOBILITY_MANAGEMENT_ERRORS |
|
187 |
|
188 |
|
189 // =========================================================================== |
|
190 // Conditional blocks in alphabetical order |
|
191 // =========================================================================== |
|
192 // |
|
193 |
|
194 // --------------------------------------------------------------------------- |
|
195 // r_cond_feat_remotelock |
|
196 // --------------------------------------------------------------------------- |
|
197 // |
|
198 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_remotelock |
|
199 { |
|
200 feature_id = KFeatureIdRemoteLock; |
|
201 } |
|
202 |
|
203 // --------------------------------------------------------------------------- |
|
204 // r_cond_feat_smartcardprov |
|
205 // --------------------------------------------------------------------------- |
|
206 // |
|
207 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_smartcardprov |
|
208 { |
|
209 feature_id = KFeatureIdSmartCardProv; |
|
210 } |
|
211 |
|
212 // --------------------------------------------------------------------------- |
|
213 // r_dlldata_activitymonitor_timeout |
|
214 // --------------------------------------------------------------------------- |
|
215 // |
|
216 RESOURCE CMD_PARAM_TIMEOUT r_dlldata_activitymonitor_timeout |
|
217 { |
|
218 timeout = 2; |
|
219 } |
|
220 |
|
221 // monitoring.rss contains resource definitions, so it may not be included |
|
222 // before entry point. |
|
223 #include "stem_monitoring.rss" |