iaupdate/IAD/ui/src/iaupdateuicontroller.cpp
changeset 53 ae54820ef82c
parent 52 92f864ef0288
child 67 3a625661d1ce
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
  1642                 nodeId->SetSelected( node->Base().IsSelected() );
  1642                 nodeId->SetSelected( node->Base().IsSelected() );
  1643                 iPreviousSelections.AppendL( nodeId );
  1643                 iPreviousSelections.AppendL( nodeId );
  1644                 CleanupStack::Pop( nodeId );
  1644                 CleanupStack::Pop( nodeId );
  1645                 
  1645                 
  1646                 }
  1646                 }
  1647 
  1647             
  1648             if ( iFwNodes.Count() > 0 )
  1648 	    	for ( TInt j = 0; j < iFwNodes.Count(); ++j )
  1649                 {
  1649                 {
  1650                 MIAUpdateFwNode* fwNode( iFwNodes[ 0 ] );
  1650                 MIAUpdateFwNode* fwNode( iFwNodes[ j ] );
  1651                 CIAUpdateNodeId* nodeId = CIAUpdateNodeId::NewLC();
  1651                 CIAUpdateNodeId* nodeId = CIAUpdateNodeId::NewLC();
  1652                 nodeId->SetIdL( fwNode->Base().MetaId() );
  1652                 nodeId->SetIdL( fwNode->Base().MetaId() );
  1653                 nodeId->SetNamespaceL( fwNode->Base().MetaNamespace() );
  1653                 nodeId->SetNamespaceL( fwNode->Base().MetaNamespace() );
  1654                 nodeId->SetNodeType( MIAUpdateAnyNode::ENodeTypeFw );
  1654                 nodeId->SetNodeType( MIAUpdateAnyNode::ENodeTypeFw );
  1655                 nodeId->SetSelected( fwNode->Base().IsSelected() );
  1655                 nodeId->SetSelected( fwNode->Base().IsSelected() );
  2041         // Notice, that in case of cancellations there would not be any need
  2041         // Notice, that in case of cancellations there would not be any need
  2042         // for timer. But just use it as in normal cases. Then, server report
  2042         // for timer. But just use it as in normal cases. Then, server report
  2043         // completion or timer will call the callback later. But, that callback
  2043         // completion or timer will call the callback later. But, that callback
  2044         // will be ignored in CIAUpdateUiController::ServerReportSent because
  2044         // will be ignored in CIAUpdateUiController::ServerReportSent because
  2045         // iState is already then changed from ESendingReport to something else. 
  2045         // iState is already then changed from ESendingReport to something else. 
  2046         const TInt KServerReportMaxWaitTime( 10000000 );
  2046         
  2047         iController->FinishedUpdatesL( ETrue, KServerReportMaxWaitTime );
  2047         //const TInt KServerReportMaxWaitTime( 10000000 );         //Commented TEMP 
  2048         iState = ESendingReport;
  2048         //iController->FinishedUpdatesL( ETrue, KServerReportMaxWaitTime ); //Commented TEMP
       
  2049         //iState = ESendingReport;  //Commented temporarily
       
  2050         EndUpdateFlowL( KErrNone );  //TEMP
       
  2051         return;                      //TEMP  
  2049         }
  2052         }
  2050 
  2053 
  2051     // When reports are sent, EndUpdateFlowL is called via the callback functions
  2054     // When reports are sent, EndUpdateFlowL is called via the callback functions
  2052     // and the update flow will be finished there. But, if we come here when cancel
  2055     // and the update flow will be finished there. But, if we come here when cancel
  2053     // is pressed, then call EndUpdateFlowL directly because then we do not wait
  2056     // is pressed, then call EndUpdateFlowL directly because then we do not wait