coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
child 82 4610cd70c542
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2005-2010 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>
       
    42 
    41 
    43 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    42 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    44   #include <ASShdAlarm.h>
    43   #include <ASShdAlarm.h>
    45 #else
    44 #else
    46   #include <asshddefs.h>
    45   #include <asshddefs.h>
    47   #include <ASShdAlarmCal.h>
    46   #include <ASShdAlarmCal.h>
    48   #include <asshdalarm.h>
    47   #include <asshdalarm.h>
    49 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    48 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    50 
    49 
       
    50 
    51 // CONSTANTS
    51 // CONSTANTS
    52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF;
    52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF;
    53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16;
    53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16;
    54 
       
    55 _LIT(KGpsIndicatorPlugin, "com.nokia.positioning.indicatorplugin/1.0");
       
    56 const TUid KPSUidSecurityUIs = { 0x100059b5 };
       
    57 const TUint32 KSecurityUIsLights  = 0x00000308;
       
    58 
    54 
    59 // ============================ MEMBER FUNCTIONS ==============================
    55 // ============================ MEMBER FUNCTIONS ==============================
    60 
    56 
    61 // ----------------------------------------------------------------------------
    57 // ----------------------------------------------------------------------------
    62 // CSysApPubSubObserver::NewL() 
    58 // CSysApPubSubObserver::NewL() 
    95     iInboxStatusSubscriber->Subscribe();
    91     iInboxStatusSubscriber->Subscribe();
    96     iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); 
    92     iOutboxStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KUidOutboxStatusValue ); 
    97     iOutboxStatusSubscriber->Subscribe();
    93     iOutboxStatusSubscriber->Subscribe();
    98     iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus );
    94     iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus );
    99     iIrdaStatusSubscriber->Subscribe();
    95     iIrdaStatusSubscriber->Subscribe();
   100 //    iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue );
    96     iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue );
   101 //    iGprsStatusSubscriber->Subscribe();
    97     iGprsStatusSubscriber->Subscribe();
   102 //    iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); 
    98     iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); 
   103 //    iWcdmaStatusSubscriber->Subscribe();
    99     iWcdmaStatusSubscriber->Subscribe();
   104     iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue );
   100     iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue );
   105     iLocationGlobalPrivacySubscriber->Subscribe();
   101     iLocationGlobalPrivacySubscriber->Subscribe();
   106     iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey );
   102     iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey );
   107     iRestoreBackupSubscriber->Subscribe();
   103     iRestoreBackupSubscriber->Subscribe();
   108 
   104 
   168 
   164 
   169     // Category KPSUidHWRM
   165     // Category KPSUidHWRM
   170     iFlipStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRM, KHWRMFlipStatus );
   166     iFlipStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRM, KHWRMFlipStatus );
   171     iFlipStatusSubscriber->Subscribe();
   167     iFlipStatusSubscriber->Subscribe();
   172     
   168     
   173 /*    if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() )
   169     if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() )
   174         {
   170         {
   175         // Category KHWRMFmTxStatus
   171         // Category KHWRMFmTxStatus
   176         iFmTxStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRMFmTx, KHWRMFmTxStatus );
   172         iFmTxStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRMFmTx, KHWRMFmTxStatus );
   177         iFmTxStatusSubscriber->Subscribe();
   173         iFmTxStatusSubscriber->Subscribe();
   178         iPreviousFmTxPSValue = EFmTxStateUnknown;    
   174         iPreviousFmTxPSValue = EFmTxStateUnknown;    
   179         }
   175         }
   180 */
   176 
   181     iSyncStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidDataSynchronizationInternalKeys, KDataSyncStatus );
   177     iSyncStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidDataSynchronizationInternalKeys, KDataSyncStatus );
   182     iSyncStatusSubscriber->Subscribe();
   178     iSyncStatusSubscriber->Subscribe();
   183     
   179     
   184     iVideoSharingIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator );
   180     iVideoSharingIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator );
   185     iVideoSharingIndicatorSubscriber->Subscribe();
   181     iVideoSharingIndicatorSubscriber->Subscribe();
   187     iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus );
   183     iGpsIndicatorSubscriber = CSysApSubscriber::NewL( *this, KPosIndicatorCategoryUid, KPosIntGpsHwStatus );
   188     iGpsIndicatorSubscriber->Subscribe();
   184     iGpsIndicatorSubscriber->Subscribe();
   189 
   185 
   190     iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey );
   186     iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey );
   191     iSmsPhoneStoreSubscriber->Subscribe();
   187     iSmsPhoneStoreSubscriber->Subscribe();
   192     
       
   193     iKeylockEventSubscriber = CSysApSubscriber::NewL( *this, KPSUidAvkonDomain, KAknKeyguardStatus );
       
   194     iKeylockEventSubscriber->Subscribe();
       
   195     
       
   196     iLightsOnRequestSubscriber = CSysApSubscriber::NewL( *this, KPSUidSecurityUIs, KSecurityUIsLights );
       
   197     iLightsOnRequestSubscriber->Subscribe();
       
   198     
       
   199     iPowerMenuCustomDialogSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus );
       
   200     iPowerMenuCustomDialogSubscriber->Subscribe();
       
   201     }
   188     }
   202 
   189 
   203 // ----------------------------------------------------------------------------
   190 // ----------------------------------------------------------------------------
   204 // CSysApPubSubObserver::~CSysApPubSubObserver() 
   191 // CSysApPubSubObserver::~CSysApPubSubObserver() 
   205 // ----------------------------------------------------------------------------
   192 // ----------------------------------------------------------------------------
   213     delete iChargerCStatusSubscriber; 
   200     delete iChargerCStatusSubscriber; 
   214     delete iCallInfoSubscriber;
   201     delete iCallInfoSubscriber;
   215     delete iInboxStatusSubscriber;
   202     delete iInboxStatusSubscriber;
   216     delete iOutboxStatusSubscriber; 
   203     delete iOutboxStatusSubscriber; 
   217     delete iIrdaStatusSubscriber;
   204     delete iIrdaStatusSubscriber;
   218 //    delete iGprsStatusSubscriber; 
   205     delete iGprsStatusSubscriber; 
   219 //    delete iWcdmaStatusSubscriber;
   206     delete iWcdmaStatusSubscriber;
   220     delete iHomeZoneStatusSubscriber;
   207     delete iHomeZoneStatusSubscriber;
   221     delete iNewEmailStatusSubscriber; 
   208     delete iNewEmailStatusSubscriber; 
   222     delete iLocationGlobalPrivacySubscriber;
   209     delete iLocationGlobalPrivacySubscriber;
   223     delete iRestoreBackupSubscriber;
   210     delete iRestoreBackupSubscriber;
   224     delete iPoCIndicatorSubscriber;
   211     delete iPoCIndicatorSubscriber;
   241     delete iLightsRawKeyEventSubscriber;
   228     delete iLightsRawKeyEventSubscriber;
   242     delete iMmcRemovedWithoutEjectSubscriber;
   229     delete iMmcRemovedWithoutEjectSubscriber;
   243     delete iNetworkModeSubscriber;
   230     delete iNetworkModeSubscriber;
   244     delete iWlanIndicatorSubscriber;
   231     delete iWlanIndicatorSubscriber;
   245     delete iFlipStatusSubscriber;
   232     delete iFlipStatusSubscriber;
   246 //    delete iFmTxStatusSubscriber;
   233     delete iFmTxStatusSubscriber;
   247 //    delete iFmTxRemConObserver;
   234     delete iFmTxRemConObserver;
   248     delete iSyncStatusSubscriber;
   235     delete iSyncStatusSubscriber;
   249     delete iVideoSharingIndicatorSubscriber;
   236     delete iVideoSharingIndicatorSubscriber;
   250     delete iGpsIndicatorSubscriber;
   237     delete iGpsIndicatorSubscriber;
   251     delete iSmsPhoneStoreSubscriber;
   238     delete iSmsPhoneStoreSubscriber;
   252     delete iKeylockEventSubscriber;
       
   253     delete iLightsOnRequestSubscriber;
       
   254     delete iPowerMenuCustomDialogSubscriber;
       
   255     }
   239     }
   256 
   240 
   257 
   241 
   258 // ----------------------------------------------------------------------------
   242 // ----------------------------------------------------------------------------
   259 // CSysApPubSubObserver::HandlePropertyChangedL()
   243 // CSysApPubSubObserver::HandlePropertyChangedL()
   316         }
   300         }
   317     else if ( aCategory == KPSUidHWRM )
   301     else if ( aCategory == KPSUidHWRM )
   318         {
   302         {
   319         HandleHwrmCategoryL( aKey, value );
   303         HandleHwrmCategoryL( aKey, value );
   320         }
   304         }
   321 /*    else if ( aCategory == KPSUidHWRMFmTx )
   305     else if ( aCategory == KPSUidHWRMFmTx )
   322         {
   306         {
   323         HandleHwrmFmTxCategoryL( aKey, value );
   307         HandleHwrmFmTxCategoryL( aKey, value );
   324         }
   308         }
   325 */
       
   326     else if ( aCategory == KPSUidDataSynchronizationInternalKeys )
   309     else if ( aCategory == KPSUidDataSynchronizationInternalKeys )
   327         {
   310         {
   328         HandleDataSyncCategoryL( aKey, value );
   311         HandleDataSyncCategoryL( aKey, value );
   329         }
   312         }
   330     else if ( aCategory == KPosIndicatorCategoryUid )
   313     else if ( aCategory == KPosIndicatorCategoryUid )
   332         HandlePosIndicatorCategoryL( aKey, value );
   315         HandlePosIndicatorCategoryL( aKey, value );
   333         }
   316         }
   334     else if ( aCategory == KUidPSSMSStackCategory )
   317     else if ( aCategory == KUidPSSMSStackCategory )
   335         {
   318         {
   336         HandleSmsStackCategoryL( aKey, value );
   319         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 );
       
   345         }
   320         }
   346     }
   321     }
   347 // ----------------------------------------------------------------------------
   322 // ----------------------------------------------------------------------------
   348 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL()
   323 // CSysApPubSubObserver::HandleCoreAppUIsCategoryL()
   349 // ----------------------------------------------------------------------------
   324 // ----------------------------------------------------------------------------
   384                 }
   359                 }
   385             break;
   360             break;
   386         case KCoreAppUIsUipInd:
   361         case KCoreAppUIsUipInd:
   387             if ( aValue == ECoreAppUIsDoNotShow )
   362             if ( aValue == ECoreAppUIsDoNotShow )
   388                 {
   363                 {
   389  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); 
   364                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); 
   390                 }
   365                 }
   391             else if ( aValue == ECoreAppUIsShow )
   366             else if ( aValue == ECoreAppUIsShow )
   392                 {
   367                 {
   393 //                iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); 
   368                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); 
   394                 }
   369                 }
   395             break;
   370             break;
   396         case KCoreAppUIsMessageToneQuit:
   371         case KCoreAppUIsMessageToneQuit:
   397  //           iSysApAppUi.HandleMessageTonePlayingQuitability( aValue );
   372             iSysApAppUi.HandleMessageTonePlayingQuitability( aValue );
   398             break;
   373             break;
   399         case KCoreAppUIsNspsRawKeyEvent:
   374         case KCoreAppUIsNspsRawKeyEvent:
   400             iSysApAppUi.HandleNspsRawKeyEventL();
   375             iSysApAppUi.HandleNspsRawKeyEventL();
   401             break;
   376             break;
   402         case KCoreAppUIsLightsRawKeyEvent:
   377         case KCoreAppUIsLightsRawKeyEvent:
   424             break;
   399             break;
   425             }
   400             }
   426         case KCoreAppUIsNewEmailStatus:
   401         case KCoreAppUIsNewEmailStatus:
   427             if ( aValue == ECoreAppUIsNewEmail )
   402             if ( aValue == ECoreAppUIsNewEmail )
   428                 {
   403                 {
   429  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn );
   404                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn );
   430                 }
   405                 }
   431             else if ( aValue == ECoreAppUIsNoNewEmail )
   406             else if ( aValue == ECoreAppUIsNoNewEmail )
   432                 {
   407                 {
   433  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff );
   408                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff );
   434                 }
   409                 }
   435             break;
   410             break;
   436 
   411 
   437         case KCoreAppUIsAutolockStatus:
   412         case KCoreAppUIsAutolockStatus:
   438             if ( aValue == EAutolockOff )
   413             if ( aValue == EAutolockOff )
   446             break;
   421             break;
   447 
   422 
   448         case KCoreAppUIsPoCIndicator:
   423         case KCoreAppUIsPoCIndicator:
   449             if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized )
   424             if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized )
   450                 {
   425                 {
   451  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff );
   426                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff );
   452  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff );
   427                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff );
   453                 }
   428                 }
   454             else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb )
   429             else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb )
   455                 {
   430                 {
   456  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff );
   431                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff );
   457  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn );
   432                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn );
   458                 }
   433                 }
   459             else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn )
   434             else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn )
   460                 {
   435                 {
   461 //                iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn );
   436                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn );
   462 //                iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff );
   437                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff );
   463                 }
   438                 }
   464             break;
   439             break;
   465         case KCoreAppUIsPoCMissedIndicator:
   440         case KCoreAppUIsPoCMissedIndicator:
   466             if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized )
   441             if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized )
   467                 {
   442                 {
   468  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff );
   443                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff );
   469                 }
   444                 }
   470             else if ( aValue == ECoreAppUIsPocMissedIndicatorOn )
   445             else if ( aValue == ECoreAppUIsPocMissedIndicatorOn )
   471                 {
   446                 {
   472  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn );
   447                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn );
   473                 }
   448                 }
   474             break;
   449             break;
   475             
   450             
   476         case KCoreAppUIsTarmIndicator:
   451         case KCoreAppUIsTarmIndicator:
   477  //           iSysApAppUi.HandleTarmIndicatorL( aValue );
   452             iSysApAppUi.HandleTarmIndicatorL( aValue );
   478             break;
   453             break;
   479 
   454 
   480         case KCoreAppUIsMtvRecStatus:
   455         case KCoreAppUIsMtvRecStatus:
   481             if ( aValue == ECoreAppUIsMtvRecStatusOn  )
   456             if ( aValue == ECoreAppUIsMtvRecStatusOn  )
   482                 {
   457                 {
   483  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn );
   458                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn );
   484                 }
   459                 }
   485             else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized )
   460             else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized )
   486                 {
   461                 {
   487  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff );
   462                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff );
   488                 }
   463                 }
   489             break;
   464             break;
   490 
   465 
   491         case KCoreAppUIsMtvDvbhStatus:
   466         case KCoreAppUIsMtvDvbhStatus:
   492             if ( aValue == ECoreAppUIsMtvDvbhStatusOn )
   467             if ( aValue == ECoreAppUIsMtvDvbhStatusOn )
   493                 {
   468                 {
   494  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn );
   469                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn );
   495                 }
   470                 }
   496             else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized )
   471             else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized )
   497                 {
   472                 {
   498 //                iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff );
   473                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff );
   499                 }
   474                 }
   500             break;
   475             break;
   501         
   476         
   502         case KCoreAppUIsVideoSharingIndicator:
   477         case KCoreAppUIsVideoSharingIndicator:
   503             if ( aValue == ECoreAppUIsVideoSharingIndicatorOn )
   478             if ( aValue == ECoreAppUIsVideoSharingIndicatorOn )
   504                 {
   479                 {
   505  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn );
   480                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn );
   506                 }
   481                 }
   507             else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized )
   482             else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized )
   508                 {
   483                 {
   509  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff );
   484                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff );
   510                 }
   485                 }
   511             break;
   486             break;
   512             
   487 
   513         case KCoreAppUIsPowerMenuCustomDialogStatus:
       
   514             if ( aValue == ECoreAppUIsPowerMenuCustomDialogOn )
       
   515                 { 
       
   516                 TBool powerMenuMemoryStatus = EFalse;
       
   517                 powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory();
       
   518                 if(powerMenuMemoryStatus)
       
   519                     {
       
   520                     RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff );
       
   521                     }
       
   522                 }
       
   523             else if(aValue == ECoreAppUIsMemoryCardCustomDialogOk)
       
   524                 {
       
   525                 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOk") ) );
       
   526                 TBool memoryCardStatus = EFalse;
       
   527                 memoryCardStatus = iSysApAppUi.NotifiedDialogIfRequiredAndReleaseMemory();
       
   528                 if(memoryCardStatus)
       
   529                     {
       
   530                     TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus Begin") ) );                                       
       
   531                     RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff );
       
   532                     TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus end") ) );
       
   533                     }
       
   534                 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus final end") ) );
       
   535                                     
       
   536                 }
       
   537             else if(aValue == ECoreAppUIsMemoryCardCustomDialogCancel)
       
   538                 {
       
   539                 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogCancel") ) );
       
   540                 iSysApAppUi.ReleaseMemoryForMemoryCardDialog();
       
   541                 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff );
       
   542                 }
       
   543             else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized )
       
   544                 {
       
   545                    // do nothing
       
   546                 }
       
   547             break;   
       
   548         
       
   549         default:
   488         default:
   550             break;
   489             break;
   551         }
   490         }
   552     }
   491     }
   553 
   492 
   584 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue )
   523 void CSysApPubSubObserver::HandleSystemCategoryL( const TUint aKey, const TInt aValue )
   585     {
   524     {
   586     switch ( aKey )
   525     switch ( aKey )
   587         {
   526         {
   588         case KUidInboxStatusValue:
   527         case KUidInboxStatusValue:
   589 //            iSysApAppUi.SetEnvelopeIndicatorL();
   528             iSysApAppUi.SetEnvelopeIndicatorL();
   590             break;
   529             break;
   591 
   530 
   592         case KUidOutboxStatusValue:
   531         case KUidOutboxStatusValue:
   593             if ( aValue == ESADocumentsInOutbox )
   532             if ( aValue == ESADocumentsInOutbox )
   594                 {
   533                 {
   595  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn );
   534                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn );
   596                 }
   535                 }
   597             //Hide the Outbox indicator
   536             //Hide the Outbox indicator
   598             else if ( aValue == ESAOutboxEmpty )
   537             else if ( aValue == ESAOutboxEmpty )
   599                 {
   538                 {
   600 //                iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff );
   539                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff );
   601                 }
   540                 }
   602             break;
   541             break;
   603 
   542 
   604         case KIrdaStatus:
   543         case KIrdaStatus:
   605             if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected )
   544             if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected )
   606                 {
   545                 {
   607  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate );
   546                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate );
   608                 }
   547                 }
   609             else if ( aValue == TIrdaStatusCodes::EIrConnected )
   548             else if ( aValue == TIrdaStatusCodes::EIrConnected )
   610                 {
   549                 {
   611  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn );
   550                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn );
   612                 }
   551                 }
   613             else if ( aValue == TIrdaStatusCodes::EIrUnloaded )
   552             else if ( aValue == TIrdaStatusCodes::EIrUnloaded )
   614                 {
   553                 {
   615  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff );
   554                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff );
   616                 }
   555                 }
   617             break;
   556             break;
   618 
   557 
   619 //        case KPSUidGprsStatusValue:
   558         case KPSUidGprsStatusValue:
   620  //       case KPSUidWcdmaStatusValue:        
   559         case KPSUidWcdmaStatusValue:        
   621  //           iSysApAppUi.SetSignalIndicatorL();
   560             iSysApAppUi.SetSignalIndicatorL();
   622 //            break;
   561             break;
   623 
   562 
   624         case KPSUidLocationGlobalPrivacyValue:
   563         case KPSUidLocationGlobalPrivacyValue:
   625 //            iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue );
   564             iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue );
   626             break;
   565             break;
   627 
   566 
   628         case conn::KUidBackupRestoreKey:
   567         case conn::KUidBackupRestoreKey:
   629             {            
   568             {            
   630             conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask );
   569             conn::TBURPartType partType = static_cast< conn::TBURPartType >( aValue & conn::KBURPartTypeMask );
   653 void CSysApPubSubObserver::HandleHwrmPowerStateCategoryL( const TUint aKey, const TInt aValue )
   592 void CSysApPubSubObserver::HandleHwrmPowerStateCategoryL( const TUint aKey, const TInt aValue )
   654     {
   593     {
   655     switch ( aKey )
   594     switch ( aKey )
   656         {
   595         {
   657         case KHWRMBatteryLevel:
   596         case KHWRMBatteryLevel:
   658  //           iSysApAppUi.UpdateBatteryBarsL( aValue );
   597             iSysApAppUi.UpdateBatteryBarsL( aValue );
   659             break;
   598             break;
   660         
   599         
   661         case KHWRMBatteryStatus:
   600         case KHWRMBatteryStatus:
   662             iSysApAppUi.HandleBatteryStatusL( aValue );            
   601             iSysApAppUi.HandleBatteryStatusL( aValue );            
   663             break;
   602             break;
   668 
   607 
   669         default:
   608         default:
   670             break;
   609             break;
   671         } 
   610         } 
   672     }
   611     }
   673 /*
   612 
   674 // ----------------------------------------------------------------------------
   613 // ----------------------------------------------------------------------------
   675 // CSysApPubSubObserver::HandleHwrmFmTxCategoryL()
   614 // CSysApPubSubObserver::HandleHwrmFmTxCategoryL()
   676 // ----------------------------------------------------------------------------
   615 // ----------------------------------------------------------------------------
   677 void CSysApPubSubObserver::HandleHwrmFmTxCategoryL( const TUint aKey, 
   616 void CSysApPubSubObserver::HandleHwrmFmTxCategoryL( const TUint aKey, 
   678                                                     const TInt aValue )
   617                                                     const TInt aValue )
   701                     {
   640                     {
   702                     // Active/Inactive -> Off state                    
   641                     // Active/Inactive -> Off state                    
   703                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition")));
   642                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition")));
   704                     
   643                     
   705     	            // turn any FM TX indicators off
   644     	            // turn any FM TX indicators off
   706 //	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );
   645 	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );
   707 //	                iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );
   646 	                iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );
   708                     
   647                     
   709                     // give notification
   648                     // give notification
   710                     if ( aValue == EFmTxStatePowerSaveAccessory )
   649                     if ( aValue == EFmTxStatePowerSaveAccessory )
   711                     	{
   650                     	{
   712 //                    	iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote );
   651                     	iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote );
   713                     	}
   652                     	}
   714                     else
   653                     else
   715                     	{
   654                     	{
   716  //                   	iSysApAppUi.ShowUiNoteL( EFmTxOffNote );
   655                     	iSysApAppUi.ShowUiNoteL( EFmTxOffNote );
   717                     	}
   656                     	}
   718                     isFmTxTurnedOff = ETrue;                                                                           	
   657                     isFmTxTurnedOff = ETrue;                                                                           	
   719                     }
   658                     }
   720                 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning )
   659                 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning )
   721                     {
   660                     {
   722                     // Active -> Inactive
   661                     // Active -> Inactive
   723                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition")));
   662                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition")));
   724                    
   663                    
   725                     // enable not sending indicator
   664                     // enable not sending indicator
   726 //	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );                      
   665 	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );                      
   727 //                    iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn );                  
   666                     iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn );                  
   728                     }
   667                     }
   729                 else if ( aValue == EFmTxStateActive )
   668                 else if ( aValue == EFmTxStateActive )
   730                     {
   669                     {
   731                     // Inactive -> Active
   670                     // Inactive -> Active
   732                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition")));
   671                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition")));
   733                     
   672                     
   734                     // enable active indicator
   673                     // enable active indicator
   735 //                    iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );    
   674                     iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );    
   736 //                    iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn );					                
   675                     iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn );					                
   737                     }    
   676                     }    
   738         
   677         
   739                 break;    
   678                 break;    
   740  
   679  
   741 			// Previous "Off" states       
   680 			// Previous "Off" states       
   748                     {
   687                     {
   749                     // Off -> Active
   688                     // Off -> Active
   750                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition")));
   689                     TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition")));
   751                                         
   690                                         
   752                     // enable active indicator
   691                     // enable active indicator
   753  //                   iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );   
   692                     iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff );   
   754  //                   iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn );					                  
   693                     iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn );					                  
   755                     
   694                     
   756                     // give notification
   695                     // give notification
   757  //                   iSysApAppUi.ShowUiNoteL( EFmTxOnNote );
   696                     iSysApAppUi.ShowUiNoteL( EFmTxOnNote );
   758                     isFmTxTurnedOn = ETrue;
   697                     isFmTxTurnedOn = ETrue;
   759                     }
   698                     }
   760                 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning )
   699                 else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning )
   761                 	{
   700                 	{
   762                 	// Off -> Inactive
   701                 	// Off -> Inactive
   763                 	TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition")));
   702                 	TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition")));
   764                 	
   703                 	
   765                     // enable not sending indicator
   704                     // enable not sending indicator
   766 //	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );                      
   705 	                iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff );                      
   767  //                   iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn );                      	
   706                     iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn );                      	
   768                     
   707                     
   769                     // give notification
   708                     // give notification
   770  //                   iSysApAppUi.ShowUiNoteL( EFmTxOnNote );
   709                     iSysApAppUi.ShowUiNoteL( EFmTxOnNote );
   771                     isFmTxTurnedOn = ETrue;
   710                     isFmTxTurnedOn = ETrue;
   772                 	}                
   711                 	}                
   773                 break;                
   712                 break;                
   774                             
   713                             
   775             }
   714             }
   776             
   715         
       
   716         if ( aValue == EFmTxStateActive )
       
   717             {
       
   718             if(iFmTxRemConObserver)
       
   719                 {
       
   720                 //Open Remcon and reserve the volume keys
       
   721                 iFmTxRemConObserver->StartRemconInterfaceL();
       
   722                 }
       
   723             }
       
   724         else 
       
   725             {
       
   726             if(iFmTxRemConObserver)
       
   727                 {
       
   728                 //Disconnect from Remcon and release keys for other apps like phone app during call
       
   729                 iFmTxRemConObserver->StopRemconInterface();
       
   730                 }
       
   731             }
       
   732         
   777         if ( isFmTxTurnedOn )
   733         if ( isFmTxTurnedOn )
   778             {
   734             {
   779             if ( !iFmTxRemConObserver )
   735             if ( !iFmTxRemConObserver )
   780                 {
   736                 {
   781                 // create observer which captures volume keys
   737                 // create observer which captures volume keys
   809             iFmTxRemConObserver = NULL;
   765             iFmTxRemConObserver = NULL;
   810             }
   766             }
   811         iPreviousFmTxPSValue = aValue;
   767         iPreviousFmTxPSValue = aValue;
   812         }
   768         }
   813     }
   769     }
   814 */
       
   815 
   770 
   816 // ----------------------------------------------------------------------------
   771 // ----------------------------------------------------------------------------
   817 // CSysApPubSubObserver::HandleWlanCategoryL()
   772 // CSysApPubSubObserver::HandleWlanCategoryL()
   818 // ----------------------------------------------------------------------------
   773 // ----------------------------------------------------------------------------
   819 void CSysApPubSubObserver::HandleWlanCategoryL( const TUint aKey, const TInt aValue )
   774 void CSysApPubSubObserver::HandleWlanCategoryL( const TUint aKey, const TInt aValue )
   853     switch ( aKey )
   808     switch ( aKey )
   854         {
   809         {
   855         case KNWHomeZoneStatus:
   810         case KNWHomeZoneStatus:
   856             if ( aValue == ENWHomeZone )
   811             if ( aValue == ENWHomeZone )
   857                 {
   812                 {
   858  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn );
   813                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn );
   859                 }
   814                 }
   860             else if ( aValue == ENWNone || aValue == ENWCityZone )
   815             else if ( aValue == ENWNone || aValue == ENWCityZone )
   861                 {
   816                 {
   862  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff );
   817                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff );
   863                 }
   818                 }
   864             break; 
   819             break; 
   865 
   820 
   866         case KNWTelephonyNetworkMode:
   821         case KNWTelephonyNetworkMode:
   867  //           iSysApAppUi.SetSignalIndicatorL();
   822             iSysApAppUi.SetSignalIndicatorL();
   868             break;
   823             break;
   869 
   824 
   870         default:
   825         default:
   871             break;
   826             break;
   872         } 
   827         } 
   880     switch ( aKey )
   835     switch ( aKey )
   881         {
   836         {
   882         case KHWRMFlipStatus:
   837         case KHWRMFlipStatus:
   883             if ( aValue == EPSHWRMFlipClosed )
   838             if ( aValue == EPSHWRMFlipClosed )
   884                 {
   839                 {
   885  //               iSysApAppUi.SimulateFlipKeyEventL( EFalse );
   840                 iSysApAppUi.SimulateFlipKeyEventL( EFalse );
   886                 }
   841                 }
   887             else if ( aValue == EPSHWRMFlipOpen )
   842             else if ( aValue == EPSHWRMFlipOpen )
   888                 {
   843                 {
   889  //               iSysApAppUi.SimulateFlipKeyEventL( ETrue );
   844                 iSysApAppUi.SimulateFlipKeyEventL( ETrue );
   890                 }
   845                 }
   891             break; 
   846             break; 
   892 
   847 
   893         default:
   848         default:
   894             break;
   849             break;
   903     switch ( aKey )
   858     switch ( aKey )
   904         {
   859         {
   905         case KDataSyncStatus:
   860         case KDataSyncStatus:
   906             if ( aValue > EDataSyncNotRunning )
   861             if ( aValue > EDataSyncNotRunning )
   907                 {
   862                 {
   908  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn );
   863                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn );
   909                 }
   864                 }
   910             else
   865             else
   911                 {
   866                 {
   912   //              iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff );
   867                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff );
   913                 }
   868                 }
   914             break;
   869             break;
   915         
   870         
   916         default:
   871         default:
   917             break;        
   872             break;        
   927     switch ( aKey )
   882     switch ( aKey )
   928         {
   883         {
   929         case KPosIntGpsHwStatus:
   884         case KPosIntGpsHwStatus:
   930             if ( aValue == EPosIntGpsHwOff )
   885             if ( aValue == EPosIntGpsHwOff )
   931                 {
   886                 {
   932                 iSysApAppUi.iHbIndicatorSymbian->Deactivate(KGpsIndicatorPlugin);
   887                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff );
   933  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff );
       
   934                 }
   888                 }
   935             else if ( aValue == EPosIntGpsHwOn )    
   889             else if ( aValue == EPosIntGpsHwOn )    
   936                 {
   890                 {
   937                 iSysApAppUi.iHbIndicatorSymbian->Activate(KGpsIndicatorPlugin);
   891                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn );
   938  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn );
       
   939                 }
   892                 }
   940             else if ( aValue == EPosIntGpsHwIntermediate )
   893             else if ( aValue == EPosIntGpsHwIntermediate )
   941                 {
   894                 {
   942  //               iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate );
   895                 iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate );
   943                 }
   896                 }
   944             break;
   897             break;
   945         
   898         
   946         default:
   899         default:
   947             break;
   900             break;
   954 
   907 
   955 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ )
   908 void CSysApPubSubObserver::HandleSmsStackCategoryL( const TUint aKey, const TInt /*aValue*/ )
   956     {
   909     {
   957     switch ( aKey )
   910     switch ( aKey )
   958         {
   911         {
   959         case KAknKeyguardStatus:
   912         case KUidPSSMSStackDiskSpaceMonitorKey:
   960  //           iSysApAppUi.SetEnvelopeIndicatorL();
   913             iSysApAppUi.SetEnvelopeIndicatorL();
   961             break;
   914             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;
       
   997 
   915 
   998         default:
   916         default:
   999             break;
   917             break;
  1000         }
   918         }
  1001     }
   919     }
  1002 
   920 
  1003 // End of File
   921 // End of File
       
   922 
       
   923 
       
   924