diff -r 4dc3bb0099b0 -r c14618f9de99 bearermanagement/mpm/src/mpmiapselection.cpp --- a/bearermanagement/mpm/src/mpmiapselection.cpp Wed Mar 31 22:15:10 2010 +0300 +++ b/bearermanagement/mpm/src/mpmiapselection.cpp Wed Apr 14 16:22:04 2010 +0300 @@ -43,7 +43,6 @@ iUserSelectionIapId( 0 ), iUserSelectionSnapId( 0 ), iImplicitState( EImplicitStart ), - iOfflineNoteResponse( EOfflineResponseUndefined ), iIsRoaming( EFalse ), iNewWlansAllowed ( EFalse ) { @@ -344,7 +343,7 @@ // KErrGprsOfflineMode should be returned instead of KErrNone. // - if ( !iapTypeLanOrWlan && iSession->IsPhoneOfflineL() ) + if ( !iapTypeLanOrWlan && iSession->MyServer().IsPhoneOffline() ) { ChooseIapComplete( KErrGprsOfflineMode, &iChooseIapPref ); } @@ -512,7 +511,7 @@ { ChooseIapComplete( KErrGprsServicesNotAllowed, NULL ); } - else if ( !iapTypeLanOrWlan && iSession->IsPhoneOfflineL() ) + else if ( !iapTypeLanOrWlan && iSession->MyServer().IsPhoneOffline() ) { // In case offline mode is enabled, only LAN or WLAN is allowed. // If some other bearer has been requested, then error code @@ -952,43 +951,6 @@ } // ----------------------------------------------------------------------------- -// CMPMIapSelection::OfflineNoteResponse -// ----------------------------------------------------------------------------- -// -TOfflineNoteResponse CMPMIapSelection::OfflineNoteResponse() - { -#ifndef _PLATFORM_SIMULATOR_ - MPMLOGSTRING2( "CMPMIapSelection::OfflineNoteResponse: %d", - iOfflineNoteResponse ) - return iOfflineNoteResponse; -#else - // Platsim simulates WLAN and offline-mode. To ease automated testing, - // offline connection confirmation is not asked in Platsim-variant - MPMLOGSTRING( "CMPMIapSelection::OfflineNoteResponse: yes for Platsim" ) - return EOfflineResponseYes; -#endif - } - -// ----------------------------------------------------------------------------- -// CMPMIapSelection::ConnectionStarted -// ----------------------------------------------------------------------------- -// -void CMPMIapSelection::ConnectionStarted() - { - MPMLOGSTRING( "CMPMIapSelection::ConnectionStarted: reset offline response" ) - SetOfflineNoteResponse( EOfflineResponseUndefined ); - } - -// ----------------------------------------------------------------------------- -// CMPMIapSelection::SetOfflineNoteShown -// ----------------------------------------------------------------------------- -// -void CMPMIapSelection::SetOfflineNoteResponse( TOfflineNoteResponse aResponse ) - { - MPMLOGSTRING2( "CMPMIapSelection::SetOfflineNoteResponse %d ", aResponse ) - iOfflineNoteResponse = aResponse; - } -// ----------------------------------------------------------------------------- // CMPMIapSelection::CompleteImplicitConnectionL // ----------------------------------------------------------------------------- // @@ -1003,7 +965,7 @@ iapTypeLanOrWlan, *iSession ); - if ( !iapTypeLanOrWlan && iSession->IsPhoneOfflineL() ) + if ( !iapTypeLanOrWlan && iSession->MyServer().IsPhoneOffline() ) { MPMLOGSTRING2( "CMPMIapSelection::CompleteImplicitConnectionL: Completing with code = %i", KErrGprsOfflineMode )