equal
deleted
inserted
replaced
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <StringLoader.h> |
21 #include <StringLoader.h> |
22 #include <aknnotedialog.h> |
22 #include <aknnotedialog.h> |
23 #include <AknUtils.h> |
23 #include <AknUtils.h> |
24 #include <cmmanagerext.h> |
24 #include <cmmanagerext.h> |
25 #include <NIFVAR.H> |
25 #include <nifvar.h> |
26 #include <ConnectionMonitorUi.rsg> |
26 #include <ConnectionMonitorUi.rsg> |
27 #include "ConnectionMonitorUi.hrh" |
27 #include "ConnectionMonitorUi.hrh" |
28 #include "ConnectionMonitorUiAppUi.h" |
28 #include "ConnectionMonitorUiAppUi.h" |
29 #include "ConnectionMonitorUiView.h" |
29 #include "ConnectionMonitorUiView.h" |
30 #include "ConnectionMonitorUiDetailsView.h" |
30 #include "ConnectionMonitorUiDetailsView.h" |
352 newConn = ETrue; |
352 newConn = ETrue; |
353 iConnectionsWaitingFirstEvent.Remove(cindex); |
353 iConnectionsWaitingFirstEvent.Remove(cindex); |
354 break; |
354 break; |
355 } |
355 } |
356 } |
356 } |
357 |
357 |
358 if ( newConn ) |
358 index = iConnectionArray->GetArrayIndex( connectionId ); |
|
359 |
|
360 if ( newConn || ( index < 0 ) ) |
359 { |
361 { |
360 if ( connectionId > 0) |
362 if ( connectionId > 0) |
361 { |
363 { |
362 TConnMonBearerType bearerType( EBearerUnknown ); |
364 TConnMonBearerType bearerType( EBearerUnknown ); |
363 iActiveWrapper->StartGetBearerType( connectionId, |
365 iActiveWrapper->StartGetBearerType( connectionId, |
383 if ( connectionInfo ) |
385 if ( connectionInfo ) |
384 { |
386 { |
385 CleanupStack::PushL( connectionInfo ); |
387 CleanupStack::PushL( connectionInfo ); |
386 iConnectionArray->AppendL( connectionInfo ); |
388 iConnectionArray->AppendL( connectionInfo ); |
387 CleanupStack::Pop( connectionInfo ); |
389 CleanupStack::Pop( connectionInfo ); |
|
390 |
|
391 // Avkon: This is needed due to events' timing issues: |
|
392 CConnectionMonitorUiView* view = |
|
393 ( CConnectionMonitorUiView* )iView; |
|
394 view->HandleItemAdditionL(); |
388 } |
395 } |
389 } |
396 } |
390 |
397 |
391 index = iConnectionArray->GetArrayIndex( connectionId ); |
398 index = iConnectionArray->GetArrayIndex( connectionId ); |
392 CMUILOGGER_WRITE_F( "Found index : %d", index ); |
399 CMUILOGGER_WRITE_F( "Found index : %d", index ); |