codhandler/codeng/src/Connection.cpp
changeset 65 5bfc169077b2
parent 42 d39add9822e2
child 68 92a765b5b3e7
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
    26 #include "CodError.h"
    26 #include "CodError.h"
    27 #include "CodLogger.h"
    27 #include "CodLogger.h"
    28 #include <CommDbConnPref.h>
    28 #include <CommDbConnPref.h>
    29 #include <cdblen.h>
    29 #include <cdblen.h>
    30 #include <es_enum.h>
    30 #include <es_enum.h>
    31 #include <platform/mw/browser_platform_variant.hrh>
       
    32 #ifdef BRDO_OCC_ENABLED_FF
       
    33 #include <extendedconnpref.h>
       
    34 #endif
       
    35 
    31 
    36 // ================= MEMBER FUNCTIONS =======================
    32 // ================= MEMBER FUNCTIONS =======================
    37 
    33 
    38 // ---------------------------------------------------------
    34 // ---------------------------------------------------------
    39 // CConnection::NewL()
    35 // CConnection::NewL()
    96         else
    92         else
    97             {
    93             {
    98             // aIap == 0 -> user select.
    94             // aIap == 0 -> user select.
    99             iConnPref.SetDialogPreference( ECommDbDialogPrefPrompt );
    95             iConnPref.SetDialogPreference( ECommDbDialogPrefPrompt );
   100             }
    96             }
   101         #ifdef BRDO_OCC_ENABLED_FF
    97         iConn.Start( iConnPref, iStatus );
   102            TExtendedConnPref extPref;
       
   103            CLOG(( EConn, 4, _L("CodHalder Setting OCC parameters") ));
       
   104            
       
   105            CLOG(( EConn, 4, _L("Iap: %d"), aIap ));
       
   106            if (aIap)
       
   107            {
       
   108               CLOG(( EConn, 4, _L("Iap is found") ));
       
   109               extPref.SetSnapPurpose(CMManager::ESnapPurposeUnknown);
       
   110               extPref.SetIapId(aIap);
       
   111            }
       
   112            else
       
   113            {
       
   114               CLOG(( EConn, 4, _L("Using Internet Snap") ));
       
   115               extPref.SetSnapPurpose(CMManager::ESnapPurposeInternet);
       
   116 		   }
       
   117 
       
   118            extPref.SetNoteBehaviour(TExtendedConnPref::ENoteBehaviourConnSilent);
       
   119            TConnPrefList prefList;
       
   120            prefList.AppendL(&extPref);
       
   121            iConn.Start( prefList, iStatus );
       
   122         #else
       
   123             iConn.Start( iConnPref, iStatus );
       
   124         #endif //BRDO_OCC_ENABLED_FF
       
   125         
       
   126         iState = EConnecting;
    98         iState = EConnecting;
   127         SetActive();
    99         SetActive();
   128         CleanupStack::Pop( 2 ); // closing iConn and iSockServ
   100         CleanupStack::Pop( 2 ); // closing iConn and iSockServ
   129         // End of atomic part.
   101         // End of atomic part.
   130         }
   102         }