connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiAppUi.cpp
branchRCL_3
changeset 54 984e13af52c4
parent 15 4dc3bb0099b0
equal deleted inserted replaced
45:4c83dcfb6f1a 54:984e13af52c4
   386                 
   386                 
   387                 if ( connectionInfo )
   387                 if ( connectionInfo )
   388                     {
   388                     {
   389                     CleanupStack::PushL( connectionInfo );
   389                     CleanupStack::PushL( connectionInfo );
   390                     iConnectionArray->AppendL( connectionInfo );
   390                     iConnectionArray->AppendL( connectionInfo );
   391                     CleanupStack::Pop( connectionInfo );
   391                     CleanupStack::Pop( connectionInfo );                   
   392 										
       
   393                     if ( iView->Id() != KDetailsViewId )
       
   394                         {
       
   395                   	  	// Avkon: This is needed due to events' timing issues:
       
   396                     		CConnectionMonitorUiView* view =
       
   397                         	    ( CConnectionMonitorUiView* )iView;
       
   398                     	view->HandleItemAdditionL();
       
   399                     	}
       
   400                     }
   392                     }
   401                 }
   393                 }
   402             
   394             
   403             index = iConnectionArray->GetArrayIndex( connectionId );
   395             index = iConnectionArray->GetArrayIndex( connectionId );
   404             CMUILOGGER_WRITE_F( "Found index :  %d", index );
   396             CMUILOGGER_WRITE_F( "Found index :  %d", index );
   754         if ( activateMainView && iView != NULL && iView->Id() == KDetailsViewId )
   746         if ( activateMainView && iView != NULL && iView->Id() == KDetailsViewId )
   755             {
   747             {
   756             ((CConnectionMonitorUiDetailsView*) iView)->ActivateMainViewL();
   748             ((CConnectionMonitorUiDetailsView*) iView)->ActivateMainViewL();
   757             activateMainView = EFalse;
   749             activateMainView = EFalse;
   758             }
   750             }
   759             
   751        
   760         TInt interval( KTickInterval );
   752         TInt interval( KTickInterval );
   761         if ( iTimerObserver )
   753         if ( iTimerObserver )
   762   	        {
   754   	        {
   763 	          interval = iTimerObserver->GetTickInerval();	
   755 	          interval = iTimerObserver->GetTickInerval();
   764 	          }
   756 	          }
   765         StartTimerL( interval );
   757         StartTimerL( interval );
   766         }
   758         }
   767     else
   759     else
   768         {
   760         {