installationservices/swi/source/swis/server/restoreprocessor.cpp
changeset 52 92f864ef0288
parent 33 8110bf1194d1
child 75 2d2d25361590
equal deleted inserted replaced
42:d17dc5398051 52:92f864ef0288
   511 	                    affectedApps.AppendL(existingAppInfo);
   511 	                    affectedApps.AppendL(existingAppInfo);
   512 	                    }
   512 	                    }
   513 	                }  		           
   513 	                }  		           
   514 	            }
   514 	            }
   515 	        
   515 	        
       
   516 	        //Compare the new affected apps with the existing affected apps and update the existing affected apps if alredy present or 
       
   517             //add to the list if it is a new app.
       
   518             RArray<TAppUpdateInfo> existingAffectedApps;
       
   519             CleanupClosePushL(existingAffectedApps);
       
   520             const_cast<CPlan&>(iPlan).GetAffectedApps(existingAffectedApps);
       
   521             TInt appCount = affectedApps.Count();
       
   522             for(TInt k = 0; k < appCount ; ++k)
       
   523                 {
       
   524                 TInt count = existingAffectedApps.Count();
       
   525                 TUid appUid = affectedApps[k].iAppUid;
       
   526                 for(TInt index = 0; index < count ; ++index)
       
   527                    {
       
   528                    if(appUid == existingAffectedApps[index].iAppUid)
       
   529                        {           
       
   530                        existingAffectedApps.Remove(index);                                    
       
   531                        }
       
   532                    }
       
   533                 existingAffectedApps.AppendL(affectedApps[k]);
       
   534                 }
   516 	        const_cast<CPlan&>(iPlan).ResetAffectedApps();
   535 	        const_cast<CPlan&>(iPlan).ResetAffectedApps();
   517 	        const_cast<CPlan&>(iPlan).SetAffectedApps(affectedApps);
   536 	        const_cast<CPlan&>(iPlan).SetAffectedApps(affectedApps);
   518 	        
   537 	        
   519 	        CleanupStack::PopAndDestroy(2, &componentIds);
   538 	        CleanupStack::PopAndDestroy(3, &componentIds);
   520 	        }
   539 	        }
   521 	
   540 	
   522 #else
   541 #else
   523 	CleanupStack::PopAndDestroy(&session);
   542 	CleanupStack::PopAndDestroy(&session);
   524 #endif
   543 #endif