179 //Triggered when a connection has been been deleted. |
179 //Triggered when a connection has been been deleted. |
180 if( aConnMonEvent.ConnectionId() == iConnectionId ) |
180 if( aConnMonEvent.ConnectionId() == iConnectionId ) |
181 { |
181 { |
182 if(iMonitoringRequired) |
182 if(iMonitoringRequired) |
183 { |
183 { |
184 iMonitorObserver->IRNetworkEventL(ENetworkConnectionDisconnected); |
184 if (iMonitorObserver) |
|
185 { |
|
186 iMonitorObserver->IRNetworkEventL(ENetworkConnectionDisconnected); |
|
187 } |
|
188 else |
|
189 { |
|
190 iNetworkController->NotifyActiveNetworkObserversL(ENetworkConnectionDisconnected); |
|
191 } |
185 } |
192 } |
186 } |
193 } |
187 } |
194 } |
188 break; |
195 break; |
189 |
196 |
367 switch(iConnectionType) |
374 switch(iConnectionType) |
368 { |
375 { |
369 case EBearerGPRS: |
376 case EBearerGPRS: |
370 { |
377 { |
371 iIRConnectionType = EGprs; |
378 iIRConnectionType = EGprs; |
372 if(iMonitoringRequired) |
|
373 { |
|
374 // Intimate the connection established event |
|
375 iMonitorObserver->IRNetworkEventL( |
|
376 ENetworkConnectionEstablished); |
|
377 } |
|
378 } |
379 } |
379 break; |
380 break; |
380 |
381 |
381 case EBearerEdgeGPRS: |
382 case EBearerEdgeGPRS: |
382 { |
383 { |
383 iIRConnectionType = EEdge; |
384 iIRConnectionType = EEdge; |
384 if(iMonitoringRequired) |
|
385 { |
|
386 // Intimate the connection established event |
|
387 iMonitorObserver->IRNetworkEventL( |
|
388 ENetworkConnectionEstablished); |
|
389 } |
|
390 } |
385 } |
391 break; |
386 break; |
392 |
387 |
393 case EBearerWLAN: |
388 case EBearerWLAN: |
394 { |
389 { |
395 iIRConnectionType = EWiFi; |
390 iIRConnectionType = EWiFi; |
396 if(iMonitoringRequired) |
|
397 { |
|
398 // Intimate the connection established event |
|
399 iMonitorObserver->IRNetworkEventL( |
|
400 ENetworkConnectionEstablished); |
|
401 } |
|
402 } |
391 } |
403 break; |
392 break; |
404 |
393 |
405 case EBearerWCDMA: |
394 case EBearerWCDMA: |
406 { |
395 { |
407 iIRConnectionType = EWcdma; |
396 iIRConnectionType = EWcdma; |
408 if(iMonitoringRequired) |
|
409 { |
|
410 // Intimate the connection established event |
|
411 iMonitorObserver->IRNetworkEventL( |
|
412 ENetworkConnectionEstablished); |
|
413 } |
|
414 } |
397 } |
415 break; |
398 break; |
416 |
399 |
417 case EBearerCDMA2000: |
400 case EBearerCDMA2000: |
418 { |
401 { |
419 iIRConnectionType = ECdma2000; |
402 iIRConnectionType = ECdma2000; |
420 if(iMonitoringRequired) |
|
421 { |
|
422 // Intimate the connection established event |
|
423 iMonitorObserver->IRNetworkEventL( |
|
424 ENetworkConnectionEstablished); |
|
425 } |
|
426 } |
403 } |
427 break; |
404 break; |
428 |
405 |
429 default: |
406 default: |
430 { |
407 { |
431 #ifdef __WINS__ |
408 #ifdef __WINS__ |
432 iIRConnectionType = EGprs; |
409 iIRConnectionType = EGprs; |
433 if(iMonitoringRequired) |
|
434 { |
|
435 // Intimate the connection established event |
|
436 iMonitorObserver->IRNetworkEventL( |
|
437 ENetworkConnectionEstablished); |
|
438 } |
|
439 #endif |
410 #endif |
440 } |
411 } |
441 break; |
412 break; |
442 } |
413 } |
443 |
414 |
|
415 |
|
416 if (iMonitoringRequired) |
|
417 { |
|
418 if (iMonitorObserver) |
|
419 { |
|
420 // Intimate the connection established event |
|
421 iMonitorObserver->IRNetworkEventL(ENetworkConnectionEstablished); |
|
422 } |
|
423 else |
|
424 { |
|
425 iNetworkController->NotifyActiveNetworkObserversL(ENetworkConnectionEstablished); |
|
426 } |
|
427 } |
|
428 |
444 iNetworkController->ResetHandingOverConnection(); |
429 iNetworkController->ResetHandingOverConnection(); |
445 } |
430 } |
446 break; |
431 break; |
447 |
432 |
448 default: |
433 default: |