photosgallery/collectionframework/plugins/glxcollectionpluginmonths/src/glxcollectionpluginmonths.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 30 a60acebbbd9d
child 47 f9e827349359
equal deleted inserted replaced
32:78ad99c24f08 35:420f6808bf21
   535                 				R_MONTHS_SUB_TITLE_NO_IMAGE_NO_VIDEO);
   535                 				R_MONTHS_SUB_TITLE_NO_IMAGE_NO_VIDEO);
   536 
   536 
   537                 	// Set the title in the response.
   537                 	// Set the title in the response.
   538             		aResponse->SetTextValueL(attr, *tempTitle);
   538             		aResponse->SetTextValueL(attr, *tempTitle);
   539             		CleanupStack::PopAndDestroy(tempTitle);
   539             		CleanupStack::PopAndDestroy(tempTitle);
       
   540 					
       
   541             		// Set the count in the response.
       
   542             		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
       
   543 
   540             		continue;
   544             		continue;
   541             		}
   545             		}
   542 
   546 
   543             	else if (1 == usageCount)
   547             	else if (1 == usageCount)
   544                     {
   548                     {
   545                     tempTitle = LoadLocalizedStringLC(KResourceFile,
   549                     tempTitle = LoadLocalizedStringLC(KResourceFile,
   546                     			R_MONTHS_SUB_TITLE_SINGLE);
   550                     			R_MONTHS_SUB_TITLE_SINGLE);
   547 
   551 
   548                     aResponse->SetTextValueL(attr, *tempTitle);
   552                     aResponse->SetTextValueL(attr, *tempTitle);
   549                     CleanupStack::PopAndDestroy(tempTitle);
   553                     CleanupStack::PopAndDestroy(tempTitle);
       
   554 					
       
   555             		// Set the count in the response.
       
   556             		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
       
   557 					
   550                     continue;
   558                     continue;
   551                     }
   559                     }
   552                 else
   560                 else
   553                     {
   561                     {
   554                     tempTitle = LoadLocalizedStringLC(KResourceFile,
   562                     tempTitle = LoadLocalizedStringLC(KResourceFile,
   562                 TPtr ptr = title->Des();
   570                 TPtr ptr = title->Des();
   563                 StringLoader::Format(ptr, formatString, -1, usageCount);
   571                 StringLoader::Format(ptr, formatString, -1, usageCount);
   564                 
   572                 
   565                 // Set the title in the response.
   573                 // Set the title in the response.
   566                 aResponse->SetTextValueL(attr, *title);    
   574                 aResponse->SetTextValueL(attr, *title);    
       
   575 
       
   576                 // Set the count in the response.
       
   577                 aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
   567 
   578 
   568                 CleanupStack::PopAndDestroy(title);
   579                 CleanupStack::PopAndDestroy(title);
   569                 CleanupStack::PopAndDestroy(tempTitle);	
   580                 CleanupStack::PopAndDestroy(tempTitle);	
   570 #endif                			
   581 #endif                			
   571 				}	
   582 				}