18 |
18 |
19 // INCLUDES |
19 // INCLUDES |
20 #include <e32property.h> |
20 #include <e32property.h> |
21 #include <sacls.h> |
21 #include <sacls.h> |
22 #include <startupdomainpskeys.h> |
22 #include <startupdomainpskeys.h> |
23 #include "coreapplicationuisprivatepskeys.h" |
23 #include "CoreApplicationUIsPrivatePSKeys.h" |
24 #include <ctsydomainpskeys.h> |
24 #include <ctsydomainpskeys.h> |
25 #include <wlaninternalpskeys.h> |
25 #include <wlaninternalpskeys.h> |
26 #include <connect/sbdefs.h> |
26 #include <connect/sbdefs.h> |
27 #include <hwrmpowerstatesdkpskeys.h> |
27 #include <hwrmpowerstatesdkpskeys.h> |
28 #include "SysApPubSubObserver.h" |
28 #include "SysApPubSubObserver.h" |
29 #include "SysApSubscriber.h" |
29 #include "SysApSubscriber.h" |
30 #include "SysApAppUi.h" |
30 #include "SysApAppUi.h" |
31 #include "SysApFeatureManager.h" |
31 #include "SysApFeatureManager.h" |
32 #include <ir_sock.h> |
32 #include <ir_sock.h> |
33 #include <networkhandlingdomainpskeys.h> |
33 #include <NetworkHandlingDomainPSKeys.h> |
34 #include <hwrmdomainpskeys.h> |
34 #include <hwrmdomainpskeys.h> |
35 #include <DataSyncInternalPSKeys.h> |
35 #include <DataSyncInternalPSKeys.h> |
36 //#include <hwrmfmtxdomainpskeys.h> |
36 #include <hwrmfmtxdomainpskeys.h> |
37 //#include <hwrmfmtx.h> |
37 #include <hwrmfmtx.h> |
38 #include "sysapremconobserver.h" |
38 #include "sysapremconobserver.h" |
39 #include <lbs/locationfwdomainpskeys.h> |
39 #include <lbs/locationfwdomainpskeys.h> |
40 #include <smsuaddr.h> |
40 #include <smsuaddr.h> |
41 #include <avkondomainpskeys.h> |
|
42 |
41 |
43 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
42 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
44 #include <ASShdAlarm.h> |
43 #include <ASShdAlarm.h> |
45 #else |
44 #else |
46 #include <asshddefs.h> |
45 #include <asshddefs.h> |
47 #include <ASShdAlarmCal.h> |
46 #include <ASShdAlarmCal.h> |
48 #include <asshdalarm.h> |
47 #include <asshdalarm.h> |
49 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
48 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
50 |
49 |
|
50 |
51 // CONSTANTS |
51 // CONSTANTS |
52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF; |
52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF; |
53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16; |
53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16; |
54 |
|
55 _LIT(KGpsIndicatorPlugin, "com.nokia.positioning.indicatorplugin/1.0"); |
|
56 const TUid KPSUidSecurityUIs = { 0x100059b5 }; |
|
57 const TUint32 KSecurityUIsLights = 0x00000308; |
|
58 |
54 |
59 // ============================ MEMBER FUNCTIONS ============================== |
55 // ============================ MEMBER FUNCTIONS ============================== |
60 |
56 |
61 // ---------------------------------------------------------------------------- |
57 // ---------------------------------------------------------------------------- |
62 // CSysApPubSubObserver::NewL() |
58 // CSysApPubSubObserver::NewL() |
95 iInboxStatusSubscriber->Subscribe(); |
91 iInboxStatusSubscriber->Subscribe(); |
96 iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); |
92 iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); |
97 iOutboxStatusSubscriber->Subscribe(); |
93 iOutboxStatusSubscriber->Subscribe(); |
98 iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus ); |
94 iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus ); |
99 iIrdaStatusSubscriber->Subscribe(); |
95 iIrdaStatusSubscriber->Subscribe(); |
100 // iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); |
96 iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); |
101 // iGprsStatusSubscriber->Subscribe(); |
97 iGprsStatusSubscriber->Subscribe(); |
102 // iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); |
98 iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); |
103 // iWcdmaStatusSubscriber->Subscribe(); |
99 iWcdmaStatusSubscriber->Subscribe(); |
104 iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue ); |
100 iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue ); |
105 iLocationGlobalPrivacySubscriber->Subscribe(); |
101 iLocationGlobalPrivacySubscriber->Subscribe(); |
106 iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey ); |
102 iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey ); |
107 iRestoreBackupSubscriber->Subscribe(); |
103 iRestoreBackupSubscriber->Subscribe(); |
108 |
104 |
168 |
164 |
169 // Category KPSUidHWRM |
165 // Category KPSUidHWRM |
170 iFlipStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRM, KHWRMFlipStatus ); |
166 iFlipStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRM, KHWRMFlipStatus ); |
171 iFlipStatusSubscriber->Subscribe(); |
167 iFlipStatusSubscriber->Subscribe(); |
172 |
168 |
173 /* if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() ) |
169 if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() ) |
174 { |
170 { |
175 // Category KHWRMFmTxStatus |
171 // Category KHWRMFmTxStatus |
176 iFmTxStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRMFmTx, KHWRMFmTxStatus ); |
172 iFmTxStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRMFmTx, KHWRMFmTxStatus ); |
177 iFmTxStatusSubscriber->Subscribe(); |
173 iFmTxStatusSubscriber->Subscribe(); |
178 iPreviousFmTxPSValue = EFmTxStateUnknown; |
174 iPreviousFmTxPSValue = EFmTxStateUnknown; |
179 } |
175 } |
180 */ |
176 |
181 iSyncStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidDataSynchronizationInternalKeys, KDataSyncStatus ); |
177 iSyncStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidDataSynchronizationInternalKeys, KDataSyncStatus ); |
182 iSyncStatusSubscriber->Subscribe(); |
178 iSyncStatusSubscriber->Subscribe(); |
183 |
179 |
184 iVideoSharingIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator ); |
180 iVideoSharingIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator ); |
185 iVideoSharingIndicatorSubscriber->Subscribe(); |
181 iVideoSharingIndicatorSubscriber->Subscribe(); |
187 iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus ); |
183 iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus ); |
188 iGpsIndicatorSubscriber->Subscribe(); |
184 iGpsIndicatorSubscriber->Subscribe(); |
189 |
185 |
190 iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ); |
186 iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ); |
191 iSmsPhoneStoreSubscriber->Subscribe(); |
187 iSmsPhoneStoreSubscriber->Subscribe(); |
192 |
|
193 iKeylockEventSubscriber = CSysApSubscriber::NewL( *this, KPSUidAvkonDomain, KAknKeyguardStatus ); |
|
194 iKeylockEventSubscriber->Subscribe(); |
|
195 |
|
196 iLightsOnRequestSubscriber = CSysApSubscriber::NewL( *this, KPSUidSecurityUIs, KSecurityUIsLights ); |
|
197 iLightsOnRequestSubscriber->Subscribe(); |
|
198 |
|
199 iPowerMenuCustomDialogSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus ); |
|
200 iPowerMenuCustomDialogSubscriber->Subscribe(); |
|
201 } |
188 } |
202 |
189 |
203 // ---------------------------------------------------------------------------- |
190 // ---------------------------------------------------------------------------- |
204 // CSysApPubSubObserver::~CSysApPubSubObserver() |
191 // CSysApPubSubObserver::~CSysApPubSubObserver() |
205 // ---------------------------------------------------------------------------- |
192 // ---------------------------------------------------------------------------- |
213 delete iChargerCStatusSubscriber; |
200 delete iChargerCStatusSubscriber; |
214 delete iCallInfoSubscriber; |
201 delete iCallInfoSubscriber; |
215 delete iInboxStatusSubscriber; |
202 delete iInboxStatusSubscriber; |
216 delete iOutboxStatusSubscriber; |
203 delete iOutboxStatusSubscriber; |
217 delete iIrdaStatusSubscriber; |
204 delete iIrdaStatusSubscriber; |
218 // delete iGprsStatusSubscriber; |
205 delete iGprsStatusSubscriber; |
219 // delete iWcdmaStatusSubscriber; |
206 delete iWcdmaStatusSubscriber; |
220 delete iHomeZoneStatusSubscriber; |
207 delete iHomeZoneStatusSubscriber; |
221 delete iNewEmailStatusSubscriber; |
208 delete iNewEmailStatusSubscriber; |
222 delete iLocationGlobalPrivacySubscriber; |
209 delete iLocationGlobalPrivacySubscriber; |
223 delete iRestoreBackupSubscriber; |
210 delete iRestoreBackupSubscriber; |
224 delete iPoCIndicatorSubscriber; |
211 delete iPoCIndicatorSubscriber; |
241 delete iLightsRawKeyEventSubscriber; |
228 delete iLightsRawKeyEventSubscriber; |
242 delete iMmcRemovedWithoutEjectSubscriber; |
229 delete iMmcRemovedWithoutEjectSubscriber; |
243 delete iNetworkModeSubscriber; |
230 delete iNetworkModeSubscriber; |
244 delete iWlanIndicatorSubscriber; |
231 delete iWlanIndicatorSubscriber; |
245 delete iFlipStatusSubscriber; |
232 delete iFlipStatusSubscriber; |
246 // delete iFmTxStatusSubscriber; |
233 delete iFmTxStatusSubscriber; |
247 // delete iFmTxRemConObserver; |
234 delete iFmTxRemConObserver; |
248 delete iSyncStatusSubscriber; |
235 delete iSyncStatusSubscriber; |
249 delete iVideoSharingIndicatorSubscriber; |
236 delete iVideoSharingIndicatorSubscriber; |
250 delete iGpsIndicatorSubscriber; |
237 delete iGpsIndicatorSubscriber; |
251 delete iSmsPhoneStoreSubscriber; |
238 delete iSmsPhoneStoreSubscriber; |
252 delete iKeylockEventSubscriber; |
|
253 delete iLightsOnRequestSubscriber; |
|
254 delete iPowerMenuCustomDialogSubscriber; |
|
255 } |
239 } |
256 |
240 |
257 |
241 |
258 // ---------------------------------------------------------------------------- |
242 // ---------------------------------------------------------------------------- |
259 // CSysApPubSubObserver::HandlePropertyChangedL() |
243 // CSysApPubSubObserver::HandlePropertyChangedL() |
384 } |
359 } |
385 break; |
360 break; |
386 case KCoreAppUIsUipInd: |
361 case KCoreAppUIsUipInd: |
387 if ( aValue == ECoreAppUIsDoNotShow ) |
362 if ( aValue == ECoreAppUIsDoNotShow ) |
388 { |
363 { |
389 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); |
364 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); |
390 } |
365 } |
391 else if ( aValue == ECoreAppUIsShow ) |
366 else if ( aValue == ECoreAppUIsShow ) |
392 { |
367 { |
393 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); |
368 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); |
394 } |
369 } |
395 break; |
370 break; |
396 case KCoreAppUIsMessageToneQuit: |
371 case KCoreAppUIsMessageToneQuit: |
397 // iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); |
372 iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); |
398 break; |
373 break; |
399 case KCoreAppUIsNspsRawKeyEvent: |
374 case KCoreAppUIsNspsRawKeyEvent: |
400 iSysApAppUi.HandleNspsRawKeyEventL(); |
375 iSysApAppUi.HandleNspsRawKeyEventL(); |
401 break; |
376 break; |
402 case KCoreAppUIsLightsRawKeyEvent: |
377 case KCoreAppUIsLightsRawKeyEvent: |
446 break; |
421 break; |
447 |
422 |
448 case KCoreAppUIsPoCIndicator: |
423 case KCoreAppUIsPoCIndicator: |
449 if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized ) |
424 if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized ) |
450 { |
425 { |
451 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
426 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
452 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
427 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
453 } |
428 } |
454 else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb ) |
429 else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb ) |
455 { |
430 { |
456 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
431 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
457 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); |
432 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); |
458 } |
433 } |
459 else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn ) |
434 else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn ) |
460 { |
435 { |
461 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); |
436 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); |
462 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
437 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
463 } |
438 } |
464 break; |
439 break; |
465 case KCoreAppUIsPoCMissedIndicator: |
440 case KCoreAppUIsPoCMissedIndicator: |
466 if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized ) |
441 if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized ) |
467 { |
442 { |
468 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); |
443 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); |
469 } |
444 } |
470 else if ( aValue == ECoreAppUIsPocMissedIndicatorOn ) |
445 else if ( aValue == ECoreAppUIsPocMissedIndicatorOn ) |
471 { |
446 { |
472 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); |
447 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); |
473 } |
448 } |
474 break; |
449 break; |
475 |
450 |
476 case KCoreAppUIsTarmIndicator: |
451 case KCoreAppUIsTarmIndicator: |
477 // iSysApAppUi.HandleTarmIndicatorL( aValue ); |
452 iSysApAppUi.HandleTarmIndicatorL( aValue ); |
478 break; |
453 break; |
479 |
454 |
480 case KCoreAppUIsMtvRecStatus: |
455 case KCoreAppUIsMtvRecStatus: |
481 if ( aValue == ECoreAppUIsMtvRecStatusOn ) |
456 if ( aValue == ECoreAppUIsMtvRecStatusOn ) |
482 { |
457 { |
483 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); |
458 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); |
484 } |
459 } |
485 else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized ) |
460 else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized ) |
486 { |
461 { |
487 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); |
462 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); |
488 } |
463 } |
489 break; |
464 break; |
490 |
465 |
491 case KCoreAppUIsMtvDvbhStatus: |
466 case KCoreAppUIsMtvDvbhStatus: |
492 if ( aValue == ECoreAppUIsMtvDvbhStatusOn ) |
467 if ( aValue == ECoreAppUIsMtvDvbhStatusOn ) |
493 { |
468 { |
494 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); |
469 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); |
495 } |
470 } |
496 else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized ) |
471 else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized ) |
497 { |
472 { |
498 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); |
473 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); |
499 } |
474 } |
500 break; |
475 break; |
501 |
476 |
502 case KCoreAppUIsVideoSharingIndicator: |
477 case KCoreAppUIsVideoSharingIndicator: |
503 if ( aValue == ECoreAppUIsVideoSharingIndicatorOn ) |
478 if ( aValue == ECoreAppUIsVideoSharingIndicatorOn ) |
504 { |
479 { |
505 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); |
480 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); |
506 } |
481 } |
507 else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized ) |
482 else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized ) |
508 { |
483 { |
509 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); |
484 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); |
510 } |
485 } |
511 break; |
486 break; |
512 |
487 |
513 case KCoreAppUIsPowerMenuCustomDialogStatus: |
|
514 if ( aValue == ECoreAppUIsPowerMenuCustomDialogOn ) |
|
515 { |
|
516 TBool powerMenuMemoryStatus = EFalse; |
|
517 powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory(); |
|
518 if(powerMenuMemoryStatus) |
|
519 { |
|
520 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
|
521 } |
|
522 } |
|
523 else if(aValue == ECoreAppUIsMemoryCardCustomDialogOk) |
|
524 { |
|
525 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOk") ) ); |
|
526 TBool memoryCardStatus = EFalse; |
|
527 memoryCardStatus = iSysApAppUi.NotifiedDialogIfRequiredAndReleaseMemory(); |
|
528 if(memoryCardStatus) |
|
529 { |
|
530 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus Begin") ) ); |
|
531 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
|
532 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus end") ) ); |
|
533 } |
|
534 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus final end") ) ); |
|
535 |
|
536 } |
|
537 else if(aValue == ECoreAppUIsMemoryCardCustomDialogCancel) |
|
538 { |
|
539 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogCancel") ) ); |
|
540 iSysApAppUi.ReleaseMemoryForMemoryCardDialog(); |
|
541 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
|
542 } |
|
543 else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized ) |
|
544 { |
|
545 // do nothing |
|
546 } |
|
547 break; |
|
548 |
|
549 default: |
488 default: |
550 break; |
489 break; |
551 } |
490 } |
552 } |
491 } |
553 |
492 |
584 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue ) |
523 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue ) |
585 { |
524 { |
586 switch ( aKey ) |
525 switch ( aKey ) |
587 { |
526 { |
588 case KUidInboxStatusValue: |
527 case KUidInboxStatusValue: |
589 // iSysApAppUi.SetEnvelopeIndicatorL(); |
528 iSysApAppUi.SetEnvelopeIndicatorL(); |
590 break; |
529 break; |
591 |
530 |
592 case KUidOutboxStatusValue: |
531 case KUidOutboxStatusValue: |
593 if ( aValue == ESADocumentsInOutbox ) |
532 if ( aValue == ESADocumentsInOutbox ) |
594 { |
533 { |
595 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); |
534 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); |
596 } |
535 } |
597 //Hide the Outbox indicator |
536 //Hide the Outbox indicator |
598 else if ( aValue == ESAOutboxEmpty ) |
537 else if ( aValue == ESAOutboxEmpty ) |
599 { |
538 { |
600 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); |
539 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); |
601 } |
540 } |
602 break; |
541 break; |
603 |
542 |
604 case KIrdaStatus: |
543 case KIrdaStatus: |
605 if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected ) |
544 if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected ) |
606 { |
545 { |
607 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); |
546 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); |
608 } |
547 } |
609 else if ( aValue == TIrdaStatusCodes::EIrConnected ) |
548 else if ( aValue == TIrdaStatusCodes::EIrConnected ) |
610 { |
549 { |
611 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); |
550 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); |
612 } |
551 } |
613 else if ( aValue == TIrdaStatusCodes::EIrUnloaded ) |
552 else if ( aValue == TIrdaStatusCodes::EIrUnloaded ) |
614 { |
553 { |
615 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); |
554 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); |
616 } |
555 } |
617 break; |
556 break; |
618 |
557 |
619 // case KPSUidGprsStatusValue: |
558 case KPSUidGprsStatusValue: |
620 // case KPSUidWcdmaStatusValue: |
559 case KPSUidWcdmaStatusValue: |
621 // iSysApAppUi.SetSignalIndicatorL(); |
560 iSysApAppUi.SetSignalIndicatorL(); |
622 // break; |
561 break; |
623 |
562 |
624 case KPSUidLocationGlobalPrivacyValue: |
563 case KPSUidLocationGlobalPrivacyValue: |
625 // iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); |
564 iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); |
626 break; |
565 break; |
627 |
566 |
628 case conn::KUidBackupRestoreKey: |
567 case conn::KUidBackupRestoreKey: |
629 { |
568 { |
630 conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask ); |
569 conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask ); |
701 { |
640 { |
702 // Active/Inactive -> Off state |
641 // Active/Inactive -> Off state |
703 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition"))); |
642 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition"))); |
704 |
643 |
705 // turn any FM TX indicators off |
644 // turn any FM TX indicators off |
706 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
645 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
707 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
646 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
708 |
647 |
709 // give notification |
648 // give notification |
710 if ( aValue == EFmTxStatePowerSaveAccessory ) |
649 if ( aValue == EFmTxStatePowerSaveAccessory ) |
711 { |
650 { |
712 // iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); |
651 iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); |
713 } |
652 } |
714 else |
653 else |
715 { |
654 { |
716 // iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); |
655 iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); |
717 } |
656 } |
718 isFmTxTurnedOff = ETrue; |
657 isFmTxTurnedOff = ETrue; |
719 } |
658 } |
720 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
659 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
721 { |
660 { |
722 // Active -> Inactive |
661 // Active -> Inactive |
723 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition"))); |
662 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition"))); |
724 |
663 |
725 // enable not sending indicator |
664 // enable not sending indicator |
726 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
665 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
727 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
666 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
728 } |
667 } |
729 else if ( aValue == EFmTxStateActive ) |
668 else if ( aValue == EFmTxStateActive ) |
730 { |
669 { |
731 // Inactive -> Active |
670 // Inactive -> Active |
732 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition"))); |
671 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition"))); |
733 |
672 |
734 // enable active indicator |
673 // enable active indicator |
735 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
674 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
736 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
675 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
737 } |
676 } |
738 |
677 |
739 break; |
678 break; |
740 |
679 |
741 // Previous "Off" states |
680 // Previous "Off" states |
748 { |
687 { |
749 // Off -> Active |
688 // Off -> Active |
750 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition"))); |
689 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition"))); |
751 |
690 |
752 // enable active indicator |
691 // enable active indicator |
753 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
692 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
754 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
693 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
755 |
694 |
756 // give notification |
695 // give notification |
757 // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
696 iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
758 isFmTxTurnedOn = ETrue; |
697 isFmTxTurnedOn = ETrue; |
759 } |
698 } |
760 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
699 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
761 { |
700 { |
762 // Off -> Inactive |
701 // Off -> Inactive |
763 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition"))); |
702 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition"))); |
764 |
703 |
765 // enable not sending indicator |
704 // enable not sending indicator |
766 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
705 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
767 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
706 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
768 |
707 |
769 // give notification |
708 // give notification |
770 // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
709 iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
771 isFmTxTurnedOn = ETrue; |
710 isFmTxTurnedOn = ETrue; |
772 } |
711 } |
773 break; |
712 break; |
774 |
713 |
775 } |
714 } |
776 |
715 |
|
716 if ( aValue == EFmTxStateActive ) |
|
717 { |
|
718 if(iFmTxRemConObserver) |
|
719 { |
|
720 //Open Remcon and reserve the volume keys |
|
721 iFmTxRemConObserver->StartRemconInterfaceL(); |
|
722 } |
|
723 } |
|
724 else |
|
725 { |
|
726 if(iFmTxRemConObserver) |
|
727 { |
|
728 //Disconnect from Remcon and release keys for other apps like phone app during call |
|
729 iFmTxRemConObserver->StopRemconInterface(); |
|
730 } |
|
731 } |
|
732 |
777 if ( isFmTxTurnedOn ) |
733 if ( isFmTxTurnedOn ) |
778 { |
734 { |
779 if ( !iFmTxRemConObserver ) |
735 if ( !iFmTxRemConObserver ) |
780 { |
736 { |
781 // create observer which captures volume keys |
737 // create observer which captures volume keys |