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