engine/collectionframework/plugins/tagcollectionplugin/src/glxcollectionplugintags.cpp
changeset 43 72396548277c
parent 24 99ad1390cd33
equal deleted inserted replaced
42:5e1df1b52eb3 43:72396548277c
   100 	    {
   100 	    {
   101 	    // need to add the usage count. but check first if it is already present
   101 	    // need to add the usage count. but check first if it is already present
   102 	    TInt attrCount = aAttributeArray.Count();
   102 	    TInt attrCount = aAttributeArray.Count();
   103 	    TBool found = EFalse;
   103 	    TBool found = EFalse;
   104 	    
   104 	    
   105 	    //GLX_DEBUG1("CGlxCollectionPluginTags::CpiAttributeAdditionalAttributes-AttributesCount");  
   105 	    GLX_DEBUG1("CGlxCollectionPluginTags::CpiAttributeAdditionalAttributes-AttributesCount");  
   106 	    
   106 	    
   107 	    for ( TInt index = 0 ; index < attrCount ; index++)
   107 	    for ( TInt index = 0 ; index < attrCount ; index++)
   108 	        {
   108 	        {
   109 	        if (aAttributeArray[index] == KMPXMediaGeneralCount)
   109 	        if (aAttributeArray[index] == KMPXMediaGeneralCount)
   110 	            {
   110 	            {
   167             for (TInt index = 0; index < arrayCount; index++)
   167             for (TInt index = 0; index < arrayCount; index++)
   168                 {
   168                 {
   169                 HandleCpiAttributeResponseL((*mediaArray)[index], aCpiAttributes, 
   169                 HandleCpiAttributeResponseL((*mediaArray)[index], aCpiAttributes, 
   170                 						aMediaIds[index]);
   170                 						aMediaIds[index]);
   171                 }
   171                 }
   172 
       
   173 			 /// @todo - Can we reset a value. Does it overwrite the original or does it leak? Must test
       
   174             aResponse->SetCObjectValueL(KMPXMediaArrayContents, mediaArray);        
   172             aResponse->SetCObjectValueL(KMPXMediaArrayContents, mediaArray);        
   175             CleanupStack::PopAndDestroy(mediaArray);
   173             CleanupStack::PopAndDestroy(mediaArray);
   176             }
   174             }
   177         break;
   175         break;
   178         }
   176         }
   223                 		}
   221                 		}
   224                 	else if (1 == usageCount)
   222                 	else if (1 == usageCount)
   225                     	{
   223                     	{
   226                     	tempTitle = LoadLocalizedStringLC(KResourceFile,
   224                     	tempTitle = LoadLocalizedStringLC(KResourceFile,
   227                    			 R_TAG_SUB_TITLE_SINGLE);
   225                    			 R_TAG_SUB_TITLE_SINGLE);
       
   226                         aResponse->SetTextValueL(attr, *tempTitle);  
       
   227                         CleanupStack::PopAndDestroy(tempTitle);
       
   228                         continue;
   228                     	}
   229                     	}
   229                     else 
   230                     else 
   230                     	{
   231                     	{
   231                     	tempTitle = LoadLocalizedStringLC(KResourceFile,
   232                     	tempTitle = LoadLocalizedStringLC(KResourceFile,
   232                    			 R_TAG_SUB_TITLE_MULTI);
   233                    			 R_TAG_SUB_TITLE_MULTI);
   245                 		}
   246                 		}
   246                 	else if (1 == usageCount)
   247                 	else if (1 == usageCount)
   247                 		{
   248                 		{
   248                 		tempTitle = LoadLocalizedStringLC(KResourceFile,
   249                 		tempTitle = LoadLocalizedStringLC(KResourceFile,
   249                    			 R_TAG_ITEM_SUB_TITLE_SINGLE);
   250                    			 R_TAG_ITEM_SUB_TITLE_SINGLE);
       
   251                         aResponse->SetTextValueL(attr, *tempTitle);  
       
   252                         CleanupStack::PopAndDestroy(tempTitle);
       
   253                         continue;
   250                 		}
   254                 		}
   251                     else
   255                     else
   252                         {
   256                         {
   253                         tempTitle = LoadLocalizedStringLC(KResourceFile,
   257                         tempTitle = LoadLocalizedStringLC(KResourceFile,
   254                         			 R_TAG_ITEM_SUB_TITLE_MULTI);
   258                         			 R_TAG_ITEM_SUB_TITLE_MULTI);