19 |
19 |
20 |
20 |
21 #include "mcelocaladdrresolver.h" |
21 #include "mcelocaladdrresolver.h" |
22 #include <es_sock.h> |
22 #include <es_sock.h> |
23 #include <commdbconnpref.h> |
23 #include <commdbconnpref.h> |
|
24 #include <extendedconnpref.h> |
24 |
25 |
25 |
26 |
26 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
27 // CMceLocalAddrResolver::NewL |
28 // CMceLocalAddrResolver::NewL |
28 // ----------------------------------------------------------------------------- |
29 // ----------------------------------------------------------------------------- |
78 // The connection has to be started to get the actual IAP ID from it |
79 // The connection has to be started to get the actual IAP ID from it |
79 // At this point the physical connection should be already up |
80 // At this point the physical connection should be already up |
80 // as the related SIP profile has been registered using it and |
81 // as the related SIP profile has been registered using it and |
81 // the synchronous RConnection::Start should return quickly and |
82 // the synchronous RConnection::Start should return quickly and |
82 // should not hang the whole MCE server process for too long |
83 // should not hang the whole MCE server process for too long |
83 TCommDbConnPref prefs; |
84 TConnPrefList prefList; |
84 prefs.SetDialogPreference( ECommDbDialogPrefDoNotPrompt ); |
85 TExtendedConnPref preferences; |
85 prefs.SetDirection( ECommDbConnectionDirectionOutgoing ); |
86 preferences.SetIapId( aIapId ); |
86 prefs.SetIapId( aIapId ); |
87 prefList.AppendL( &preferences ); |
87 connection.Start( prefs ); |
88 connection.Start( prefList ); |
88 |
89 |
89 // Fetch the actual IAP ID from the started connection |
90 // Fetch the actual IAP ID from the started connection |
90 _LIT( KIapIdSetting, "IAP\\Id" ); |
91 _LIT( KIapIdSetting, "IAP\\Id" ); |
91 User::LeaveIfError( connection.GetIntSetting( KIapIdSetting, iIapId ) ); |
92 User::LeaveIfError( connection.GetIntSetting( KIapIdSetting, iIapId ) ); |
92 |
93 |