phoneengine/phonemodel/src/cpeexternaldatahandler.cpp
changeset 46 bc5a64e5bc3c
parent 37 ba76fc04e6c2
child 51 f39ed5e045e0
child 60 1eef62f5c541
--- a/phoneengine/phonemodel/src/cpeexternaldatahandler.cpp	Wed Jun 23 18:12:20 2010 +0300
+++ b/phoneengine/phonemodel/src/cpeexternaldatahandler.cpp	Tue Jul 06 14:15:47 2010 +0300
@@ -94,7 +94,7 @@
     iAccessorySettingsRepository = CRepository::NewL( KCRUidAccessorySettings );*/
     //iTelephonySettingsRepository = CRepository::NewL( KCRUidTelephonySettings );
     iTelephonyVariationRepository = CRepository::NewL( KCRUidTelVariation );
-    //iCoreApplicationRepository = CRepository::NewL( KCRUidCoreApplicationUIs ); 
+    iCoreApplicationRepository = CRepository::NewL( KCRUidCoreApplicationUIs ); 
    
     TEFLOGSTRING( KTAOBJECT, "PE CPEExternalDataHandler::BaseConstructL 2" );
     }
@@ -128,12 +128,19 @@
         errorCode = iCallDurationDisplay->Get( aValue );
         TEFLOGSTRING2( KTAINT, "CPEExternalDataHandler::Get EPECallDurationDisplaySetting, error code: %d", errorCode );
         }
+    else if ( EPENetworkConnectionAllowedSetting == aSetting )
+        {
+        // Fetches setting that indicates if network connection is allowed,
+        // i.e. is the phone in off-line mode. 
+        errorCode = iCoreApplicationRepository
+                ->Get( KCoreAppUIsNetworkConnectionAllowed, aValue );
+        }
     else
         {
         errorCode = KErrNone;
         aValue = 0;        
         }
-    
+
     // Process Common id
     return errorCode;
     }