diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-DD77AA04-D0AB-4BEB-900F-B3BE50AC0B7F.dita --- a/Symbian3/SDK/Source/GUID-DD77AA04-D0AB-4BEB-900F-B3BE50AC0B7F.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-DD77AA04-D0AB-4BEB-900F-B3BE50AC0B7F.dita Tue Jul 20 12:00:49 2010 +0100 @@ -12,38 +12,38 @@ Opening a Connection based on User SelectionExtended Connection Preferences API can be used by applications to open a connection based on user selection. -

When an +

When an application chooses to establish a connection based on user selection, Connection selection dialog needs to be enabled. Only the SNAPs and IAPs matching with bearer set are displayed for selection.

- -Connect to socket server . + +Connect to socket server . RSocketServ ss; ss.Connect(); - Open a RConnection object. + Open a RConnection object. RConnection conn; conn.Open( ss ); -Create a connection +Create a connection preference list and extended connection preferences object. TConnPrefList prefList; TExtendedConnPref preferences; -Enable the Connection +Enable the Connection selection dialog to accept user queries using TExtendedConnPref::SetConnSelectionDialog(). preferences.SetConnSelectionDialog( ETrue ); -Append extended +Append extended connection preferences into connection preference list. prefList.AppendL( &preferences ); -Start a connection +Start a connection with connection preferences. conn.Start( prefList ); -

The application +

The application is connected to the SNAP or IAP selected by the user.

Additional