browserui/browser/BrowserAppSrc/BrowserSpecialLoadObserver.cpp
branchRCL_3
changeset 34 5dedbccec665
parent 33 dbd79466b1ed
child 35 5c11946e75b3
--- a/browserui/browser/BrowserAppSrc/BrowserSpecialLoadObserver.cpp	Fri Mar 12 15:43:05 2010 +0200
+++ b/browserui/browser/BrowserAppSrc/BrowserSpecialLoadObserver.cpp	Mon Mar 15 12:40:52 2010 +0200
@@ -284,6 +284,22 @@
 
 				BROWSER_LOG((_L("StartConnection params, query: %d, temp: %d"), query, disableConnDlgs));
                 iConnectionStarted = ETrue; // is true when connection request submited.
+#ifndef __WINS__
+                TUint32 bookmarkIap( 0 );
+                //If bookmark has defined its AP, use it
+                if ( iApiProvider->RequestedAp() != KWmlNoDefaultAccessPoint )
+                    {
+                    bookmarkIap = Util::IapIdFromWapIdL( *iApiProvider, iApiProvider->RequestedAp() );
+                    BROWSER_LOG((_L("Bookmark Iap: %d"), bookmarkIap));
+                    iApiProvider->Connection().SetRequestedAP( bookmarkIap );
+                    iApiProvider->Connection().SetConnectionType( EConnectionMethod );
+                    }
+                else
+                    {
+                    iApiProvider->Connection().SetRequestedAP( bookmarkIap );
+                    BROWSER_LOG((_L("Setting Bookmark Iap: %d"), bookmarkIap));
+                    }
+#endif
                 // might leave, don't TRAP. OK.
                 err = iApiProvider->Connection().StartConnectionL( disableConnDlgs );
                 iConnectionStarted = EFalse; // is false when connection response completed.