installationservices/swi/source/plan/plan.cpp
branchRCL_3
changeset 66 8b7f4e561641
parent 65 7333d7932ef7
equal deleted inserted replaced
65:7333d7932ef7 66:8b7f4e561641
    36 	delete iAppInfo;
    36 	delete iAppInfo;
    37 	delete iApplication;
    37 	delete iApplication;
    38 	iFilesToRunBeforeShutdown.ResetAndDestroy();
    38 	iFilesToRunBeforeShutdown.ResetAndDestroy();
    39 	iFilesToRunAfterInstall.ResetAndDestroy();
    39 	iFilesToRunAfterInstall.ResetAndDestroy();
    40 	iAppArcRegFiles.ResetAndDestroy();
    40 	iAppArcRegFiles.ResetAndDestroy();
    41 #ifdef  SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK	
       
    42 	iAffectedApps.Close();
       
    43 #endif
       
    44 	}
    41 	}
    45 
    42 
    46 EXPORT_C CPlan* CPlan::NewL()
    43 EXPORT_C CPlan* CPlan::NewL()
    47 	{
    44 	{
    48 	CPlan* self=new (ELeave) CPlan();
    45 	CPlan* self=new (ELeave) CPlan();
   153 
   150 
   154 EXPORT_C void CPlan::ResetAppArcRegFiles()
   151 EXPORT_C void CPlan::ResetAppArcRegFiles()
   155 	{
   152 	{
   156 	iAppArcRegFiles.ResetAndDestroy();
   153 	iAppArcRegFiles.ResetAndDestroy();
   157 	}
   154 	}
       
   155 	
   158 
   156 
   159 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK 
       
   160 EXPORT_C void CPlan::SetAffectedApps(RArray<TAppUpdateInfo>& aAppInfo)
       
   161     {
       
   162     TInt count = aAppInfo.Count();
       
   163     for(TInt i = 0 ; i< count ; i++)
       
   164         {
       
   165         iAffectedApps.Append(aAppInfo[i]);
       
   166         }
       
   167     }
       
   168     
       
   169 EXPORT_C void CPlan::GetAffectedApps(RArray<TAppUpdateInfo>& aAppInfo) const
       
   170     {
       
   171     TInt count = iAffectedApps.Count();
       
   172     for(TInt i = 0 ; i< count ; i++)
       
   173         {
       
   174         aAppInfo.Append(iAffectedApps[i]);
       
   175         }
       
   176     }
       
   177 
       
   178 EXPORT_C void CPlan::ResetAffectedApps()
       
   179     {
       
   180     iAffectedApps.Reset();    
       
   181     }
       
   182 #endif