browserutilities/feedsengine/FeedsServer/UrlHandler/src/ServerHttpConnection.cpp
branchRCL_3
changeset 62 c711bdda59f4
parent 36 0ed94ceaa377
child 64 ac77f89b1d9e
equal deleted inserted replaced
59:1f3c3f2f5b0a 62:c711bdda59f4
    14 * Description:  A class that fetches resources via HTTP 1.1.
    14 * Description:  A class that fetches resources via HTTP 1.1.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
       
    19 #include "browser_platform_variant.hrh"
    19 #include <aputils.h> 
    20 #include <aputils.h> 
    20 #include <internetconnectionmanager.h>
    21 #include <internetconnectionmanager.h>
    21 
    22 
    22 #include "ServerHttpConnection.h"
    23 #include "ServerHttpConnection.h"
    23 #include "Logger.h"
    24 #include "Logger.h"
    96     TInt  err = KErrNone;
    97     TInt  err = KErrNone;
    97 
    98 
    98     // If need be establish the connection.
    99     // If need be establish the connection.
    99     if(!IsConnected())
   100     if(!IsConnected())
   100         {
   101         {
       
   102 #ifdef BRDO_OCC_ENABLED_FF
       
   103         TUint32 snapId = 0; //Defaults connects to Internet snap
       
   104         iConMgr->SetConnectionType(CMManager::EDestination);
       
   105         iConMgr->SetRequestedSnap(snapId);
       
   106 #else
   101         // Set the default access point.
   107         // Set the default access point.
   102         iConMgr->SetRequestedAP( iDefaultAccessPoint );
   108         iConMgr->SetRequestedAP( iDefaultAccessPoint );
   103             
   109 #endif
   104         // Open a connection.
   110         // Open a connection.
   105         TRAP(err, err = iConMgr->StartConnectionL(ETrue));                
   111         TRAP(err, err = iConMgr->StartConnectionL(ETrue));                
   106         if (err != KErrNone)
   112         if (err != KErrNone)
   107             {
   113             {
   108             // Notify the HttpHandler that the establishing the access point failed
   114             // Notify the HttpHandler that the establishing the access point failed