coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp
branchRCL_3
changeset 62 924385140d98
parent 58 0818dd463d41
child 63 c2c61fdca848
--- a/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp	Thu Aug 19 10:05:08 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp	Tue Aug 31 15:24:25 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -69,6 +69,12 @@
 
 void CSysApCenRepLogsObserver::ConstructL()
     {
+    const TUid KCRUidLogs = {0x101F874E};
+    /**
+    * Informs the Logs application about the amount of new missed calls.
+    * Integer type
+    **/
+    const TUint32 KLogsNewMissedCalls = 0x00000006;
     TRAPD( err, iSession = CRepository::NewL( KCRUidLogs ) );
     TRACES( RDebug::Print( _L("CSysApCenRepLogsObserver::ConstructL: err=%d (KCRUidLogs)"), err ) );
     User::LeaveIfError( err );
@@ -79,7 +85,7 @@
                                     KLogsNewMissedCalls );
                                     iNewMissedCallsHandler->StartListeningL();
     
-    User::LeaveIfError(iSession->Get(KLogsNewMissedCalls, iMissedCallsValue));
+    iSession->Get(KLogsNewMissedCalls, iMissedCallsValue);
     }
 
 // ----------------------------------------------------------------------------
@@ -148,9 +154,9 @@
     
     if ( iSimChangedCheckDone && iUiReady )
         {
-        TInt newState( iMissedCallsValue > 0 ? EAknIndicatorStateOn : EAknIndicatorStateOff );
+//        TInt newState( iMissedCallsValue > 0 ? EAknIndicatorStateOn : EAknIndicatorStateOff );
         
-        iSysApAppUi.SetIndicatorStateL( EAknIndicatorMissedCalls, newState );
+//        iSysApAppUi.SetIndicatorStateL( EAknIndicatorMissedCalls, newState );
         }
     }