Your application should define the connection management items (destination networks, access points, default connection, and always ask) it supports and show only the supported items in the UI. In this example, the application supports default connection, always ask, and destination networks. Access points (if supported) of a certain destination network can be seen under the Options menu when the destination network is highlighted.
#include <cmapplicationsettingsui.h>TCmSettingSelection userSelection; CCmApplicationSettingsUi* settings = CCmApplicationSettingsUi::NewL(); CleanupStack::PushL( settings ); TUint listedItems = EShowAlwaysAsk | EShowDefaultConnection | EShowDestinations | EShowConnectionMethods; TBearerFilterArray filter; settings->RunApplicationSettingsL( userSelection, listedItems, filter ); CleanupStack::PopAndDestroy( settings ); switch ( userSelection.iResult ) { case EDestination: { TConnSnapPref prefs; prefs.SetSnap( userSelection.iId ); iConnection.Start( prefs, iStatus ); break; } case EConnectionMethod: { TCommDbConnPref prefs; prefs.SetIapId( userSelection.iId ); prefs.SetDialogPreference( ECommDbDialogPrefDoNotPrompt ); iConnection.Start( prefs, iStatus ); break; } case EDefaultConnection: { iConnection.Start( iStatus ); break; } default: // EAlwaysAsk { TCommDbConnPref prefs; prefs.SetDialogPreference( ECommDbDialogPrefPrompt ); iConnection.Start( prefs, iStatus ); } } SetActive();