networkprotocolmodules/suplprotocolmodule/SuplConnectionManager/src/socketwriter.cpp
changeset 60 9a7e3d5f461a
parent 36 b47902b73a93
equal deleted inserted replaced
51:95c570bf4a05 60:9a7e3d5f461a
   189 	TLbsHostSettingsSupl::TLbsConnectionType connectionType;
   189 	TLbsHostSettingsSupl::TLbsConnectionType connectionType;
   190 	iHostSettings.GetConnectionPoint(ap, connectionType);
   190 	iHostSettings.GetConnectionPoint(ap, connectionType);
   191 	
   191 	
   192 	if (connectionType == TLbsHostSettingsSupl::ELbsConnectionTypeInvalid)
   192 	if (connectionType == TLbsHostSettingsSupl::ELbsConnectionTypeInvalid)
   193 		{
   193 		{
       
   194 	    SUPLLOG(ELogP1, "connectionType is TLbsHostSettingsSupl::ELbsConnectionTypeInvalid\n");
       
   195 
   194 		iConnection.Start(iStatus);
   196 		iConnection.Start(iStatus);
   195 		}
   197 		}
   196 	else
   198 	else
   197 		{
   199 		{
   198 		TCommDbConnPref prefs;
   200 		TCommDbConnPref prefs;
   199 		prefs.SetIapId(ap);
   201 		prefs.SetIapId(ap);
   200 		prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
   202 		prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
       
   203 		SUPLLOG2(ELogP1, "iConnection.Start(ap=%d)\n", ap);
   201 		iConnection.Start(prefs, iStatus);
   204 		iConnection.Start(prefs, iStatus);
   202 		}
   205 		}
   203 
   206 
   204 	iState = EConnectingConnection;
   207 	iState = EConnectingConnection;
   205 	StartTimer();
   208 	StartTimer();
   222 			{
   225 			{
   223 			ResolveHost();
   226 			ResolveHost();
   224 			}
   227 			}
   225 		else
   228 		else
   226 			{
   229 			{
   227 			SUPLLOG(ELogP1, "CSocketWriterBase::RunL() Connection Error(KErrCouldNotConnect)\n");
   230 			SUPLLOG2(ELogP1, "CSocketWriterBase::RunL() Connection Error(KErrCouldNotConnect) iStatus = %d\n", iStatus);
   228 			iObserver.ConnectionError(KErrCouldNotConnect, iCallbackId, iLastSessionId, cleanup);
   231 			iObserver.ConnectionError(KErrCouldNotConnect, iCallbackId, iLastSessionId, cleanup);
   229 			}
   232 			}
   230 		break;
   233 		break;
   231 		} // case
   234 		} // case
   232 
   235