26 #include <W32STD.H> |
26 #include <W32STD.H> |
27 #include <coedef.h> |
27 #include <coedef.h> |
28 #include <e32property.h> |
28 #include <e32property.h> |
29 #include <sysapcallback.h> |
29 #include <sysapcallback.h> |
30 #include <starterclient.h> |
30 #include <starterclient.h> |
|
31 #include <rmmcustomapi.h> |
|
32 |
|
33 |
31 #include "SysApTimer.h" |
34 #include "SysApTimer.h" |
32 #include "SysApLightsController.h" |
35 #include "SysApLightsController.h" |
33 #include "coreapplicationuisprivatecrkeys.h" |
36 #include "coreapplicationuisprivatecrkeys.h" |
34 #include "sysapusbchargerdetector.h" |
37 #include "sysapusbchargerdetector.h" |
35 #include "SysApAccessoryObserver.h" |
38 #include "SysApAccessoryObserver.h" |
36 #include <hbsymbianvariant.h> |
39 #include <hbsymbianvariant.h> |
|
40 #include <hbindicatorsymbian.h> |
37 //For Powermenu--CHbDevicePowerMenuSymbian |
41 //For Powermenu--CHbDevicePowerMenuSymbian |
38 #include "hbdevicepowermenusymbian.h" |
42 #include "hbdevicepowermenusymbian.h" |
39 |
43 |
40 #include "sysappsmcontroller.h" |
44 #include "sysappsmcontroller.h" |
41 |
45 |
76 class MSysApBtSapController; |
80 class MSysApBtSapController; |
77 class MSysApBtController; |
81 class MSysApBtController; |
78 class CSysApCenRepLogsObserver; |
82 class CSysApCenRepLogsObserver; |
79 class MSysApUsbIndicator; |
83 class MSysApUsbIndicator; |
80 class CKeyguardAccessApi; |
84 class CKeyguardAccessApi; |
81 |
85 class CHbIndicatorSymbian; |
|
86 class CSysApShutdownAnimation; |
|
87 |
|
88 class CSysApDefaultKeyHandler; |
|
89 class CSysApEtelConnector; |
82 |
90 |
83 const TInt KBluetoothModulePowerModeOn ( 1 ); |
91 const TInt KBluetoothModulePowerModeOn ( 1 ); |
84 const TInt KDummyReason( -1 ); |
92 const TInt KDummyReason( -1 ); |
85 |
93 |
86 //class HbMessageBox; |
94 //class HbMessageBox; |
202 * @param TKeyEvent& aKeyEvent |
220 * @param TKeyEvent& aKeyEvent |
203 * @param TEventCode aType |
221 * @param TEventCode aType |
204 * @return TKeyResponse |
222 * @return TKeyResponse |
205 */ |
223 */ |
206 TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
224 TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
225 void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent); |
207 |
226 |
208 public: |
227 public: |
209 // void CallFromMain(); |
228 // void CallFromMain(); |
210 |
229 |
211 /** |
230 /** |
265 void DoShutdownL( const TBool aReset, const TInt aResetReason ); |
284 void DoShutdownL( const TBool aReset, const TInt aResetReason ); |
266 TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; |
285 TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; |
267 void SetUsbAttachStatus( const TBool aUsbAttached ); |
286 void SetUsbAttachStatus( const TBool aUsbAttached ); |
268 TSysApUsbChargerDetector& UsbChargerDetector(); |
287 TSysApUsbChargerDetector& UsbChargerDetector(); |
269 |
288 |
270 void HandleAccessoryConnectedL( TAccMode aAccessoryState ); |
289 void HandleAccessoryConnectedL( TAccMode aAccessoryState, TInt aPhysicalConnectionType ); |
271 |
290 |
272 void HandleAccessoryDisconnectedL(); |
291 void HandleAccessoryDisconnectedL(); |
273 void DoLightsTimeoutChangedL( const TInt aTimeout ); |
292 void DoLightsTimeoutChangedL( const TInt aTimeout ); |
274 void SetHacIndicatorL(); |
293 void SetHacIndicatorL(); |
275 void DoNotActivateBt(); |
294 void DoNotActivateBt(); |
307 void SetLightsOnUnlockNoteL(); |
326 void SetLightsOnUnlockNoteL(); |
308 void SetLightsOnEcsQueryL(); |
327 void SetLightsOnEcsQueryL(); |
309 void SetLightsOnSecurityQueryL(); |
328 void SetLightsOnSecurityQueryL(); |
310 TBool CheckLongPowerKeyPressed(); |
329 TBool CheckLongPowerKeyPressed(); |
311 TBool ReleasePowerMenuCustomDialogMemory(); |
330 TBool ReleasePowerMenuCustomDialogMemory(); |
|
331 // TBool ReleaseMemoryCardCustomDialogMemory(); |
|
332 static TInt DoStopAnimTiming( TAny* aObject ); |
|
333 CEikStatusPane* StatusPane(); |
312 |
334 |
313 #ifdef SYSAP_USE_STARTUP_UI_PHASE |
335 #ifdef SYSAP_USE_STARTUP_UI_PHASE |
314 /** |
336 /** |
315 * Called when UI is ready after boot. |
337 * Called when UI is ready after boot. |
316 */ |
338 */ |
317 void HandleUiReadyAfterBootL(); |
339 void HandleUiReadyAfterBootL(); |
318 |
340 |
319 #endif // SYSAP_USE_STARTUP_UI_PHASE |
341 #endif // SYSAP_USE_STARTUP_UI_PHASE |
320 |
342 |
321 |
343 |
|
344 |
|
345 void HandleNspsRawKeyEventL(); |
|
346 |
|
347 void HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ); |
|
348 |
|
349 void HandleRawKeyEventLightsRequireL() const; |
|
350 |
|
351 void HandleSmsStorageNotificationL( TBool aSimStoreFull ); |
|
352 |
|
353 void UpdateSignalBarsL(); |
|
354 |
|
355 |
|
356 |
322 private: |
357 private: |
323 /** |
358 /** |
324 * Frees SysAp's reserved memory, closes connections to servers etc. |
359 * Frees SysAp's reserved memory, closes connections to servers etc. |
325 * @param None |
360 * @param None |
326 * @return void |
361 * @return void |
343 void HandleUsbCharger( const TInt aValue ); |
378 void HandleUsbCharger( const TInt aValue ); |
344 TBool IsStateNormal() const; |
379 TBool IsStateNormal() const; |
345 void HandleAccessoryProfileInStartupL( ); |
380 void HandleAccessoryProfileInStartupL( ); |
346 |
381 |
347 CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL(); |
382 CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL(); |
|
383 void ContinueShutdown(); |
348 |
384 |
349 |
385 |
350 private: |
386 private: |
351 // CSysApWsClient* iSysApWsClient; |
387 // CSysApWsClient* iSysApWsClient; |
352 CSysApLightsController* iSysApLightsController; |
388 CSysApLightsController* iSysApLightsController; |
360 MSysApOfflineModeController* iSysApOfflineModeController; |
396 MSysApOfflineModeController* iSysApOfflineModeController; |
361 RStarterSession iStarterSession; |
397 RStarterSession iStarterSession; |
362 TSysApUsbChargerDetector iSysApUsbChargerDetector; |
398 TSysApUsbChargerDetector iSysApUsbChargerDetector; |
363 CSysApAccessoryObserver* iSysApAccessoryObserver; |
399 CSysApAccessoryObserver* iSysApAccessoryObserver; |
364 CSysApShutdownImage* iSysApShutdownImage; |
400 CSysApShutdownImage* iSysApShutdownImage; |
|
401 CSysApShutdownAnimation* iSysApShutdownAnimation; |
365 CSysApKeySndHandler* iSysApKeySndHandler; |
402 CSysApKeySndHandler* iSysApKeySndHandler; |
366 CSysApCenRepController* iSysApCenRepController; |
403 CSysApCenRepController* iSysApCenRepController; |
367 CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; |
404 CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; |
368 CSysApCenRepBtObserver* iSysApCenRepBtObserver; |
405 CSysApCenRepBtObserver* iSysApCenRepBtObserver; |
369 CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; |
406 CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; |
381 CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; |
418 CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; |
382 MSysApUsbIndicator* iSysApUsbIndicatorController; |
419 MSysApUsbIndicator* iSysApUsbIndicatorController; |
383 CKeyguardAccessApi* iKeyguardController; |
420 CKeyguardAccessApi* iKeyguardController; |
384 CHbDevicePowerMenuSymbian* iPowerMenuDialog; |
421 CHbDevicePowerMenuSymbian* iPowerMenuDialog; |
385 CSysApKeyManagement* iSysApKeyManagement; |
422 CSysApKeyManagement* iSysApKeyManagement; |
|
423 |
|
424 CSysApEtelConnector* iSysApEtelConnector; |
386 |
425 |
387 // CSysApDriveList* iSysApDriveList; |
426 public: |
|
427 CHbIndicatorSymbian* iHbIndicatorSymbian; |
|
428 |
388 |
429 |
389 private: |
430 private: |
390 TBool iPowerKeyPopupMenuActive; |
431 TBool iPowerKeyPopupMenuActive; |
391 TBool iDeviceLockEnabled; |
432 TBool iDeviceLockEnabled; |
392 TBool iKeyLockEnabled; |
433 TBool iKeyLockEnabled; |