equal
deleted
inserted
replaced
20 |
20 |
21 |
21 |
22 #include <browser_platform_variant.hrh> |
22 #include <browser_platform_variant.hrh> |
23 #include "ConnManActiveConnector.h" |
23 #include "ConnManActiveConnector.h" |
24 #include "ConnectionManagerLogger.h" |
24 #include "ConnectionManagerLogger.h" |
25 |
25 #include <mconnection.h> |
26 #include <nifvar.h> |
26 #include <nifvar.h> |
27 #include <CommDbConnPref.h> |
27 #include <CommDbConnPref.h> |
28 |
28 |
29 #ifdef BRDO_OCC_ENABLED_FF |
29 #ifdef BRDO_OCC_ENABLED_FF |
30 #include <extendedconnpref.h> |
30 #include <extendedconnpref.h> |
39 , iConnection( aConnection ) |
39 , iConnection( aConnection ) |
40 { |
40 { |
41 |
41 |
42 CLOG_CREATE; |
42 CLOG_CREATE; |
43 CActiveScheduler::Add( this );//inserting this into the queue |
43 CActiveScheduler::Add( this );//inserting this into the queue |
|
44 occPrefs = EDefault; |
44 } |
45 } |
45 |
46 |
46 //-------------------------------------------------------------------------- |
47 //-------------------------------------------------------------------------- |
47 //CConnManActiveConnector::~CConnManActiveConnector() |
48 //CConnManActiveConnector::~CConnManActiveConnector() |
48 //-------------------------------------------------------------------------- |
49 //-------------------------------------------------------------------------- |
153 } |
154 } |
154 |
155 |
155 #endif //__WINS__ |
156 #endif //__WINS__ |
156 |
157 |
157 extPref.SetNoteBehaviour(TExtendedConnPref::ENoteBehaviourDefault); |
158 extPref.SetNoteBehaviour(TExtendedConnPref::ENoteBehaviourDefault); |
|
159 if ( occPrefs == ESilient ) |
|
160 { |
|
161 CLOG_WRITE( "CConnManActiveConnector:StartConnection Setting OCC Silent behaviour"); |
|
162 extPref.SetNoteBehaviour(TExtendedConnPref::ENoteBehaviourConnSilent); |
|
163 } |
|
164 else |
|
165 { |
|
166 CLOG_WRITE( "CConnManActiveConnector:StartConnection Setting OCC Default behaviour"); |
|
167 } |
158 TConnPrefList prefList; |
168 TConnPrefList prefList; |
159 TRAP_IGNORE(prefList.AppendL(&extPref)); |
169 TRAP_IGNORE(prefList.AppendL(&extPref)); |
160 |
170 |
161 #endif |
171 #endif |
162 |
172 |
198 { |
208 { |
199 |
209 |
200 CLOG_WRITE_1( "CConnManAct::RunL(): %d", iStatus.Int() ); |
210 CLOG_WRITE_1( "CConnManAct::RunL(): %d", iStatus.Int() ); |
201 User::RequestComplete( iExternalRequestStatus, iStatus.Int() ); |
211 User::RequestComplete( iExternalRequestStatus, iStatus.Int() ); |
202 } |
212 } |
|
213 |
|
214 void CConnManActiveConnector::SetOccPreferences(TSetOCCPreferences aOCCPreferences) |
|
215 { |
|
216 CLOG_WRITE_1( "CConnManActiveConnector::SetOccPreferences : %d", aOCCPreferences ); |
|
217 occPrefs = aOCCPreferences; |
|
218 } |
203 |
219 |
204 //------------------------------------------------------ CActiveConnectorSyncWrapper ------------------------- |
220 //------------------------------------------------------ CActiveConnectorSyncWrapper ------------------------- |
205 |
221 |
206 //-------------------------------------------------------------------------- |
222 //-------------------------------------------------------------------------- |
207 //CActiveConnectorSyncWrapper::NewL() |
223 //CActiveConnectorSyncWrapper::NewL() |
305 CActiveConnectorSyncWrapper::CActiveConnectorSyncWrapper( TInt aPriority ): CActive( aPriority ) |
321 CActiveConnectorSyncWrapper::CActiveConnectorSyncWrapper( TInt aPriority ): CActive( aPriority ) |
306 { |
322 { |
307 CActiveScheduler::Add( this ); |
323 CActiveScheduler::Add( this ); |
308 } |
324 } |
309 |
325 |
310 |
326 void CActiveConnectorSyncWrapper::SetOccPreferences(TSetOCCPreferences aOCCPreferences) |
|
327 { |
|
328 if ( iActiveConnector ) |
|
329 iActiveConnector->SetOccPreferences(aOCCPreferences); |
|
330 } |
311 //EOF |
331 //EOF |