codhandler/codeng/src/Connection.cpp
changeset 42 d39add9822e2
parent 0 dd21522fd290
child 58 220a17280356
child 65 5bfc169077b2
equal deleted inserted replaced
38:6297cdf66332 42:d39add9822e2
    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
    31 
    35 
    32 // ================= MEMBER FUNCTIONS =======================
    36 // ================= MEMBER FUNCTIONS =======================
    33 
    37 
    34 // ---------------------------------------------------------
    38 // ---------------------------------------------------------
    35 // CConnection::NewL()
    39 // CConnection::NewL()
    92         else
    96         else
    93             {
    97             {
    94             // aIap == 0 -> user select.
    98             // aIap == 0 -> user select.
    95             iConnPref.SetDialogPreference( ECommDbDialogPrefPrompt );
    99             iConnPref.SetDialogPreference( ECommDbDialogPrefPrompt );
    96             }
   100             }
    97         iConn.Start( iConnPref, iStatus );
   101         #ifdef BRDO_OCC_ENABLED_FF
       
   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         
    98         iState = EConnecting;
   126         iState = EConnecting;
    99         SetActive();
   127         SetActive();
   100         CleanupStack::Pop( 2 ); // closing iConn and iSockServ
   128         CleanupStack::Pop( 2 ); // closing iConn and iSockServ
   101         // End of atomic part.
   129         // End of atomic part.
   102         }
   130         }