coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp
branchRCL_3
changeset 19 924385140d98
parent 18 0818dd463d41
child 20 c2c61fdca848
equal deleted inserted replaced
18:0818dd463d41 19:924385140d98
     1 /*
     1 /*
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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()
   300         }
   316         }
   301     else if ( aCategory == KPSUidHWRM )
   317     else if ( aCategory == KPSUidHWRM )
   302         {
   318         {
   303         HandleHwrmCategoryL( aKey, value );
   319         HandleHwrmCategoryL( aKey, value );
   304         }
   320         }
   305     else if ( aCategory == KPSUidHWRMFmTx )
   321 /*    else if ( aCategory == KPSUidHWRMFmTx )
   306         {
   322         {
   307         HandleHwrmFmTxCategoryL( aKey, value );
   323         HandleHwrmFmTxCategoryL( aKey, value );
   308         }
   324         }
       
   325 */
   309     else if ( aCategory == KPSUidDataSynchronizationInternalKeys )
   326     else if ( aCategory == KPSUidDataSynchronizationInternalKeys )
   310         {
   327         {
   311         HandleDataSyncCategoryL( aKey, value );
   328         HandleDataSyncCategoryL( aKey, value );
   312         }
   329         }
   313     else if ( aCategory == KPosIndicatorCategoryUid )
   330     else if ( aCategory == KPosIndicatorCategoryUid )
   315         HandlePosIndicatorCategoryL( aKey, value );
   332         HandlePosIndicatorCategoryL( aKey, value );
   316         }
   333         }
   317     else if ( aCategory == KUidPSSMSStackCategory )
   334     else if ( aCategory == KUidPSSMSStackCategory )
   318         {
   335         {
   319         HandleSmsStackCategoryL( aKey, value );
   336         HandleSmsStackCategoryL( aKey, value );
       
   337         }
       
   338     else if ( aCategory == KPSUidAvkonDomain)
       
   339         {
       
   340         HandleLKeylockEventL( aKey, value );
       
   341         }
       
   342     else if ( aCategory == KPSUidSecurityUIs)
       
   343         {
       
   344         HandleLightsOnRequestL( aKey, value );
   320         }
   345         }
   321     }
   346     }
   322 // ----------------------------------------------------------------------------
   347 // ----------------------------------------------------------------------------
   323 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL()
   348 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL()
   324 // ----------------------------------------------------------------------------
   349 // ----------------------------------------------------------------------------
   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:
   399             break;
   424             break;
   400             }
   425             }
   401         case KCoreAppUIsNewEmailStatus:
   426         case KCoreAppUIsNewEmailStatus:
   402             if ( aValue == ECoreAppUIsNewEmail )
   427             if ( aValue == ECoreAppUIsNewEmail )
   403                 {
   428                 {
   404                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn );
   429  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn );
   405                 }
   430                 }
   406             else if ( aValue == ECoreAppUIsNoNewEmail )
   431             else if ( aValue == ECoreAppUIsNoNewEmail )
   407                 {
   432                 {
   408                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff );
   433  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff );
   409                 }
   434                 }
   410             break;
   435             break;
   411 
   436 
   412         case KCoreAppUIsAutolockStatus:
   437         case KCoreAppUIsAutolockStatus:
   413             if ( aValue == EAutolockOff )
   438             if ( aValue == EAutolockOff )
   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 );
   592 void CSysApPubSubObserver::HandleHwrmPowerStateCategoryL( const TUint aKey, const TInt aValue )
   653 void CSysApPubSubObserver::HandleHwrmPowerStateCategoryL( const TUint aKey, const TInt aValue )
   593     {
   654     {
   594     switch ( aKey )
   655     switch ( aKey )
   595         {
   656         {
   596         case KHWRMBatteryLevel:
   657         case KHWRMBatteryLevel:
   597             iSysApAppUi.UpdateBatteryBarsL( aValue );
   658  //           iSysApAppUi.UpdateBatteryBarsL( aValue );
   598             break;
   659             break;
   599         
   660         
   600         case KHWRMBatteryStatus:
   661         case KHWRMBatteryStatus:
   601             iSysApAppUi.HandleBatteryStatusL( aValue );            
   662             iSysApAppUi.HandleBatteryStatusL( aValue );            
   602             break;
   663             break;
   607 
   668 
   608         default:
   669         default:
   609             break;
   670             break;
   610         } 
   671         } 
   611     }
   672     }
   612 
   673 /*
   613 // ----------------------------------------------------------------------------
   674 // ----------------------------------------------------------------------------
   614 // CSysApPubSubObserver::HandleHwrmFmTxCategoryL()
   675 // CSysApPubSubObserver::HandleHwrmFmTxCategoryL()
   615 // ----------------------------------------------------------------------------
   676 // ----------------------------------------------------------------------------
   616 void CSysApPubSubObserver::HandleHwrmFmTxCategoryL( const TUint aKey, 
   677 void CSysApPubSubObserver::HandleHwrmFmTxCategoryL( const TUint aKey, 
   617                                                     const TInt aValue )
   678                                                     const TInt aValue )
   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
   765             iFmTxRemConObserver = NULL;
   809             iFmTxRemConObserver = NULL;
   766             }
   810             }
   767         iPreviousFmTxPSValue = aValue;
   811         iPreviousFmTxPSValue = aValue;
   768         }
   812         }
   769     }
   813     }
       
   814 */
   770 
   815 
   771 // ----------------------------------------------------------------------------
   816 // ----------------------------------------------------------------------------
   772 // CSysApPubSubObserver::HandleWlanCategoryL()
   817 // CSysApPubSubObserver::HandleWlanCategoryL()
   773 // ----------------------------------------------------------------------------
   818 // ----------------------------------------------------------------------------
   774 void CSysApPubSubObserver::HandleWlanCategoryL( const TUint aKey, const TInt aValue )
   819 void CSysApPubSubObserver::HandleWlanCategoryL( const TUint aKey, const TInt aValue )
   808     switch ( aKey )
   853     switch ( aKey )
   809         {
   854         {
   810         case KNWHomeZoneStatus:
   855         case KNWHomeZoneStatus:
   811             if ( aValue == ENWHomeZone )
   856             if ( aValue == ENWHomeZone )
   812                 {
   857                 {
   813                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn );
   858  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn );
   814                 }
   859                 }
   815             else if ( aValue == ENWNone || aValue == ENWCityZone )
   860             else if ( aValue == ENWNone || aValue == ENWCityZone )
   816                 {
   861                 {
   817                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff );
   862  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff );
   818                 }
   863                 }
   819             break; 
   864             break; 
   820 
   865 
   821         case KNWTelephonyNetworkMode:
   866         case KNWTelephonyNetworkMode:
   822             iSysApAppUi.SetSignalIndicatorL();
   867  //           iSysApAppUi.SetSignalIndicatorL();
   823             break;
   868             break;
   824 
   869 
   825         default:
   870         default:
   826             break;
   871             break;
   827         } 
   872         } 
   835     switch ( aKey )
   880     switch ( aKey )
   836         {
   881         {
   837         case KHWRMFlipStatus:
   882         case KHWRMFlipStatus:
   838             if ( aValue == EPSHWRMFlipClosed )
   883             if ( aValue == EPSHWRMFlipClosed )
   839                 {
   884                 {
   840                 iSysApAppUi.SimulateFlipKeyEventL( EFalse );
   885  //               iSysApAppUi.SimulateFlipKeyEventL( EFalse );
   841                 }
   886                 }
   842             else if ( aValue == EPSHWRMFlipOpen )
   887             else if ( aValue == EPSHWRMFlipOpen )
   843                 {
   888                 {
   844                 iSysApAppUi.SimulateFlipKeyEventL( ETrue );
   889  //               iSysApAppUi.SimulateFlipKeyEventL( ETrue );
   845                 }
   890                 }
   846             break; 
   891             break; 
   847 
   892 
   848         default:
   893         default:
   849             break;
   894             break;
   858     switch ( aKey )
   903     switch ( aKey )
   859         {
   904         {
   860         case KDataSyncStatus:
   905         case KDataSyncStatus:
   861             if ( aValue > EDataSyncNotRunning )
   906             if ( aValue > EDataSyncNotRunning )
   862                 {
   907                 {
   863                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn );
   908  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn );
   864                 }
   909                 }
   865             else
   910             else
   866                 {
   911                 {
   867                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff );
   912   //              iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff );
   868                 }
   913                 }
   869             break;
   914             break;
   870         
   915         
   871         default:
   916         default:
   872             break;        
   917             break;        
   882     switch ( aKey )
   927     switch ( aKey )
   883         {
   928         {
   884         case KPosIntGpsHwStatus:
   929         case KPosIntGpsHwStatus:
   885             if ( aValue == EPosIntGpsHwOff )
   930             if ( aValue == EPosIntGpsHwOff )
   886                 {
   931                 {
   887                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff );
   932                 iSysApAppUi.iHbIndicatorSymbian->Deactivate(KGpsIndicatorPlugin);
       
   933  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff );
   888                 }
   934                 }
   889             else if ( aValue == EPosIntGpsHwOn )    
   935             else if ( aValue == EPosIntGpsHwOn )    
   890                 {
   936                 {
   891                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn );
   937                 iSysApAppUi.iHbIndicatorSymbian->Activate(KGpsIndicatorPlugin);
       
   938  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn );
   892                 }
   939                 }
   893             else if ( aValue == EPosIntGpsHwIntermediate )
   940             else if ( aValue == EPosIntGpsHwIntermediate )
   894                 {
   941                 {
   895                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate );
   942  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate );
   896                 }
   943                 }
   897             break;
   944             break;
   898         
   945         
   899         default:
   946         default:
   900             break;
   947             break;
   907 
   954 
   908 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ )
   955 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ )
   909     {
   956     {
   910     switch ( aKey )
   957     switch ( aKey )
   911         {
   958         {
   912         case KUidPSSMSStackDiskSpaceMonitorKey:
   959         case KAknKeyguardStatus:
   913             iSysApAppUi.SetEnvelopeIndicatorL();
   960  //           iSysApAppUi.SetEnvelopeIndicatorL();
   914             break;
   961             break;
       
   962 
       
   963         default:
       
   964             break;
       
   965         }
       
   966     }
       
   967 
       
   968 void CSysApPubSubObserver::HandleLKeylockEventL( const TUint /* aKey */, const TInt aValue )
       
   969     {
       
   970     switch( aValue )
       
   971         {
       
   972         case EEikKeyLockEnabled:
       
   973             iSysApAppUi.SetKeyLockEnabledL();
       
   974             break;
       
   975         case EEikKeyLockDisabled:
       
   976             iSysApAppUi.SetKeyLockDisabledL();    
       
   977             break;
       
   978         default:
       
   979             break;
       
   980        }
       
   981     }
       
   982 
       
   983 void CSysApPubSubObserver::HandleLightsOnRequestL( const TUint /* aKey */, const TInt aValue )
       
   984     {
       
   985     switch ( aValue )
       
   986         {
       
   987         case EEikKeyLockLightsOnRequest:
       
   988              iSysApAppUi.SetLightsOnUnlockNoteL();
       
   989              break;
       
   990         case EEikEcsQueryLights: // emergency note is shown
       
   991              iSysApAppUi.SetLightsOnEcsQueryL();
       
   992              break;
       
   993 
       
   994         case EEikSecurityQueryLights: // for device lock security query
       
   995              iSysApAppUi.SetLightsOnSecurityQueryL();
       
   996              break;
   915 
   997 
   916         default:
   998         default:
   917             break;
   999             break;
   918         }
  1000         }
   919     }
  1001     }
   920 
  1002 
   921 // End of File
  1003 // End of File
   922 
       
   923 
       
   924