photosgallery/collectionframework/plugins/glxcollectionpluginalbums/src/glxcollectionpluginalbums.cpp
branchRCL_3
changeset 35 420f6808bf21
parent 1 9ba538e329bd
child 47 f9e827349359
--- a/photosgallery/collectionframework/plugins/glxcollectionpluginalbums/src/glxcollectionpluginalbums.cpp	Tue May 25 12:42:31 2010 +0300
+++ b/photosgallery/collectionframework/plugins/glxcollectionpluginalbums/src/glxcollectionpluginalbums.cpp	Wed Jun 09 09:41:51 2010 +0300
@@ -222,6 +222,10 @@
                 	// Set the title in the response.
             		aResponse->SetTextValueL(attr, *tempTitle);  
             		CleanupStack::PopAndDestroy(tempTitle);
+					
+            		// Set the count in the response.
+            		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount); 
+					
             		continue;                	
             		}            	
             	else if (1 == usageCount)
@@ -229,6 +233,10 @@
                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_SINGLE);
                     aResponse->SetTextValueL(attr, *tempTitle);  
                     CleanupStack::PopAndDestroy(tempTitle);
+					
+            		// Set the count in the response.
+            		aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
+
                     continue;                   
                 	}
                 else
@@ -247,6 +255,9 @@
             // Set the title in the response.
             aResponse->SetTextValueL(attr, *title);    
 
+            // Set the count in the response.
+            aResponse->SetTObjectValueL(KMPXMediaGeneralCount, usageCount);    
+
             CleanupStack::PopAndDestroy(title);
             CleanupStack::PopAndDestroy(tempTitle);
             }