diff -r 6297cdf66332 -r d39add9822e2 codhandler/codeng/src/Connection.cpp --- a/codhandler/codeng/src/Connection.cpp Mon Jan 18 21:20:18 2010 +0200 +++ b/codhandler/codeng/src/Connection.cpp Tue Feb 02 00:56:45 2010 +0200 @@ -28,6 +28,10 @@ #include #include #include +#include +#ifdef BRDO_OCC_ENABLED_FF +#include +#endif // ================= MEMBER FUNCTIONS ======================= @@ -94,7 +98,31 @@ // aIap == 0 -> user select. iConnPref.SetDialogPreference( ECommDbDialogPrefPrompt ); } - iConn.Start( iConnPref, iStatus ); + #ifdef BRDO_OCC_ENABLED_FF + TExtendedConnPref extPref; + CLOG(( EConn, 4, _L("CodHalder Setting OCC parameters") )); + + CLOG(( EConn, 4, _L("Iap: %d"), aIap )); + if (aIap) + { + CLOG(( EConn, 4, _L("Iap is found") )); + extPref.SetSnapPurpose(CMManager::ESnapPurposeUnknown); + extPref.SetIapId(aIap); + } + else + { + CLOG(( EConn, 4, _L("Using Internet Snap") )); + extPref.SetSnapPurpose(CMManager::ESnapPurposeInternet); + } + + extPref.SetNoteBehaviour(TExtendedConnPref::ENoteBehaviourConnSilent); + TConnPrefList prefList; + prefList.AppendL(&extPref); + iConn.Start( prefList, iStatus ); + #else + iConn.Start( iConnPref, iStatus ); + #endif //BRDO_OCC_ENABLED_FF + iState = EConnecting; SetActive(); CleanupStack::Pop( 2 ); // closing iConn and iSockServ