bearermanagement/mpm/src/mpmiapselection.cpp
branchRCL_3
changeset 13 68f0c7cd80ec
parent 12 ea6e024ea6f9
child 15 4dc3bb0099b0
equal deleted inserted replaced
12:ea6e024ea6f9 13:68f0c7cd80ec
   147         // Complete selection with error code if wlan only was set and cellular IAP other 
   147         // Complete selection with error code if wlan only was set and cellular IAP other 
   148         // than MMS IAP was tried to access  
   148         // than MMS IAP was tried to access  
   149         if ( wlanOnly && 
   149         if ( wlanOnly && 
   150                 ( bearerType == EMPMBearerTypePacketData ) && 
   150                 ( bearerType == EMPMBearerTypePacketData ) && 
   151                 ( iSession->IsMMSIap( iChooseIapPref.IapId() ) == EFalse ) ) 
   151                 ( iSession->IsMMSIap( iChooseIapPref.IapId() ) == EFalse ) ) 
       
   152             {            
       
   153             ChooseIapComplete( KErrPermissionDenied, NULL );
       
   154             return;
       
   155             }
       
   156         }
       
   157     
       
   158     if  ( iChooseIapPref.ConnSelectionDialog() )
       
   159         {
       
   160         // Complete selection with error code if wlan only was set and bearer set as cellular 
       
   161         if ( wlanOnly && 
       
   162              iChooseIapPref.BearerSet() == TExtendedConnPref::EExtendedConnBearerCellular ) 
   152             {            
   163             {            
   153             ChooseIapComplete( KErrPermissionDenied, NULL );
   164             ChooseIapComplete( KErrPermissionDenied, NULL );
   154             return;
   165             return;
   155             }
   166             }
   156         }
   167         }