photosgallery/collectionframework/plugins/glxcollectionpluginalbums/src/glxcollectionpluginalbums.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 1 9ba538e329bd
child 47 f9e827349359
equal deleted inserted replaced
32:78ad99c24f08 35:420f6808bf21
   220                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_EMPTY);
   220                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_EMPTY);
   221                 	
   221                 	
   222                 	// Set the title in the response.
   222                 	// Set the title in the response.
   223             		aResponse->SetTextValueL(attr, *tempTitle);  
   223             		aResponse->SetTextValueL(attr, *tempTitle);  
   224             		CleanupStack::PopAndDestroy(tempTitle);
   224             		CleanupStack::PopAndDestroy(tempTitle);
       
   225 					
       
   226             		// Set the count in the response.
       
   227             		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount); 
       
   228 					
   225             		continue;                	
   229             		continue;                	
   226             		}            	
   230             		}            	
   227             	else if (1 == usageCount)
   231             	else if (1 == usageCount)
   228                 	{
   232                 	{
   229                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_SINGLE);
   233                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_SINGLE);
   230                     aResponse->SetTextValueL(attr, *tempTitle);  
   234                     aResponse->SetTextValueL(attr, *tempTitle);  
   231                     CleanupStack::PopAndDestroy(tempTitle);
   235                     CleanupStack::PopAndDestroy(tempTitle);
       
   236 					
       
   237             		// Set the count in the response.
       
   238             		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
       
   239 
   232                     continue;                   
   240                     continue;                   
   233                 	}
   241                 	}
   234                 else
   242                 else
   235                 	{
   243                 	{
   236                     tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_MULTI);
   244                     tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_MULTI);
   244             TPtr ptr = title->Des();
   252             TPtr ptr = title->Des();
   245             StringLoader::Format(ptr, formatString, -1, usageCount);
   253             StringLoader::Format(ptr, formatString, -1, usageCount);
   246             
   254             
   247             // Set the title in the response.
   255             // Set the title in the response.
   248             aResponse->SetTextValueL(attr, *title);    
   256             aResponse->SetTextValueL(attr, *title);    
       
   257 
       
   258             // Set the count in the response.
       
   259             aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
   249 
   260 
   250             CleanupStack::PopAndDestroy(title);
   261             CleanupStack::PopAndDestroy(title);
   251             CleanupStack::PopAndDestroy(tempTitle);
   262             CleanupStack::PopAndDestroy(tempTitle);
   252             }
   263             }
   253         else if (attr == KGlxMediaCollectionPluginSpecificSelectMediaPopupTitle)
   264         else if (attr == KGlxMediaCollectionPluginSpecificSelectMediaPopupTitle)