From 19efe6331326567b6530d67509454c500630a3d7 Mon Sep 17 00:00:00 2001 From: Aleksandar Sasha Babic Date: Wed, 1 Jul 2009 18:07:27 +0200 Subject: By using TCommDbConnPref we are able to create & save IAP entry. Before, we would create temporary one and we would have to for example enter again and again WLAN pre-shared key. --- examples/network/ftp/ftp.pro | 2 +- examples/network/ftp/sym_iap_util.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'examples/network') diff --git a/examples/network/ftp/ftp.pro b/examples/network/ftp/ftp.pro index 6b0f2ca47a..2c7389fbcf 100644 --- a/examples/network/ftp/ftp.pro +++ b/examples/network/ftp/ftp.pro @@ -17,5 +17,5 @@ symbian { INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE TARGET.CAPABILITY="NetworkServices" TARGET.UID3 = 0xA000A648 - LIBS+=-lesock # For IAP selection + LIBS+=-lesock -lcommdb # For IAP selection } \ No newline at end of file diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h index b3656fa908..5f6e41aa87 100644 --- a/examples/network/ftp/sym_iap_util.h +++ b/examples/network/ftp/sym_iap_util.h @@ -43,6 +43,8 @@ #include #include +#include + #include #include @@ -68,6 +70,7 @@ static void qt_SetDefaultIapL() TUint count; TBool activeLanConnectionFound = EFalse; TRequestStatus status; + TCommDbConnPref prefs; RSocketServ serv; CleanupClosePushL(serv); @@ -114,7 +117,8 @@ static void qt_SetDefaultIapL() */ conn.Close(); // might be opened after attach User::LeaveIfError(conn.Open(serv)); - User::LeaveIfError(conn.Start()); + prefs.SetDialogPreference( ECommDbDialogPrefPrompt ); + User::LeaveIfError(conn.Start(prefs)); User::LeaveIfError(conn.GetDesSetting(TPtrC(KIapNameSetting), iapName)); } -- cgit v1.2.3