From b82e27ad7642ae76a5e918b41f0e65ecc27034fc Mon Sep 17 00:00:00 2001 From: Aleksandar Sasha Babic Date: Fri, 3 Jul 2009 12:50:35 +0200 Subject: TCommDbPrefs removed as they don't help for 3.1 FP1 devices(N95). The access point will not be saved, it didn't exist previously. Good news is that access point will be saved on 3.2 and newer, even without prefs. --- examples/network/ftp/sym_iap_util.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h index 5f6e41a..487aa8b 100644 --- a/examples/network/ftp/sym_iap_util.h +++ b/examples/network/ftp/sym_iap_util.h @@ -41,10 +41,11 @@ #ifndef QSYM_IAP_UTIL_H #define QSYM_IAP_UTIL_H +// Symbian #include #include -#include +// OpenC #include #include @@ -69,8 +70,6 @@ static void qt_SetDefaultIapL() { TUint count; TBool activeLanConnectionFound = EFalse; - TRequestStatus status; - TCommDbConnPref prefs; RSocketServ serv; CleanupClosePushL(serv); @@ -117,8 +116,7 @@ static void qt_SetDefaultIapL() */ conn.Close(); // might be opened after attach User::LeaveIfError(conn.Open(serv)); - prefs.SetDialogPreference( ECommDbDialogPrefPrompt ); - User::LeaveIfError(conn.Start(prefs)); + User::LeaveIfError(conn.Start()); User::LeaveIfError(conn.GetDesSetting(TPtrC(KIapNameSetting), iapName)); } @@ -131,9 +129,6 @@ static void qt_SetDefaultIapL() User::LeaveIfError(setdefaultif(&ifReq)); - conn.Close(); - serv.Close(); - CleanupStack::PopAndDestroy(&conn); CleanupStack::PopAndDestroy(&serv); } -- cgit v0.12