equal
deleted
inserted
replaced
16 * Both the requested and the stored AP's are here. |
16 * Both the requested and the stored AP's are here. |
17 * |
17 * |
18 * |
18 * |
19 */ |
19 */ |
20 |
20 |
21 |
|
22 |
|
23 #include <nifman.h> |
21 #include <nifman.h> |
24 #include <nifvar.h> |
22 #include <nifvar.h> |
25 #include <in_sock.h> |
23 #include <in_sock.h> |
26 |
24 #include <browser_platform_variant.hrh> |
27 #include "ConnectionObservers.h" |
25 #include <connectionobservers.h> |
28 #include "ConnectionManagerLogger.h" |
26 #include "ConnectionManagerLogger.h" |
29 |
|
30 |
27 |
31 //-------------------------------------------------------------------------- |
28 //-------------------------------------------------------------------------- |
32 //CConnectionStageNotifierWCB::NewL() |
29 //CConnectionStageNotifierWCB::NewL() |
33 //-------------------------------------------------------------------------- |
30 //-------------------------------------------------------------------------- |
34 EXPORT_C CConnectionStageNotifierWCB* CConnectionStageNotifierWCB::NewL( TInt aPriority ) |
31 EXPORT_C CConnectionStageNotifierWCB* CConnectionStageNotifierWCB::NewL( TInt aPriority ) |
107 //-------------------------------------------------------------------------- |
104 //-------------------------------------------------------------------------- |
108 void CConnectionStageNotifierWCB::RunL() |
105 void CConnectionStageNotifierWCB::RunL() |
109 { |
106 { |
110 CLOG_ENTERFN("CConnectionStageNotifierWCB::RunL()"); |
107 CLOG_ENTERFN("CConnectionStageNotifierWCB::RunL()"); |
111 CLOG_WRITE_1( "CConnectionStageNotifierWCB Stage: %d", iProgressBuf().iStage ); |
108 CLOG_WRITE_1( "CConnectionStageNotifierWCB Stage: %d", iProgressBuf().iStage ); |
|
109 CLOG_WRITE_1( "CConnectionStageNotifierWCB Stage Error id: %d", iProgressBuf().iError ); |
112 |
110 |
113 if( !iMultiObserver ) |
111 if( !iMultiObserver ) |
114 { |
112 { |
115 if ( iProgressBuf().iStage == iStageToObserve ) |
113 CLOG_WRITE( "CConnectionStageNotifierWCB Browser UI" ); |
116 { |
114 if ( iProgressBuf().iStage == iStageToObserve ) |
|
115 { |
117 CLOG_WRITE( "Stage achived" ); |
116 CLOG_WRITE( "Stage achived" ); |
118 DoCloseAgent(); |
117 DoCloseAgent(); |
119 iObserver->ConnectionStageAchievedL(); |
118 iObserver->ConnectionStageAchievedL(); |
120 } |
119 } |
121 else//reissuing request |
120 else//reissuing request |
125 SetActive(); |
124 SetActive(); |
126 } |
125 } |
127 } |
126 } |
128 else |
127 else |
129 { |
128 { |
|
129 CLOG_WRITE( "CConnectionStageNotifierWCB Connection Manager" ); |
130 if( IsAnyStageReached( iProgressBuf().iStage ) ) |
130 if( IsAnyStageReached( iProgressBuf().iStage ) ) |
131 { |
131 { |
132 iMultiObserver->ConnectionStageAchievedL( iProgressBuf().iStage ); |
132 iMultiObserver->ConnectionStageAchievedL( iProgressBuf().iStage ); |
133 } |
133 } |
134 else{ |
134 else{ |
229 CLOG_ENTERFN( "CConnectionStageNotifierWCB::DoOpenAgentL" ); |
229 CLOG_ENTERFN( "CConnectionStageNotifierWCB::DoOpenAgentL" ); |
230 TInt err( KErrNone ); |
230 TInt err( KErrNone ); |
231 if( (err = iServer.Connect()) == KErrNone ) |
231 if( (err = iServer.Connect()) == KErrNone ) |
232 { |
232 { |
233 err = iConnection.Open( iServer, *aConnName ); |
233 err = iConnection.Open( iServer, *aConnName ); |
|
234 #ifndef BRDO_OCC_ENABLED_FF |
234 if( !err ) |
235 if( !err ) |
235 { |
236 { |
236 TBuf<64> query; |
237 TBuf<64> query; |
237 TUint32 apId; |
238 TUint32 apId; |
238 TUint32 netId; |
239 TUint32 netId; |
256 CLOG_WRITE_1( "Attach result: %d", err ); |
257 CLOG_WRITE_1( "Attach result: %d", err ); |
257 } |
258 } |
258 } |
259 } |
259 } |
260 } |
260 } |
261 } |
261 } |
262 #endif |
262 |
263 } |
|
264 CLOG_WRITE_1( "CConnectionStageNotifierWCB::DoOpenAgentL Any error: %d", err ); |
263 if( err ) |
265 if( err ) |
264 { |
266 { |
265 iConnection.Close(); |
267 iConnection.Close(); |
266 iServer.Close(); |
268 iServer.Close(); |
267 User::Leave( err ); |
269 User::Leave( err ); |
292 } |
294 } |
293 |
295 |
294 return EFalse; |
296 return EFalse; |
295 } |
297 } |
296 |
298 |
|
299 //-------------------------------------------------------------------------- |
|
300 //CConnectionStageNotifierWCB::GetProgressBuffer() |
|
301 //-------------------------------------------------------------------------- |
|
302 EXPORT_C TNifProgressBuf |
|
303 CConnectionStageNotifierWCB::GetProgressBuffer() |
|
304 { |
|
305 CLOG_ENTERFN( "CConnectionStageNotifierWCB::GetProgressBuffer()" ); |
|
306 return iProgressBuf; |
|
307 } |
|
308 |
297 //EOF |
309 //EOF |