telephonyprotocols/pdplayer/src/PDPConfig.cpp
branchRCL_3
changeset 9 962e6306d9d2
parent 0 3553901f7fa8
child 15 fc69e1e37771
child 23 6b1d113cdff3
equal deleted inserted replaced
0:3553901f7fa8 9:962e6306d9d2
    80 	    {
    80 	    {
    81 	    // default to GPRS
    81 	    // default to GPRS
    82 	    getErr = KErrNone;
    82 	    getErr = KErrNone;
    83 	    iUmtsGprsRelease = TPacketDataConfigBase::KConfigGPRS;
    83 	    iUmtsGprsRelease = TPacketDataConfigBase::KConfigGPRS;
    84 	    }
    84 	    }
       
    85 	    
       
    86 	TBool useEdge = EFalse;
       
    87 	
       
    88 	aIapView->GetBoolL(KCDTIdWCDMAUseEdge | KCDTIdOutgoingGprsRecord, useEdge);
    85 	
    89 	
    86 	getErr = InitialiseScratchContext(iUmtsGprsRelease);
    90 	getErr = InitialiseScratchContext(iUmtsGprsRelease);
    87 	//-====================================================
    91 	//-====================================================
    88 	//LENIENT PROVISION
    92 	//LENIENT PROVISION
    89 	//-====================================================
    93 	//-====================================================
   102                 contextGPRS.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   106                 contextGPRS.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   103             RetrieveAuthenticationInfoL(contextGPRS.iProtocolConfigOption, aIapView);
   107             RetrieveAuthenticationInfoL(contextGPRS.iProtocolConfigOption, aIapView);
   104             // GPRS specific
   108             // GPRS specific
   105         	RetrieveGprsCompression(contextGPRS.iPdpCompression, aIapView);
   109         	RetrieveGprsCompression(contextGPRS.iPdpCompression, aIapView);
   106         	RetrieveGprsAnonymousAccess(contextGPRS.iAnonymousAccessReqd, aIapView);
   110         	RetrieveGprsAnonymousAccess(contextGPRS.iAnonymousAccessReqd, aIapView);
   107         	contextGPRS.iUseEdge = EFalse;
   111         	contextGPRS.iUseEdge = useEdge;
   108 			}
   112 			}
   109 			break;
   113 			break;
   110 	    case TPacketDataConfigBase::KConfigRel5:
   114 	    case TPacketDataConfigBase::KConfigRel5:
   111 			{
   115 			{
   112             // Rel 5 specific
   116             // Rel 5 specific
   117             RetrieveApnNameL(contextR5.iAccessPointName, aIapView);
   121             RetrieveApnNameL(contextR5.iAccessPointName, aIapView);
   118             RetrieveIPAndDnsSettingsL(contextR5.iPdpAddress,
   122             RetrieveIPAndDnsSettingsL(contextR5.iPdpAddress,
   119             		contextR5.iProtocolConfigOption.iDnsAddresses.iPrimaryDns,
   123             		contextR5.iProtocolConfigOption.iDnsAddresses.iPrimaryDns,
   120             		contextR5.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   124             		contextR5.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   121             RetrieveAuthenticationInfoL(contextR5.iProtocolConfigOption, aIapView);
   125             RetrieveAuthenticationInfoL(contextR5.iProtocolConfigOption, aIapView);
   122             contextR5.iUseEdge = EFalse;
   126             contextR5.iUseEdge = useEdge;
   123 
   127 
   124     		RetrieveUmtsPacketFlowIdentifierL(contextR5.iPFI, aIapView);
   128     		RetrieveUmtsPacketFlowIdentifierL(contextR5.iPFI, aIapView);
   125 			}
   129 			}
   126 			break;
   130 			break;
   127 	    case TPacketDataConfigBase::KConfigRel99Rel4:
   131 	    case TPacketDataConfigBase::KConfigRel99Rel4:
   132             RetrieveApnNameL(contextUMTS.iAccessPointName, aIapView);
   136             RetrieveApnNameL(contextUMTS.iAccessPointName, aIapView);
   133             RetrieveIPAndDnsSettingsL(contextUMTS.iPdpAddress,
   137             RetrieveIPAndDnsSettingsL(contextUMTS.iPdpAddress,
   134                 contextUMTS.iProtocolConfigOption.iDnsAddresses.iPrimaryDns,
   138                 contextUMTS.iProtocolConfigOption.iDnsAddresses.iPrimaryDns,
   135                 contextUMTS.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   139                 contextUMTS.iProtocolConfigOption.iDnsAddresses.iSecondaryDns, aIapView);
   136             RetrieveAuthenticationInfoL(contextUMTS.iProtocolConfigOption, aIapView);
   140             RetrieveAuthenticationInfoL(contextUMTS.iProtocolConfigOption, aIapView);
   137             contextUMTS.iUseEdge = EFalse;
   141             contextUMTS.iUseEdge = useEdge;
   138             RetrieveUmtsPacketFlowIdentifierL(contextUMTS.iPFI, aIapView);
   142             RetrieveUmtsPacketFlowIdentifierL(contextUMTS.iPFI, aIapView);
   139 			}
   143 			}
   140 			break;
   144 			break;
   141 	    default:
   145 	    default:
   142 	    	User::Leave(KErrNotSupported);
   146 	    	User::Leave(KErrNotSupported);