diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-01 16:07:27 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-01 16:11:29 (GMT) |
commit | 19efe6331326567b6530d67509454c500630a3d7 (patch) | |
tree | 0ed19e716205d9617ec96fc89cd17b6228fc8a61 /examples | |
parent | 56995e239f943131f5915da1de2fc94ea0f745d4 (diff) | |
download | Qt-19efe6331326567b6530d67509454c500630a3d7.zip Qt-19efe6331326567b6530d67509454c500630a3d7.tar.gz Qt-19efe6331326567b6530d67509454c500630a3d7.tar.bz2 |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/network/ftp/ftp.pro | 2 | ||||
-rw-r--r-- | examples/network/ftp/sym_iap_util.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/network/ftp/ftp.pro b/examples/network/ftp/ftp.pro index 6b0f2ca..2c7389f 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 b3656fa..5f6e41a 100644 --- a/examples/network/ftp/sym_iap_util.h +++ b/examples/network/ftp/sym_iap_util.h @@ -43,6 +43,8 @@ #include <es_sock.h> #include <es_enum.h> +#include <commdbconnpref.h> + #include <sys/socket.h> #include <net/if.h> @@ -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)); } |