summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-03 12:50:35 +0200
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-03 13:05:08 +0200
commitb82e27ad7642ae76a5e918b41f0e65ecc27034fc (patch)
tree6344d86184f0d283fdde2552a4f4b225fa62fa08 /examples/network
parent1c251c70c614ad39a323d3c814907725c58eae8a (diff)
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.
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/ftp/sym_iap_util.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h
index 5f6e41aa87..487aa8b436 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 <es_sock.h>
#include <es_enum.h>
-#include <commdbconnpref.h>
+// OpenC
#include <sys/socket.h>
#include <net/if.h>
@@ -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);
}