|
|
Classification: |
C++ |
Category: |
Networking |
Created: |
07/02/2003 |
Modified: |
07/14/2003 |
Number: |
FAQ-0887 |
Platform: |
Symbian OS v7.0 |
|
Question: An application may need to override the ISP Selection Dialog box when initiating an internet connection - this FAQ describes
one method of doing this for Symbian OS v7.0
Answer: The following code fragment sets the Dialog preferences for the default IAP and then starts an outgoing call without displaying
the ISP selection dialog
RGenericAgent netAgent; if (netAgent.Open() == KErrNone) { CleanupClosePushL(netAgent); CCommsDatabase* db=CCommsDatabase::NewL(); CleanupStack::PushL(db); CCommsDbConnectionPrefTableView* view = db->OpenConnectionPrefTableViewOnRankLC(ECommDbConnectionDirectionOutgoing,1); view->GotoFirstRecord(); view->UpdateDialogPrefL(ECommDbDialogPrefDoNotPrompt); TRequestStatus status; netAgent.StartOutgoing(status); User::WaitForRequest(status); CleanupStack::PopAndDestroy(3); // view, db, netAgent }
|
|
|