diff -r bab96b7ed1a4 -r f39ed5e045e0 phoneengine/phonemodel/src/cpeexternaldatahandler.cpp --- a/phoneengine/phonemodel/src/cpeexternaldatahandler.cpp Tue Jun 15 14:14:38 2010 +0100 +++ b/phoneengine/phonemodel/src/cpeexternaldatahandler.cpp Thu Jul 22 16:33:21 2010 +0100 @@ -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; }