engine/src/ConnectionEngine.cpp
branch3rded
changeset 177 269e3f3e544a
parent 176 1c8b56cb6409
equal deleted inserted replaced
176:1c8b56cb6409 177:269e3f3e544a
    59 //		delete iMobility;
    59 //		delete iMobility;
    60 //		iMobility = NULL;
    60 //		iMobility = NULL;
    61 //		iMobility = CActiveCommsMobilityApiExt::NewL( iConnection, *this );
    61 //		iMobility = CActiveCommsMobilityApiExt::NewL( iConnection, *this );
    62 //		}
    62 //		}
    63 //	
    63 //	
    64 //	iConnectionState = iStatus.Int() == KErrNone?CConnectionEngine::EConnected:CConnectionEngine::ENotConnected;
    64 	iConnectionState = iStatus.Int() == KErrNone?CConnectionEngine::EConnected:CConnectionEngine::ENotConnected;
    65 //	ReportConnectionL( iStatus.Int() );
    65 	ReportConnectionL( iStatus.Int() );
    66 	}
    66 	}
    67 
    67 
    68 void CConnectionEngine::DoCancel()
    68 void CConnectionEngine::DoCancel()
    69 	{
    69 	{
    70 	}
    70 	}
   147 	{
   147 	{
   148 	DP1("CConnectionEngine::StartL, aConnectionType=%d", aConnectionType);
   148 	DP1("CConnectionEngine::StartL, aConnectionType=%d", aConnectionType);
   149 	
   149 	
   150 	iConnection.Close();
   150 	iConnection.Close();
   151 	User::LeaveIfError( iConnection.Open( iSocketServer ) );
   151 	User::LeaveIfError( iConnection.Open( iSocketServer ) );
   152 //	// Connect using UI Setting
   152 
   153 //	if(aConnectionType == EDefaultConnection)
   153 	// Connect using UI Setting
   154 //		{
   154 	if(aConnectionType == EDefaultConnection || EUserSelectConnection)
   155 //		iConnection.Start( iStatus );
   155 		{
   156 //		SetActive();
   156 		iConnection.Start( iStatus );
   157 //		}
   157 		SetActive();
       
   158 		}
   158 //	else if(aConnectionType == EUserSelectConnection)
   159 //	else if(aConnectionType == EUserSelectConnection)
   159 //		{				
   160 //		{				
   160 //		TBool selected = ConnectionSettingL();
   161 //		TBool selected = ConnectionSettingL();
   161 //
   162 //
   162 //		if ( selected )
   163 //		if ( selected )
   184 //			User::RequestComplete(status, KErrCancel);
   185 //			User::RequestComplete(status, KErrCancel);
   185 //			}
   186 //			}
   186 //		
   187 //		
   187 //			SetActive();
   188 //			SetActive();
   188 //		}	
   189 //		}	
   189 //	else if (aConnectionType == EIAPConnection)
   190 	else if (aConnectionType == EIAPConnection)
   190 //		{
   191 		{
   191 //		iCommdbPreference.SetIapId((iPodcastModel.SettingsEngine().SpecificIAP()& KUseIAPMask));
   192 		iCommdbPreference.SetIapId((iPodcastModel.SettingsEngine().SpecificIAP()& KUseIAPMask));
   192 //		iCommdbPreference.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
   193 		iCommdbPreference.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
   193 //		iCommdbPreference.SetDirection(ECommDbConnectionDirectionOutgoing);
   194 		iCommdbPreference.SetDirection(ECommDbConnectionDirectionOutgoing);
   194 //		iConnection.Start( iCommdbPreference, iStatus );
   195 		iConnection.Start( iCommdbPreference, iStatus );
   195 //		SetActive();
   196 		SetActive();
   196 //		}
   197 		}
   197 //	// Connect using SNAP 
   198 //	// Connect using SNAP 
   198 //	else
   199 //	else
   199 //		{
   200 //		{
   200 //		iSnapPreference.SetSnap(iPodcastModel.SettingsEngine().SpecificIAP());
   201 //		iSnapPreference.SetSnap(iPodcastModel.SettingsEngine().SpecificIAP());
   201 //		iConnection.Start( iSnapPreference, iStatus );
   202 //		iConnection.Start( iSnapPreference, iStatus );