|
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 Locod component |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <ssm/conditionresourcetypes.rh> |
|
20 #include <ssm/ssmcmd.rh> |
|
21 |
|
22 #include "ssmsubstateext.hrh" |
|
23 |
|
24 // Identify command list type |
|
25 UID2 KUidSsmCommandListResourceFile |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // r_entry_point |
|
29 // This must be the first resource |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point |
|
33 { |
|
34 command_list_mapping = r_map; |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // r_map |
|
39 // Mapping of command list ids to resource ids. |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 RESOURCE SSM_COMMAND_LIST_MAPPING r_map |
|
43 { |
|
44 mappings = |
|
45 { |
|
46 SSM_COMMANDLISTID_TO_RESOURCEID |
|
47 { |
|
48 command_list_id = ESsmStateCharging; |
|
49 resource_id = r_cmds_charging; |
|
50 }, |
|
51 SSM_COMMANDLISTID_TO_RESOURCEID |
|
52 { |
|
53 command_list_id = ESsmStateNonCritical; |
|
54 resource_id = r_cmds_noncritical; |
|
55 } |
|
56 }; |
|
57 } |
|
58 |
|
59 // =========================================================================== |
|
60 // Command lists in alphabetical order |
|
61 // =========================================================================== |
|
62 // |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // r_cmds_noncritical |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 RESOURCE SSM_COMMAND_LIST r_cmds_noncritical |
|
69 { |
|
70 commands = |
|
71 { |
|
72 r_cmd_connlogger, |
|
73 r_cmd_provisioning, |
|
74 #ifndef SYMBIAN_EXCLUDE_SIP |
|
75 r_cmd_sipprofilesrv, |
|
76 #endif // defined !SYMBIAN_EXCLUDE_SIP |
|
77 r_cmd_remotelock, |
|
78 r_cmd_hotspotsrv |
|
79 }; |
|
80 } |
|
81 |
|
82 // =========================================================================== |
|
83 // Command items in alphabetical order |
|
84 // =========================================================================== |
|
85 // |
|
86 |
|
87 // --------------------------------------------------------------------------- |
|
88 // r_cmd_connlogger |
|
89 // --------------------------------------------------------------------------- |
|
90 // |
|
91 RESOURCE SSM_START_PROCESS_INFO r_cmd_connlogger |
|
92 { |
|
93 priority = 0xFFA7; |
|
94 name = "z:\\sys\\bin\\dataconnectionlogger.exe"; |
|
95 execution_behaviour = ESsmFireAndForget; |
|
96 monitor_info = r_mon_3_restarts_ignore; |
|
97 } |
|
98 |
|
99 |
|
100 // --------------------------------------------------------------------------- |
|
101 // r_cmd_hotspotsrv |
|
102 // --------------------------------------------------------------------------- |
|
103 // |
|
104 RESOURCE SSM_START_PROCESS_INFO r_cmd_hotspotsrv |
|
105 { |
|
106 priority = 0xFFA7; |
|
107 name = "hotspotserver.exe"; |
|
108 execution_behaviour = ESsmWaitForSignal; |
|
109 timeout = 10000; |
|
110 conditional_information = r_cond_protwlan_and_firstboot_or_deeprfs_or_normalrfs; |
|
111 } |
|
112 |
|
113 // --------------------------------------------------------------------------- |
|
114 // r_cmd_provisioning |
|
115 // --------------------------------------------------------------------------- |
|
116 // |
|
117 RESOURCE SSM_START_PROCESS_INFO r_cmd_provisioning |
|
118 { |
|
119 priority = 0xFFA7; |
|
120 name = "z:\\sys\\bin\\provisioningsc.exe"; |
|
121 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
122 conditional_information = r_cond_feat_smartcardprov; |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------------------------- |
|
126 // r_cmd_remotelock |
|
127 // --------------------------------------------------------------------------- |
|
128 // |
|
129 RESOURCE SSM_START_PROCESS_INFO r_cmd_remotelock |
|
130 { |
|
131 priority = 0xFFA7; |
|
132 name = "z:\\sys\\bin\\rlock.exe"; |
|
133 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
134 conditional_information = r_cond_feat_remotelock; |
|
135 monitor_info = r_mon_3_restarts_ignore; |
|
136 } |
|
137 |
|
138 // --------------------------------------------------------------------------- |
|
139 // r_cmd_sipprofilesrv |
|
140 // --------------------------------------------------------------------------- |
|
141 // |
|
142 #ifndef SYMBIAN_EXCLUDE_SIP |
|
143 RESOURCE SSM_START_PROCESS_INFO r_cmd_sipprofilesrv |
|
144 { |
|
145 priority = 0xFFA7; |
|
146 name = "z:\\sys\\bin\\sipprofilesrv.exe"; |
|
147 execution_behaviour = ESsmFireAndForget; // -- does not call Rendezvous() -- |
|
148 } |
|
149 #endif // !SYMBIAN_EXCLUDE_SIP |
|
150 |
|
151 // =========================================================================== |
|
152 // Conditional blocks in alphabetical order |
|
153 // =========================================================================== |
|
154 // |
|
155 |
|
156 // --------------------------------------------------------------------------- |
|
157 // r_cond_ps_firstboot |
|
158 // --------------------------------------------------------------------------- |
|
159 // |
|
160 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_firstboot |
|
161 { |
|
162 category = 0x101F8766; // KPSUidStartup |
|
163 key = 0x00000013; // KPSStartupFirstBoot |
|
164 value = 101; // EPSStartupFirstBoot |
|
165 } |
|
166 |
|
167 // --------------------------------------------------------------------------- |
|
168 // r_cond_feat_protocolwlan |
|
169 // --------------------------------------------------------------------------- |
|
170 // |
|
171 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_protocolwlan |
|
172 { |
|
173 feature_id = KFeatureIdProtocolWlan; |
|
174 } |
|
175 |
|
176 // --------------------------------------------------------------------------- |
|
177 // r_cond_feat_remotelock |
|
178 // --------------------------------------------------------------------------- |
|
179 // |
|
180 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_remotelock |
|
181 { |
|
182 feature_id = KFeatureIdRemoteLock; |
|
183 } |
|
184 |
|
185 // --------------------------------------------------------------------------- |
|
186 // r_cond_feat_smartcardprov |
|
187 // --------------------------------------------------------------------------- |
|
188 // |
|
189 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_smartcardprov |
|
190 { |
|
191 feature_id = KFeatureIdSmartCardProv; |
|
192 } |
|
193 |
|
194 // --------------------------------------------------------------------------- |
|
195 // r_cond_firstboot_or_deeprfs |
|
196 // --------------------------------------------------------------------------- |
|
197 // |
|
198 RESOURCE SSM_CND_LOGICAL_OR r_cond_firstboot_or_deeprfs |
|
199 { |
|
200 lhs = r_cond_ps_deep_rfs; |
|
201 rhs = r_cond_ps_firstboot; |
|
202 } |
|
203 |
|
204 // --------------------------------------------------------------------------- |
|
205 // r_cond_firstboot_or_deeprfs_or_normalrfs |
|
206 // --------------------------------------------------------------------------- |
|
207 // |
|
208 RESOURCE SSM_CND_LOGICAL_OR r_cond_firstboot_or_deeprfs_or_normalrfs |
|
209 { |
|
210 lhs = r_cond_ps_normal_rfs; |
|
211 rhs = r_cond_firstboot_or_deeprfs; |
|
212 } |
|
213 |
|
214 // --------------------------------------------------------------------------- |
|
215 // r_cond_ps_normal_rfs |
|
216 // --------------------------------------------------------------------------- |
|
217 // |
|
218 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_normal_rfs |
|
219 { |
|
220 category = 0x101F8766; // KPSUidStartup |
|
221 key = 0x00000045; // KPSStartupReason |
|
222 value = ENormalRFSReset; |
|
223 } |
|
224 |
|
225 // --------------------------------------------------------------------------- |
|
226 // r_cond_ps_deep_rfs |
|
227 // --------------------------------------------------------------------------- |
|
228 // |
|
229 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_deep_rfs |
|
230 { |
|
231 category = 0x101F8766; // KPSUidStartup |
|
232 key = 0x00000045; // KPSStartupReason |
|
233 value = EDeepRFSReset; |
|
234 } |
|
235 |
|
236 // --------------------------------------------------------------------------- |
|
237 // r_cond_protwlan_and_firstboot_or_deeprfs_or_normalrfs |
|
238 // ( protocol WLAN ) AND ( first boot OR deep RFS OR normal RFS ) |
|
239 // --------------------------------------------------------------------------- |
|
240 // |
|
241 RESOURCE SSM_CND_LOGICAL_AND r_cond_protwlan_and_firstboot_or_deeprfs_or_normalrfs |
|
242 { |
|
243 lhs = r_cond_feat_protocolwlan; |
|
244 rhs = r_cond_firstboot_or_deeprfs_or_normalrfs; |
|
245 } |
|
246 |
|
247 // monitoring.rss contains resource definitions, so it may not be included |
|
248 // before entry point. |
|
249 #include "stem_monitoring.rss" |