voiceui/vcommand/src/uiarraysgenerator.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 0 bf1d17376201
equal deleted inserted replaced
9:fc313e1df071 11:6347473a7bb2
   204  */
   204  */
   205 void CUiArraysGenerator::FillArraysL( const CVCModel& aSource, const TDesC& aCurrentFolderTitle,
   205 void CUiArraysGenerator::FillArraysL( const CVCModel& aSource, const TDesC& aCurrentFolderTitle,
   206 				  CAknIconArray& aIconArray, CDesC16ArrayFlat& aFolderTitles, 
   206 				  CAknIconArray& aIconArray, CDesC16ArrayFlat& aFolderTitles, 
   207 				  RArray<TBool>& aItemIsFolder, CDesC16ArrayFlat& aItemArray )
   207 				  RArray<TBool>& aItemIsFolder, CDesC16ArrayFlat& aItemArray )
   208 	{
   208 	{
       
   209 	CleanupClosePushL( aItemIsFolder ); 
       
   210 	
   209 	aIconArray.ResetAndDestroy();
   211 	aIconArray.ResetAndDestroy();
   210 	aFolderTitles.Reset();
   212 	aFolderTitles.Reset();
   211 	aItemIsFolder.Reset();
   213 	aItemIsFolder.Reset();
   212 	aItemArray.Reset();
   214 	aItemArray.Reset();
   213     // Get folder entries
   215     // Get folder entries
   239         aItemArray.AppendL( *string );
   241         aItemArray.AppendL( *string );
   240         CleanupStack::PopAndDestroy( string );
   242         CleanupStack::PopAndDestroy( string );
   241         }
   243         }
   242     
   244     
   243     CleanupStack::PopAndDestroy( entries );  // ResetAndDestroy
   245     CleanupStack::PopAndDestroy( entries );  // ResetAndDestroy
   244     CleanupStack::PopAndDestroy( entries );  // delete    
   246     CleanupStack::PopAndDestroy( entries );  // delete
       
   247     
       
   248     CleanupStack::Pop(); //aItemIsFolder
   245 	}
   249 	}
   246 
   250 
   247 /**
   251 /**
   248  * Updates a set of arrays required by the VCommand app ui to match current folder names
   252  * Updates a set of arrays required by the VCommand app ui to match current folder names
   249  * I.e. basing on the "current folder" prepares the arrays for the listbox
   253  * I.e. basing on the "current folder" prepares the arrays for the listbox