equal
deleted
inserted
replaced
226 |
226 |
227 // --------------------------------------------------------------------------- |
227 // --------------------------------------------------------------------------- |
228 // TInt CRtpManager::PrepareConnection() |
228 // TInt CRtpManager::PrepareConnection() |
229 // --------------------------------------------------------------------------- |
229 // --------------------------------------------------------------------------- |
230 // |
230 // |
231 TInt CRtpManager::PrepareConnection( TCommDbConnPref& aPrefs, TInt aIapId ) |
231 TInt CRtpManager::PrepareConnection( TConnPrefList& aPrefs, TInt aIapId ) |
232 { |
232 { |
233 RTP_DEBUG_DETAIL( "CRtpManager::PrepareConnection" ); |
233 RTP_DEBUG_DETAIL( "CRtpManager::PrepareConnection" ); |
234 |
234 |
235 TInt err( KErrCouldNotConnect ); |
235 TInt err( KErrCouldNotConnect ); |
236 |
236 |
237 if ( aIapId != KUseDefaultIap ) |
237 if ( aIapId != KUseDefaultIap ) |
238 { |
238 { |
239 aPrefs.SetDialogPreference( ECommDbDialogPrefDoNotPrompt ); |
239 iPreferences.SetIapId( aIapId ); |
240 aPrefs.SetIapId( aIapId ); |
240 aPrefs.AppendL( &iPreferences ); |
241 } |
241 } |
242 |
|
243 aPrefs.SetDirection( ECommDbConnectionDirectionOutgoing ); |
|
244 |
|
245 err = iSocketServPtr->Connect(); |
242 err = iSocketServPtr->Connect(); |
246 |
243 |
247 if ( err != KErrNone ) |
244 if ( err != KErrNone ) |
248 { |
245 { |
249 iSocketServPtr->Close(); |
246 iSocketServPtr->Close(); |