phonebookui/Phonebook2/UIControls/src/CPbk2StoreInfoItemBuilder.cpp
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
0:e686773b3f54 3:04ab22b956c2
   464     const TInt singleValue = 1;
   464     const TInt singleValue = 1;
   465 
   465 
   466     if ( aItem.TextType() == EPbk2StoreInfoStoreName && aProperty )
   466     if ( aItem.TextType() == EPbk2StoreInfoStoreName && aProperty )
   467         {
   467         {
   468         CPbk2Content* content = aProperty->RetrieveContentLC
   468         CPbk2Content* content = aProperty->RetrieveContentLC
   469             ( EPbk2MemInfoPhone );
   469             ( EPbk2MemInfoContacts );
   470 
   470 
   471         CPbk2StorePropertyContentStoreName* propContent =
   471         CPbk2StorePropertyContentStoreName* propContent =
   472             dynamic_cast<CPbk2StorePropertyContentStoreName*>( content );
   472             dynamic_cast<CPbk2StorePropertyContentStoreName*>( content );
   473 
   473 
   474         HBufC* storeName = NULL;
   474         HBufC* storeName = NULL;
   484 
   484 
   485         CleanupStack::PopAndDestroy( content );
   485         CleanupStack::PopAndDestroy( content );
   486         retVal = storeName;
   486         retVal = storeName;
   487         }
   487         }
   488 
   488 
   489     else if (aValue == singleValue)
       
   490         {
       
   491         retVal = aItem.ItemTextSingular().AllocL();
       
   492         }
       
   493     else
   489     else
   494         {
   490         {
   495         retVal = aItem.ItemTextPlural().AllocL();
   491         retVal = aItem.ItemTextPlural().AllocL();
   496         }
   492         }
   497 
   493