equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 // |
18 // |
19 |
19 |
20 |
20 |
21 #include <ssm/ssmcmd.rh> |
21 #include <ssm/ssmcmd.rh> |
22 #include <ssm/ssmsubstates.hrh> |
22 #include <ssm/ssmsubstates.hrh> |
23 #include <ssm/cmdpersistreboots.rh> |
|
24 #include <ssm/cmdpersistreboots.hrh> |
|
25 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
23 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
26 #include <ssm/ssmcmdconditions.rh> |
24 #include <ssm/ssmcmdconditions.rh> |
27 #endif |
25 #endif |
28 |
26 |
29 UID2 KUidSsmCommandListResourceFile |
27 UID2 KUidSsmCommandListResourceFile |
65 |
63 |
66 RESOURCE SSM_COMMAND_LIST r_critical_static_commands |
64 RESOURCE SSM_COMMAND_LIST r_critical_static_commands |
67 { |
65 { |
68 commands = |
66 commands = |
69 { |
67 { |
70 r_increment_boot_count |
68 r_command_publish_system_state |
71 , r_command_publish_system_state |
|
72 , r_command_ssmutilsrv |
69 , r_command_ssmutilsrv |
73 , r_command_sysmon |
70 , r_command_sysmon |
74 , r_command_sysagt2svr |
71 , r_command_sysagt2svr |
75 , r_command_fbserv |
72 , r_command_fbserv |
76 , r_command_wserv |
73 , r_command_wserv |
77 , r_command_set_splash_property |
74 , r_command_set_splash_property |
78 , r_command_start_splash |
75 , r_command_start_splash |
79 , r_command_eiksrvs |
76 , r_command_eiksrvs |
80 , r_command_tzserver |
77 , r_command_tzserver |
81 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
|
82 , r_shutdown_event_observer |
|
83 #endif |
|
84 |
|
85 }; |
78 }; |
86 } |
79 } |
87 |
80 |
88 RESOURCE SSM_COMMAND_LIST r_critical_dynamic_commands |
81 RESOURCE SSM_COMMAND_LIST r_critical_dynamic_commands |
89 { |
82 { |
191 severity = ECmdCriticalSeverity; |
184 severity = ECmdCriticalSeverity; |
192 name = "tzserver.exe"; |
185 name = "tzserver.exe"; |
193 execution_behaviour = ESsmWaitForSignal; |
186 execution_behaviour = ESsmWaitForSignal; |
194 } |
187 } |
195 |
188 |
196 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
|
197 RESOURCE SSM_CHK_ROMPATCHCONST_GRACEFUL_SHUTDOWN r_cnd_rompatchableconstant |
|
198 { |
|
199 //Condition data is empty as startup policy already has the condition information for graceful shutdown. |
|
200 //Empty condition is given to force SSM to evaluate condition at runtime. |
|
201 } |
|
202 |
|
203 RESOURCE SSM_START_SSM_UTILITY_PLUGIN r_shutdown_event_observer |
|
204 { |
|
205 conditional_information = r_cnd_rompatchableconstant; |
|
206 severity = ECmdCriticalSeverity; |
|
207 filename = "lafshutdowneventobserveradaptor.dll"; |
|
208 ordinal = 1; |
|
209 } |
|
210 #endif |
|
211 |
|
212 RESOURCE SSM_START_PROCESS_INFO r_command_initialise_locale |
189 RESOURCE SSM_START_PROCESS_INFO r_command_initialise_locale |
213 { |
190 { |
214 name = "initialiselocale.exe"; |
191 name = "initialiselocale.exe"; |
215 execution_behaviour = ESsmWaitForSignal; |
192 execution_behaviour = ESsmWaitForSignal; |
216 } |
193 } |
305 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_system_state |
282 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_system_state |
306 { |
283 { |
307 severity = ECmdCriticalSeverity; |
284 severity = ECmdCriticalSeverity; |
308 } |
285 } |
309 |
286 |
310 RESOURCE SSM_START_CUSTOM_COMMAND r_increment_boot_count |
|
311 { |
|
312 severity = ECmdCriticalSeverity; |
|
313 execution_behaviour = ESsmWaitForSignal; |
|
314 dllname = "cmncustomcmds.dll"; |
|
315 ordinal = 1; // Persist reboots custom command is at ordinal 1 |
|
316 dll_data = r_increment; |
|
317 } |
|
318 |
|
319 RESOURCE SSM_COMMAND_PERSIST_REBOOTS r_increment |
|
320 { |
|
321 val = EIncrementBootCount; |
|
322 } |
|
323 |
|
324 RESOURCE SSM_START_APP_INFO r_command_eshell |
287 RESOURCE SSM_START_APP_INFO r_command_eshell |
325 { |
288 { |
326 severity = ECmdCriticalSeverity; |
289 severity = ECmdCriticalSeverity; |
327 name = "eshell.exe"; |
290 name = "eshell.exe"; |
328 viewless = 1; |
291 viewless = 1; |