iaupdate/IAD/ui/src/iaupdateuicontroller.cpp
changeset 77 d1838696558c
parent 69 b18a4bf55ddb
equal deleted inserted replaced
75:2d2d25361590 77:d1838696558c
    54 #include "iaupdateerrorcodes.h"
    54 #include "iaupdateerrorcodes.h"
    55 #include "iaupdatefileconsts.h"
    55 #include "iaupdatefileconsts.h"
    56 #include "iaupdatefirsttimeinfo.h"
    56 #include "iaupdatefirsttimeinfo.h"
    57 #include "iaupdaterefreshhandler.h"
    57 #include "iaupdaterefreshhandler.h"
    58 #include "iaupdatenodeid.h"
    58 #include "iaupdatenodeid.h"
    59 #include "iaupdatewaitdialog.h"
       
    60 #include "iaupdatedialogutil.h"
    59 #include "iaupdatedialogutil.h"
    61 #include "iaupdatedebug.h"
    60 #include "iaupdatedebug.h"
    62 
    61 
    63 
    62 
    64 // cenrep in emulator:
    63 // cenrep in emulator:
   244 CIAUpdateUiController::~CIAUpdateUiController()
   243 CIAUpdateUiController::~CIAUpdateUiController()
   245     {    
   244     {    
   246     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::~CIAUpdateUiController() begin");
   245     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::~CIAUpdateUiController() begin");
   247 
   246 
   248     CancelOperation();
   247     CancelOperation();
   249     delete mWaitDialog;
       
   250     delete iController;
       
   251     iNodes.Reset();
   248     iNodes.Reset();
   252     iFwNodes.Reset();
   249     iFwNodes.Reset();
   253     iSelectedNodesArray.Reset();
   250     iSelectedNodesArray.Reset();
   254     iServicePackNodes.Reset();
   251     iServicePackNodes.Reset();
   255     iPreviousSelections.Reset();
   252     iPreviousSelections.Reset();
   260     delete iConfigData;
   257     delete iConfigData;
   261     delete iRoamingHandler;
   258     delete iRoamingHandler;
   262     delete iParams;
   259     delete iParams;
   263     delete iRefreshHandler;
   260     delete iRefreshHandler;
   264     delete mDialogUtil;
   261     delete mDialogUtil;
   265 
   262             
   266     // If dialogs have not been released yet, release them now.
       
   267     // ProcessFinishedL() should normally be used for dialogs but
       
   268     // here just use non-leaving delete. In normal cases, dialogs should
       
   269     // already be released in the end of the update flow before coming here.
       
   270     //delete iWaitDialog;
       
   271     //delete iProgressDialog;
       
   272         
       
   273 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::~CIAUpdateUiController() end");
   263 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::~CIAUpdateUiController() end");
   274     }        
   264     }        
   275 
   265 
   276 
   266 
   277 // -----------------------------------------------------------------------------
   267 // -----------------------------------------------------------------------------
   337                     mDialogUtil = new IAUpdateDialogUtil(NULL, this);
   327                     mDialogUtil = new IAUpdateDialogUtil(NULL, this);
   338                     }
   328                     }
   339                 if ( mDialogUtil )
   329                 if ( mDialogUtil )
   340                     {
   330                     {
   341                     mPrimaryAction = NULL;
   331                     mPrimaryAction = NULL;
   342                     //mPrimaryAction = new HbAction(hbTrId("txt_software_button_accept"));
   332                     mPrimaryAction = new HbAction(hbTrId("txt_software_button_accept"));
   343 					mPrimaryAction = new HbAction("Accept");
       
   344                     HbAction *secondaryAction = NULL;
   333                     HbAction *secondaryAction = NULL;
   345                     //secondaryAction = new HbAction(hbTrId("txt_software_button_decline"));
   334                     secondaryAction = new HbAction(hbTrId("txt_software_button_decline"));
   346 					secondaryAction = new HbAction("Decline");
       
   347                     mDialogUtil->showAgreement(mPrimaryAction,secondaryAction);
   335                     mDialogUtil->showAgreement(mPrimaryAction,secondaryAction);
   348                     iDialogState = EAgreement;
   336                     iDialogState = EAgreement;
   349                     }
   337                     }
   350                 }
   338                 }
   351             }
   339             }
   460             }
   448             }
   461         if ( mDialogUtil )
   449         if ( mDialogUtil )
   462             {
   450             {
   463             mPrimaryAction = NULL;
   451             mPrimaryAction = NULL;
   464             mPrimaryAction = new HbAction(hbTrId("txt_common_button_ok"));
   452             mPrimaryAction = new HbAction(hbTrId("txt_common_button_ok"));
   465             //mDialogUtil->showInformation(hbTrId("txt_software_info_insufficient_memory_free_some_m"), mPrimaryAction);
   453             mDialogUtil->showInformation
   466 			mDialogUtil->showInformation(QString("Insufficient memory. Free some memory and try again."), mPrimaryAction);
   454                (hbTrId("txt_software_info_insufficient_memory_free_some_m"), mPrimaryAction);
   467             iDialogState = EInsufficientMemory;
   455             iDialogState = EInsufficientMemory;
   468             }
   456             }
   469         }
   457         }
   470     else
   458     else
   471         {
   459         {
   645                 {
   633                 {
   646                 // to avoid flickering IAD is brought to foreground only when wait dialog is really shown
   634                 // to avoid flickering IAD is brought to foreground only when wait dialog is really shown
   647                 if ( allowNetworkRefresh )
   635                 if ( allowNetworkRefresh )
   648                     {
   636                     {
   649                     iEikEnv->RootWin().SetOrdinalPosition( 0, ECoeWinPriorityNormal );
   637                     iEikEnv->RootWin().SetOrdinalPosition( 0, ECoeWinPriorityNormal );
   650                     ShowWaitDialogL( "Refreshing updates list", ETrue );
   638                     iObserver.SetUpdatesRefreshing( ETrue );
   651                     }
   639                     }
   652                 }
   640                 }
   653             }
   641             }
   654         else
   642         else
   655             {
   643             {
   656             ShowWaitDialogL( "Refreshing updates list", ETrue );
   644             iObserver.SetUpdatesRefreshing( ETrue );
   657             }
   645             }
   658         }
   646         }
   659     
   647     
   660        
   648        
   661 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::StartRefreshL() end");
   649 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::StartRefreshL() end");
  1209                 IAUPDATE_TRACE("[IAUPDATE] Self update finished, continue udpate.");
  1197                 IAUPDATE_TRACE("[IAUPDATE] Self update finished, continue udpate.");
  1210                 // Continue udpate normally.
  1198                 // Continue udpate normally.
  1211                 ContinueUpdateL( ETrue );                
  1199                 ContinueUpdateL( ETrue );                
  1212                 }
  1200                 }
  1213             }
  1201             }
  1214         else
  1202 
  1215             {
  1203         // Self updater provided some data that was handled above.
  1216             IAUPDATE_TRACE("[IAUPDATE] Self update closed with red key. Handle dialogs.");
       
  1217             // Because shutdown was requested, we do not continue the update flow.
       
  1218             // A updating dialog may still show. So, release it here.
       
  1219             RemoveUpdatingDialogsL();
       
  1220             }
       
  1221 
       
  1222         // Self updater provided some data that was handeld above.
       
  1223         restarted = ETrue;
  1204         restarted = ETrue;
  1224         }
  1205         }
  1225 
  1206 
  1226     IAUPDATE_TRACE_1("[IAUPDATE] restarted: %d", restarted );   
  1207     IAUPDATE_TRACE_1("[IAUPDATE] restarted: %d", restarted );   
  1227     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::HandlePossibleSelfUpdateRestartL() end");
  1208     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::HandlePossibleSelfUpdateRestartL() end");
  1258     	TRAP( completionError, RefreshUiCompleteL( aNodes, aError ) );
  1239     	TRAP( completionError, RefreshUiCompleteL( aNodes, aError ) );
  1259         }
  1240         }
  1260     else
  1241     else
  1261         {
  1242         {
  1262         iState = EIdle;
  1243         iState = EIdle;
  1263         TRAP ( completionError, RemoveWaitDialogL() );
  1244         iObserver.SetUpdatesRefreshing( EFalse );
  1264         if ( completionError == KErrNone )
  1245    	    TRAP( completionError, RefreshCompleteL( aNodes, aError ) );
  1265             {
       
  1266     	    TRAP( completionError, RefreshCompleteL( aNodes, aError ) );
       
  1267             }	
       
  1268         }
  1246         }
  1269     if ( completionError == KErrNone )
  1247     if ( completionError == KErrNone )
  1270         {
  1248         {
  1271         iRefreshed = ETrue;
  1249         iRefreshed = ETrue;
  1272         }
  1250         }
  1382 // -----------------------------------------------------------------------------
  1360 // -----------------------------------------------------------------------------
  1383 // CIAUpdateUiController::DownloadProgress
  1361 // CIAUpdateUiController::DownloadProgress
  1384 // 
  1362 // 
  1385 // -----------------------------------------------------------------------------
  1363 // -----------------------------------------------------------------------------
  1386 //
  1364 //
  1387 void CIAUpdateUiController::DownloadProgress( MIAUpdateNode& /*aNode*/, 
  1365 void CIAUpdateUiController::DownloadProgress( MIAUpdateNode& aNode, 
  1388                                               TUint /*aProgress*/,
  1366                                               TUint aProgress,
  1389                                               TUint /*aMaxProgress*/ )
  1367                                               TUint aMaxProgress )
  1390     {
  1368     {
  1391     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadProgress() begin");  
  1369     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadProgress() begin");  
  1392 
  1370 
  1393     if ( iProgressDialog )
  1371     if (aNode.UiState() == MIAUpdateNode::EDownloading)
  1394         {
  1372         {
  1395     	//TRAP_IGNORE ( iProgressDialog->SetProgressDialogFinalValueL( aMaxProgress ) );
  1373         aNode.SetProgress( aProgress );
  1396         //TRAP_IGNORE ( iProgressDialog->UpdateProgressDialogValueL( aProgress ) );
  1374         aNode.SetTotal( aMaxProgress );
  1397         }
  1375         iObserver.RefreshUIProgress();
  1398 
  1376         }
       
  1377     
  1399     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadProgress() end");  
  1378     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadProgress() end");  
  1400     }                            
  1379     }                            
  1401 
  1380 
  1402 
  1381 
  1403 // -----------------------------------------------------------------------------
  1382 // -----------------------------------------------------------------------------
  1409                                               TInt aError )
  1388                                               TInt aError )
  1410     {
  1389     {
  1411     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadComplete() begin");
  1390     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadComplete() begin");
  1412 
  1391 
  1413     iState = EIdle;
  1392     iState = EIdle;
       
  1393     aNode.SetProgress( 0 );
       
  1394     aNode.SetTotal( 0 );
  1414 	TRAPD ( completionError, DownloadCompleteL( aNode, aError ) );
  1395 	TRAPD ( completionError, DownloadCompleteL( aNode, aError ) );
  1415     if ( completionError != KErrNone )
  1396     if ( completionError != KErrNone )
  1416         {
  1397         {
  1417         // If we came here, DownloadCompleteL function may have left
  1398         // If we came here, DownloadCompleteL function may have left
  1418         // before dialog was removed. So, try one more time to remove it here
  1399         // before dialog was removed. So, try one more time to remove it here
  1419         // before informing the observer.
  1400         // before informing the observer.
  1420         TRAP_IGNORE( RemoveUpdatingDialogsL() );
       
  1421         iObserver.HandleLeaveErrorWithoutLeave( completionError );
  1401         iObserver.HandleLeaveErrorWithoutLeave( completionError );
  1422         }
  1402         }
  1423 
  1403 
  1424     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadComplete() end");
  1404     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::DownloadComplete() end");
  1425     }
  1405     }
  1457         }
  1437         }
  1458     
  1438     
  1459 	TRAPD ( completionError, InstallCompleteL( aNode, aError ) );
  1439 	TRAPD ( completionError, InstallCompleteL( aNode, aError ) );
  1460     if ( completionError != KErrNone )
  1440     if ( completionError != KErrNone )
  1461         {
  1441         {
  1462         // If we came here, InstallCompleteL function may have left
       
  1463         // before dialog was removed. So, try one more time to remove it here
       
  1464         // before informing the observer.
       
  1465         TRAP_IGNORE( RemoveUpdatingDialogsL() );
       
  1466         iObserver.HandleLeaveErrorWithoutLeave( completionError );
  1442         iObserver.HandleLeaveErrorWithoutLeave( completionError );
  1467         }
  1443         }
  1468 
  1444 
  1469     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::InstallComplete() end");
  1445     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::InstallComplete() end");
  1470     }
  1446     }
  1529 void CIAUpdateUiController::StartExecutableCompletedL( TInt /*aError*/ )
  1505 void CIAUpdateUiController::StartExecutableCompletedL( TInt /*aError*/ )
  1530     {
  1506     {
  1531     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::StartExecutableCompletedL() begin"); 
  1507     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::StartExecutableCompletedL() begin"); 
  1532 
  1508 
  1533     // Before informing the observer, close the possible existing dialog.
  1509     // Before informing the observer, close the possible existing dialog.
  1534     RemoveUpdatingDialogsL();
       
  1535     
       
  1536     // Possible error is not passed to a client. Typically client is already closed. 
  1510     // Possible error is not passed to a client. Typically client is already closed. 
  1537     // Even in the case when client's request is still ongoing, it's disinformation to return
  1511     // Even in the case when client's request is still ongoing, it's disinformation to return
  1538     // error from failed executable start. 
  1512     // error from failed executable start. 
  1539     TRAPD ( err, iObserver.UpdateCompleteL( KErrNone ) );
  1513     TRAPD ( err, iObserver.UpdateCompleteL( KErrNone ) );
  1540     if ( err != KErrNone )
  1514     if ( err != KErrNone )
  1560     	iObserver.HandleLeaveErrorWithoutLeave( err );
  1534     	iObserver.HandleLeaveErrorWithoutLeave( err );
  1561         }
  1535         }
  1562     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RoamingHandlerPrepared() end");
  1536     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RoamingHandlerPrepared() end");
  1563     }
  1537     }
  1564 
  1538 
  1565 
       
  1566 // -----------------------------------------------------------------------------
       
  1567 // CIAUpdateUiController::HandleWaitDialogCancel
       
  1568 // Called when wait dialog is cancelled.
       
  1569 // (other items were commented in a header).
       
  1570 // -----------------------------------------------------------------------------
       
  1571 //
       
  1572 void CIAUpdateUiController::HandleWaitDialogCancel()
       
  1573     {
       
  1574     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::HandleWaitDialogCancel() begin");
       
  1575     
       
  1576     TRAPD ( err, HandleUserCancelL() );
       
  1577     if ( err != KErrNone )
       
  1578         {
       
  1579       	iObserver.HandleLeaveErrorL( err );
       
  1580         }
       
  1581 
       
  1582     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::HandleWaitDialogCancel() end");
       
  1583 
       
  1584     }
       
  1585 
  1539 
  1586 // -----------------------------------------------------------------------------
  1540 // -----------------------------------------------------------------------------
  1587 // CIAUpdateUiController::dialogFinished
  1541 // CIAUpdateUiController::dialogFinished
  1588 // Called when dialog is finished.
  1542 // Called when dialog is finished.
  1589 // -----------------------------------------------------------------------------
  1543 // -----------------------------------------------------------------------------
  2141 
  2095 
  2142 	return KErrNone;
  2096 	return KErrNone;
  2143     }
  2097     }
  2144 
  2098 
  2145 
  2099 
  2146 // ---------------------------------------------------------------------------
  2100 
  2147 // CIAUpdateUiController::ShowUpdatingDialogL
       
  2148 // 
       
  2149 // ---------------------------------------------------------------------------
       
  2150 //
       
  2151 /*
       
  2152 void CIAUpdateUiController::ShowUpdatingDialogL( TInt aTextResourceId,
       
  2153                                                  const TDesC& aName,
       
  2154                                                  TInt aNumber,
       
  2155                                                  TInt aTotalCount )   
       
  2156                                                     
       
  2157     {
       
  2158     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowUpdatingDialogL() begin");
       
  2159 
       
  2160     // Before trying ot create a new dialog,
       
  2161     // remove possible existing dialog.
       
  2162     RemoveUpdatingDialogsL();
       
  2163 
       
  2164     CDesCArray* stringArray = new( ELeave ) CDesCArrayFlat( 1 );
       
  2165     CleanupStack::PushL( stringArray );
       
  2166     stringArray->AppendL( aName );
       
  2167     CArrayFix<TInt>* numberArray = new( ELeave ) CArrayFixFlat<TInt>( 2 );
       
  2168     CleanupStack::PushL( numberArray );
       
  2169     numberArray->AppendL( aNumber ); 
       
  2170     numberArray->AppendL( aTotalCount );
       
  2171     HBufC* noteText = NULL;
       
  2172     //noteText = StringLoader::LoadLC( aTextResourceId, 
       
  2173     //                                 *stringArray, 
       
  2174     //                                 *numberArray );
       
  2175     TPtr ptr = noteText->Des();
       
  2176     //AknTextUtils::DisplayTextLanguageSpecificNumberConversion( ptr ); 
       
  2177     if ( iState == EDownloading )
       
  2178         {
       
  2179     	ShowProgressDialogL( *noteText, ETrue );
       
  2180         }
       
  2181     else
       
  2182         {
       
  2183         //ShowWaitDialogL( *noteText, ETrue );	
       
  2184         }
       
  2185     
       
  2186     CleanupStack::PopAndDestroy( noteText ); 
       
  2187     CleanupStack::PopAndDestroy( numberArray );
       
  2188     CleanupStack::PopAndDestroy( stringArray );
       
  2189 
       
  2190     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowUpdatingDialogL() end");
       
  2191     }*/
       
  2192  
  2101  
  2193 
       
  2194 // ---------------------------------------------------------------------------
       
  2195 // CIAUpdateUiController::ShowWaitDialogL
       
  2196 // 
       
  2197 // ---------------------------------------------------------------------------
       
  2198 //
       
  2199 void CIAUpdateUiController::ShowWaitDialogL( const QString& aDisplayString, 
       
  2200                                              TBool /*aVisibilityDelayOff*/ ) 
       
  2201     {
       
  2202     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowWaitDialogL() begin");
       
  2203     if ( !mWaitDialog )
       
  2204         {
       
  2205         mWaitDialog = new IAUpdateWaitDialog();
       
  2206         mWaitDialog->SetCallback( this );
       
  2207         mWaitDialog->showDialog( aDisplayString );
       
  2208         }
       
  2209     
       
  2210     
       
  2211     
       
  2212     
       
  2213     /*if ( iWaitDialog )
       
  2214         {
       
  2215         IAUPDATE_TRACE("[IAUPDATE] Wait dialog already existed. Remove it first");
       
  2216         // in some rare cases previous dialog still exists
       
  2217         // it's now just deleted (not recommended way) to avoid forwarding problem(s). 
       
  2218         //delete iWaitDialog;
       
  2219         iWaitDialog = NULL;
       
  2220         }*/
       
  2221  /*   iWaitDialog = 
       
  2222         new( ELeave ) CIAUpdateWaitDialog( 
       
  2223             reinterpret_cast< CEikDialog** >( &iWaitDialog ),
       
  2224             aVisibilityDelayOff );
       
  2225                 
       
  2226     iWaitDialog->SetTextL( aDisplayString );
       
  2227     iWaitDialog->SetCallback( this );        
       
  2228     iWaitDialog->ExecuteLD( R_IAUPDATE_WAIT_DIALOG ); */
       
  2229 
       
  2230     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowWaitDialogL() end");
       
  2231     }
       
  2232 
       
  2233 
       
  2234 // --------------------------------------------------------------------------
       
  2235 // CIAUpdateUiController::ShowProgressDialogL
       
  2236 // 
       
  2237 // ---------------------------------------------------------------------------
       
  2238 //
       
  2239 void CIAUpdateUiController::ShowProgressDialogL( const TDesC& /*aDisplayString*/, 
       
  2240                                                  TBool /*aVisibilityDelayOff*/ ) 
       
  2241     {
       
  2242     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowProgressDialogL() begin");
       
  2243 
       
  2244     if ( iProgressDialog )
       
  2245         {
       
  2246         IAUPDATE_TRACE("[IAUPDATE] Progress dialog already existed. Remove it first");
       
  2247         // in some rare cases previous dialog still exists
       
  2248         // it's now just deleted (not recommended way) to avoid forwarding problem(s). 
       
  2249         //delete iProgressDialog;
       
  2250         iProgressDialog = NULL;
       
  2251         }
       
  2252 /*    iProgressDialog = 
       
  2253         new( ELeave ) CIAUpdateProgressDialog( 
       
  2254             reinterpret_cast< CEikDialog** >( &iProgressDialog ),
       
  2255             aVisibilityDelayOff );
       
  2256                 
       
  2257     iProgressDialog->SetTextL( aDisplayString );
       
  2258     iProgressDialog->SetCallback( this );        
       
  2259     iProgressDialog->ExecuteLD( R_IAUPDATE_PROGRESS_DIALOG ); */
       
  2260 
       
  2261     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::ShowProgressDialogL() end");
       
  2262     }
       
  2263 
       
  2264 
       
  2265 // ---------------------------------------------------------------------------
       
  2266 // CIAUpdateUiController::RemoveUpdatingDialogsL
       
  2267 // 
       
  2268 // ---------------------------------------------------------------------------
       
  2269 //
       
  2270 void CIAUpdateUiController::RemoveUpdatingDialogsL()
       
  2271     {
       
  2272     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveUpdatingDialogsL() begin");
       
  2273     
       
  2274     RemoveWaitDialogL();
       
  2275     RemoveProgressDialogL();
       
  2276 
       
  2277     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveUpdatingDialogsL() end");
       
  2278     }
       
  2279 
       
  2280 
       
  2281 // ---------------------------------------------------------------------------
       
  2282 // CIAUpdateUiController::RemoveWaitDialogL
       
  2283 // 
       
  2284 // ---------------------------------------------------------------------------
       
  2285 //
       
  2286 void CIAUpdateUiController::RemoveWaitDialogL()
       
  2287     {
       
  2288     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveWaitDialogL() begin");
       
  2289     if ( mWaitDialog )
       
  2290         {
       
  2291         mWaitDialog->close();  
       
  2292         }
       
  2293     /*if ( !iCancelling )  //that's needed because AVKON  in 3.2.3 wk12, returning
       
  2294                          //EFalse in TryToExitL() causes a crash   
       
  2295         {
       
  2296     	if ( iWaitDialog )
       
  2297             {
       
  2298     	    iWaitDialog->ProcessFinishedL();
       
  2299             }
       
  2300         }*/
       
  2301     
       
  2302 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveWaitDialogL() end");
       
  2303     }
       
  2304 
       
  2305 
       
  2306 // ---------------------------------------------------------------------------
       
  2307 // CIAUpdateUiController::RemoveProgressDialogL
       
  2308 // 
       
  2309 // ---------------------------------------------------------------------------
       
  2310 //
       
  2311 void CIAUpdateUiController::RemoveProgressDialogL()
       
  2312     {
       
  2313     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveProgressDialogL() begin");
       
  2314 
       
  2315     if ( !iCancelling )  //that's needed because AVKON  in 3.2.3 wk12, returning
       
  2316                          //EFalse in TryToExitL() causes a crash   
       
  2317         {
       
  2318     	if ( iProgressDialog )
       
  2319             {
       
  2320     	    //iProgressDialog->ProcessFinishedL();
       
  2321             }
       
  2322         }
       
  2323     
       
  2324 	IAUPDATE_TRACE("[IAUPDATE] CIAUpdateUiController::RemoveProgressDialogL() end");
       
  2325     }
       
  2326 
  2102 
  2327 
  2103 
  2328 // ---------------------------------------------------------------------------
  2104 // ---------------------------------------------------------------------------
  2329 // CIAUpdateUiController::AllowNetworkRefreshL
  2105 // CIAUpdateUiController::AllowNetworkRefreshL
  2330 // 
  2106 //