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 const TUid KPSUidSecurityUIs = { 0x100059b5 }; |
|
56 const TUint32 KSecurityUIsLights = 0x00000308; |
54 |
57 |
55 // ============================ MEMBER FUNCTIONS ============================== |
58 // ============================ MEMBER FUNCTIONS ============================== |
56 |
59 |
57 // ---------------------------------------------------------------------------- |
60 // ---------------------------------------------------------------------------- |
58 // CSysApPubSubObserver::NewL() |
61 // CSysApPubSubObserver::NewL() |
91 iInboxStatusSubscriber->Subscribe(); |
94 iInboxStatusSubscriber->Subscribe(); |
92 iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); |
95 iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); |
93 iOutboxStatusSubscriber->Subscribe(); |
96 iOutboxStatusSubscriber->Subscribe(); |
94 iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus ); |
97 iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus ); |
95 iIrdaStatusSubscriber->Subscribe(); |
98 iIrdaStatusSubscriber->Subscribe(); |
96 iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); |
99 // iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); |
97 iGprsStatusSubscriber->Subscribe(); |
100 // iGprsStatusSubscriber->Subscribe(); |
98 iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); |
101 // iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); |
99 iWcdmaStatusSubscriber->Subscribe(); |
102 // iWcdmaStatusSubscriber->Subscribe(); |
100 iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue ); |
103 iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue ); |
101 iLocationGlobalPrivacySubscriber->Subscribe(); |
104 iLocationGlobalPrivacySubscriber->Subscribe(); |
102 iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey ); |
105 iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey ); |
103 iRestoreBackupSubscriber->Subscribe(); |
106 iRestoreBackupSubscriber->Subscribe(); |
104 |
107 |
183 iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus ); |
186 iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus ); |
184 iGpsIndicatorSubscriber->Subscribe(); |
187 iGpsIndicatorSubscriber->Subscribe(); |
185 |
188 |
186 iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ); |
189 iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ); |
187 iSmsPhoneStoreSubscriber->Subscribe(); |
190 iSmsPhoneStoreSubscriber->Subscribe(); |
|
191 |
|
192 iKeylockEventSubscriber = CSysApSubscriber::NewL( *this, KPSUidAvkonDomain, KAknKeyguardStatus ); |
|
193 iKeylockEventSubscriber->Subscribe(); |
|
194 |
|
195 iLightsOnRequestSubscriber = CSysApSubscriber::NewL( *this, KPSUidSecurityUIs, KSecurityUIsLights ); |
|
196 iLightsOnRequestSubscriber->Subscribe(); |
|
197 |
|
198 iPowerMenuCustomDialogSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus ); |
|
199 iPowerMenuCustomDialogSubscriber->Subscribe(); |
188 } |
200 } |
189 |
201 |
190 // ---------------------------------------------------------------------------- |
202 // ---------------------------------------------------------------------------- |
191 // CSysApPubSubObserver::~CSysApPubSubObserver() |
203 // CSysApPubSubObserver::~CSysApPubSubObserver() |
192 // ---------------------------------------------------------------------------- |
204 // ---------------------------------------------------------------------------- |
200 delete iChargerCStatusSubscriber; |
212 delete iChargerCStatusSubscriber; |
201 delete iCallInfoSubscriber; |
213 delete iCallInfoSubscriber; |
202 delete iInboxStatusSubscriber; |
214 delete iInboxStatusSubscriber; |
203 delete iOutboxStatusSubscriber; |
215 delete iOutboxStatusSubscriber; |
204 delete iIrdaStatusSubscriber; |
216 delete iIrdaStatusSubscriber; |
205 delete iGprsStatusSubscriber; |
217 // delete iGprsStatusSubscriber; |
206 delete iWcdmaStatusSubscriber; |
218 // delete iWcdmaStatusSubscriber; |
207 delete iHomeZoneStatusSubscriber; |
219 delete iHomeZoneStatusSubscriber; |
208 delete iNewEmailStatusSubscriber; |
220 delete iNewEmailStatusSubscriber; |
209 delete iLocationGlobalPrivacySubscriber; |
221 delete iLocationGlobalPrivacySubscriber; |
210 delete iRestoreBackupSubscriber; |
222 delete iRestoreBackupSubscriber; |
211 delete iPoCIndicatorSubscriber; |
223 delete iPoCIndicatorSubscriber; |
304 } |
319 } |
305 /* else if ( aCategory == KPSUidHWRMFmTx ) |
320 /* else if ( aCategory == KPSUidHWRMFmTx ) |
306 { |
321 { |
307 HandleHwrmFmTxCategoryL( aKey, value ); |
322 HandleHwrmFmTxCategoryL( aKey, value ); |
308 } |
323 } |
309 */ else if ( aCategory == KPSUidDataSynchronizationInternalKeys ) |
324 */ |
|
325 else if ( aCategory == KPSUidDataSynchronizationInternalKeys ) |
310 { |
326 { |
311 HandleDataSyncCategoryL( aKey, value ); |
327 HandleDataSyncCategoryL( aKey, value ); |
312 } |
328 } |
313 else if ( aCategory == KPosIndicatorCategoryUid ) |
329 else if ( aCategory == KPosIndicatorCategoryUid ) |
314 { |
330 { |
315 HandlePosIndicatorCategoryL( aKey, value ); |
331 HandlePosIndicatorCategoryL( aKey, value ); |
316 } |
332 } |
317 else if ( aCategory == KUidPSSMSStackCategory ) |
333 else if ( aCategory == KUidPSSMSStackCategory ) |
318 { |
334 { |
319 HandleSmsStackCategoryL( aKey, value ); |
335 HandleSmsStackCategoryL( aKey, value ); |
|
336 } |
|
337 else if ( aCategory == KPSUidAvkonDomain) |
|
338 { |
|
339 HandleLKeylockEventL( aKey, value ); |
|
340 } |
|
341 else if ( aCategory == KPSUidSecurityUIs) |
|
342 { |
|
343 HandleLightsOnRequestL( aKey, value ); |
320 } |
344 } |
321 } |
345 } |
322 // ---------------------------------------------------------------------------- |
346 // ---------------------------------------------------------------------------- |
323 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL() |
347 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL() |
324 // ---------------------------------------------------------------------------- |
348 // ---------------------------------------------------------------------------- |
359 } |
383 } |
360 break; |
384 break; |
361 case KCoreAppUIsUipInd: |
385 case KCoreAppUIsUipInd: |
362 if ( aValue == ECoreAppUIsDoNotShow ) |
386 if ( aValue == ECoreAppUIsDoNotShow ) |
363 { |
387 { |
364 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); |
388 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); |
365 } |
389 } |
366 else if ( aValue == ECoreAppUIsShow ) |
390 else if ( aValue == ECoreAppUIsShow ) |
367 { |
391 { |
368 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); |
392 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); |
369 } |
393 } |
370 break; |
394 break; |
371 case KCoreAppUIsMessageToneQuit: |
395 case KCoreAppUIsMessageToneQuit: |
372 iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); |
396 // iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); |
373 break; |
397 break; |
374 case KCoreAppUIsNspsRawKeyEvent: |
398 case KCoreAppUIsNspsRawKeyEvent: |
375 iSysApAppUi.HandleNspsRawKeyEventL(); |
399 // iSysApAppUi.HandleNspsRawKeyEventL(); |
376 break; |
400 break; |
377 case KCoreAppUIsLightsRawKeyEvent: |
401 case KCoreAppUIsLightsRawKeyEvent: |
378 if ( aValue == ECoreAppUIsKeyEvent ) |
402 if ( aValue == ECoreAppUIsKeyEvent ) |
379 { |
403 { |
380 iSysApAppUi.HandleRawKeyEventLightsRequireL(); |
404 // iSysApAppUi.HandleRawKeyEventLightsRequireL(); |
381 } |
405 } |
382 break; |
406 break; |
383 case KCoreAppUIsMmcRemovedWithoutEject: |
407 case KCoreAppUIsMmcRemovedWithoutEject: |
384 { |
408 { |
385 TUint cmd( aValue & KCoreAppUIsMmcRemovedWithoutEjectCmdMask ); |
409 TUint cmd( aValue & KCoreAppUIsMmcRemovedWithoutEjectCmdMask ); |
386 if ( cmd == ECoreAppUIsEjectCommandUsed ) |
410 if ( cmd == ECoreAppUIsEjectCommandUsed ) |
387 { |
411 { |
388 iSysApAppUi.EjectStarted( ETrue ); |
412 // iSysApAppUi.EjectStarted( ETrue ); |
389 } |
413 } |
390 else if ( cmd == ECoreAppUIsEjectCommandNotUsed ) |
414 else if ( cmd == ECoreAppUIsEjectCommandNotUsed ) |
391 { |
415 { |
392 iSysApAppUi.EjectStarted( EFalse ); |
416 // iSysApAppUi.EjectStarted( EFalse ); |
393 } |
417 } |
394 else if ( cmd == ECoreAppUIsEjectCommandUsedToDrive ) |
418 else if ( cmd == ECoreAppUIsEjectCommandUsedToDrive ) |
395 { |
419 { |
396 TInt drive( aValue >> KCoreAppUIsMmcRemovedWithoutEjectValShift ); |
420 TInt drive( aValue >> KCoreAppUIsMmcRemovedWithoutEjectValShift ); |
397 iSysApAppUi.EjectUsed( drive ); |
421 // iSysApAppUi.EjectUsed( drive ); |
398 } |
422 } |
399 break; |
423 break; |
400 } |
424 } |
401 case KCoreAppUIsNewEmailStatus: |
425 case KCoreAppUIsNewEmailStatus: |
402 if ( aValue == ECoreAppUIsNewEmail ) |
426 if ( aValue == ECoreAppUIsNewEmail ) |
403 { |
427 { |
404 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn ); |
428 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn ); |
405 } |
429 } |
406 else if ( aValue == ECoreAppUIsNoNewEmail ) |
430 else if ( aValue == ECoreAppUIsNoNewEmail ) |
407 { |
431 { |
408 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff ); |
432 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff ); |
409 } |
433 } |
410 break; |
434 break; |
411 |
435 |
412 case KCoreAppUIsAutolockStatus: |
436 case KCoreAppUIsAutolockStatus: |
413 if ( aValue == EAutolockOff ) |
437 if ( aValue == EAutolockOff ) |
421 break; |
445 break; |
422 |
446 |
423 case KCoreAppUIsPoCIndicator: |
447 case KCoreAppUIsPoCIndicator: |
424 if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized ) |
448 if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized ) |
425 { |
449 { |
426 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
450 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
427 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
451 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
428 } |
452 } |
429 else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb ) |
453 else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb ) |
430 { |
454 { |
431 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
455 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); |
432 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); |
456 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); |
433 } |
457 } |
434 else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn ) |
458 else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn ) |
435 { |
459 { |
436 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); |
460 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); |
437 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
461 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); |
438 } |
462 } |
439 break; |
463 break; |
440 case KCoreAppUIsPoCMissedIndicator: |
464 case KCoreAppUIsPoCMissedIndicator: |
441 if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized ) |
465 if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized ) |
442 { |
466 { |
443 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); |
467 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); |
444 } |
468 } |
445 else if ( aValue == ECoreAppUIsPocMissedIndicatorOn ) |
469 else if ( aValue == ECoreAppUIsPocMissedIndicatorOn ) |
446 { |
470 { |
447 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); |
471 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); |
448 } |
472 } |
449 break; |
473 break; |
450 |
474 |
451 case KCoreAppUIsTarmIndicator: |
475 case KCoreAppUIsTarmIndicator: |
452 iSysApAppUi.HandleTarmIndicatorL( aValue ); |
476 // iSysApAppUi.HandleTarmIndicatorL( aValue ); |
453 break; |
477 break; |
454 |
478 |
455 case KCoreAppUIsMtvRecStatus: |
479 case KCoreAppUIsMtvRecStatus: |
456 if ( aValue == ECoreAppUIsMtvRecStatusOn ) |
480 if ( aValue == ECoreAppUIsMtvRecStatusOn ) |
457 { |
481 { |
458 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); |
482 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); |
459 } |
483 } |
460 else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized ) |
484 else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized ) |
461 { |
485 { |
462 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); |
486 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); |
463 } |
487 } |
464 break; |
488 break; |
465 |
489 |
466 case KCoreAppUIsMtvDvbhStatus: |
490 case KCoreAppUIsMtvDvbhStatus: |
467 if ( aValue == ECoreAppUIsMtvDvbhStatusOn ) |
491 if ( aValue == ECoreAppUIsMtvDvbhStatusOn ) |
468 { |
492 { |
469 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); |
493 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); |
470 } |
494 } |
471 else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized ) |
495 else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized ) |
472 { |
496 { |
473 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); |
497 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); |
474 } |
498 } |
475 break; |
499 break; |
476 |
500 |
477 case KCoreAppUIsVideoSharingIndicator: |
501 case KCoreAppUIsVideoSharingIndicator: |
478 if ( aValue == ECoreAppUIsVideoSharingIndicatorOn ) |
502 if ( aValue == ECoreAppUIsVideoSharingIndicatorOn ) |
479 { |
503 { |
480 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); |
504 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); |
481 } |
505 } |
482 else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized ) |
506 else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized ) |
483 { |
507 { |
484 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); |
508 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); |
485 } |
509 } |
486 break; |
510 break; |
487 |
511 |
|
512 case KCoreAppUIsPowerMenuCustomDialogStatus: |
|
513 if ( aValue == ECoreAppUIsPowerMenuCustomDialogOn ) |
|
514 { |
|
515 TBool powerMenuMemoryStatus = EFalse; |
|
516 powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory(); |
|
517 if(powerMenuMemoryStatus) |
|
518 { |
|
519 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
|
520 } |
|
521 } |
|
522 else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized ) |
|
523 { |
|
524 // do nothing |
|
525 } |
|
526 break; |
|
527 |
488 default: |
528 default: |
489 break; |
529 break; |
490 } |
530 } |
491 } |
531 } |
492 |
532 |
523 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue ) |
563 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue ) |
524 { |
564 { |
525 switch ( aKey ) |
565 switch ( aKey ) |
526 { |
566 { |
527 case KUidInboxStatusValue: |
567 case KUidInboxStatusValue: |
528 iSysApAppUi.SetEnvelopeIndicatorL(); |
568 // iSysApAppUi.SetEnvelopeIndicatorL(); |
529 break; |
569 break; |
530 |
570 |
531 case KUidOutboxStatusValue: |
571 case KUidOutboxStatusValue: |
532 if ( aValue == ESADocumentsInOutbox ) |
572 if ( aValue == ESADocumentsInOutbox ) |
533 { |
573 { |
534 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); |
574 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); |
535 } |
575 } |
536 //Hide the Outbox indicator |
576 //Hide the Outbox indicator |
537 else if ( aValue == ESAOutboxEmpty ) |
577 else if ( aValue == ESAOutboxEmpty ) |
538 { |
578 { |
539 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); |
579 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); |
540 } |
580 } |
541 break; |
581 break; |
542 |
582 |
543 case KIrdaStatus: |
583 case KIrdaStatus: |
544 if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected ) |
584 if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected ) |
545 { |
585 { |
546 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); |
586 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); |
547 } |
587 } |
548 else if ( aValue == TIrdaStatusCodes::EIrConnected ) |
588 else if ( aValue == TIrdaStatusCodes::EIrConnected ) |
549 { |
589 { |
550 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); |
590 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); |
551 } |
591 } |
552 else if ( aValue == TIrdaStatusCodes::EIrUnloaded ) |
592 else if ( aValue == TIrdaStatusCodes::EIrUnloaded ) |
553 { |
593 { |
554 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); |
594 // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); |
555 } |
595 } |
556 break; |
596 break; |
557 |
597 |
558 case KPSUidGprsStatusValue: |
598 // case KPSUidGprsStatusValue: |
559 case KPSUidWcdmaStatusValue: |
599 // case KPSUidWcdmaStatusValue: |
560 iSysApAppUi.SetSignalIndicatorL(); |
600 // iSysApAppUi.SetSignalIndicatorL(); |
561 break; |
601 // break; |
562 |
602 |
563 case KPSUidLocationGlobalPrivacyValue: |
603 case KPSUidLocationGlobalPrivacyValue: |
564 iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); |
604 // iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); |
565 break; |
605 break; |
566 |
606 |
567 case conn::KUidBackupRestoreKey: |
607 case conn::KUidBackupRestoreKey: |
568 { |
608 { |
569 conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask ); |
609 conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask ); |
640 { |
680 { |
641 // Active/Inactive -> Off state |
681 // Active/Inactive -> Off state |
642 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition"))); |
682 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition"))); |
643 |
683 |
644 // turn any FM TX indicators off |
684 // turn any FM TX indicators off |
645 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
685 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
646 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
686 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
647 |
687 |
648 // give notification |
688 // give notification |
649 if ( aValue == EFmTxStatePowerSaveAccessory ) |
689 if ( aValue == EFmTxStatePowerSaveAccessory ) |
650 { |
690 { |
651 iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); |
691 // iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); |
652 } |
692 } |
653 else |
693 else |
654 { |
694 { |
655 iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); |
695 // iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); |
656 } |
696 } |
657 isFmTxTurnedOff = ETrue; |
697 isFmTxTurnedOff = ETrue; |
658 } |
698 } |
659 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
699 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
660 { |
700 { |
661 // Active -> Inactive |
701 // Active -> Inactive |
662 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition"))); |
702 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition"))); |
663 |
703 |
664 // enable not sending indicator |
704 // enable not sending indicator |
665 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
705 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
666 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
706 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
667 } |
707 } |
668 else if ( aValue == EFmTxStateActive ) |
708 else if ( aValue == EFmTxStateActive ) |
669 { |
709 { |
670 // Inactive -> Active |
710 // Inactive -> Active |
671 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition"))); |
711 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition"))); |
672 |
712 |
673 // enable active indicator |
713 // enable active indicator |
674 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
714 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
675 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
715 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
676 } |
716 } |
677 |
717 |
678 break; |
718 break; |
679 |
719 |
680 // Previous "Off" states |
720 // Previous "Off" states |
687 { |
727 { |
688 // Off -> Active |
728 // Off -> Active |
689 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition"))); |
729 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition"))); |
690 |
730 |
691 // enable active indicator |
731 // enable active indicator |
692 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
732 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); |
693 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
733 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); |
694 |
734 |
695 // give notification |
735 // give notification |
696 iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
736 // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
697 isFmTxTurnedOn = ETrue; |
737 isFmTxTurnedOn = ETrue; |
698 } |
738 } |
699 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
739 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) |
700 { |
740 { |
701 // Off -> Inactive |
741 // Off -> Inactive |
702 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition"))); |
742 TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition"))); |
703 |
743 |
704 // enable not sending indicator |
744 // enable not sending indicator |
705 iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
745 // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); |
706 iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
746 // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); |
707 |
747 |
708 // give notification |
748 // give notification |
709 iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
749 // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); |
710 isFmTxTurnedOn = ETrue; |
750 isFmTxTurnedOn = ETrue; |
711 } |
751 } |
712 break; |
752 break; |
713 |
753 |
714 } |
754 } |
891 |
931 |
892 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ ) |
932 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ ) |
893 { |
933 { |
894 switch ( aKey ) |
934 switch ( aKey ) |
895 { |
935 { |
896 case KUidPSSMSStackDiskSpaceMonitorKey: |
936 case KAknKeyguardStatus: |
897 iSysApAppUi.SetEnvelopeIndicatorL(); |
937 // iSysApAppUi.SetEnvelopeIndicatorL(); |
898 break; |
938 break; |
|
939 |
|
940 default: |
|
941 break; |
|
942 } |
|
943 } |
|
944 |
|
945 void CSysApPubSubObserver::HandleLKeylockEventL( const TUint /* aKey */, const TInt aValue ) |
|
946 { |
|
947 switch( aValue ) |
|
948 { |
|
949 case EEikKeyLockEnabled: |
|
950 iSysApAppUi.SetKeyLockEnabledL(); |
|
951 break; |
|
952 case EEikKeyLockDisabled: |
|
953 iSysApAppUi.SetKeyLockDisabledL(); |
|
954 break; |
|
955 default: |
|
956 break; |
|
957 } |
|
958 } |
|
959 |
|
960 void CSysApPubSubObserver::HandleLightsOnRequestL( const TUint /* aKey */, const TInt aValue ) |
|
961 { |
|
962 switch ( aValue ) |
|
963 { |
|
964 case EEikKeyLockLightsOnRequest: |
|
965 iSysApAppUi.SetLightsOnUnlockNoteL(); |
|
966 break; |
|
967 case EEikEcsQueryLights: // emergency note is shown |
|
968 iSysApAppUi.SetLightsOnEcsQueryL(); |
|
969 break; |
|
970 |
|
971 case EEikSecurityQueryLights: // for device lock security query |
|
972 iSysApAppUi.SetLightsOnSecurityQueryL(); |
|
973 break; |
899 |
974 |
900 default: |
975 default: |
901 break; |
976 break; |
902 } |
977 } |
903 } |
978 } |
904 |
979 |
905 // End of File |
980 // End of File |
906 |
|
907 |
|
908 |
|