messagingapp/msgappfw/server/src/ccsconversation.cpp
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 48 4f501b74aeb1
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
   251 // this will be display name, number and contact Id
   251 // this will be display name, number and contact Id
   252 // ----------------------------------------------------------------------------
   252 // ----------------------------------------------------------------------------
   253 void
   253 void
   254 CCsConversation::AddContactDetailsL(
   254 CCsConversation::AddContactDetailsL(
   255         TInt32  aContactId,
   255         TInt32  aContactId,
   256         const TDesC& aDisplayName)
   256         const HBufC* aDisplayName)
   257     {
   257     {
   258     iContact->SetDisplayNameL(aDisplayName);
   258     if(aDisplayName)
       
   259     {
       
   260         iContact->SetDisplayNameL(*aDisplayName);    
       
   261     }
   259     iContact->SetContactId (aContactId);    
   262     iContact->SetContactId (aContactId);    
   260     }
   263     }
   261 
   264 
   262 // ----------------------------------------------------------------------------
   265 // ----------------------------------------------------------------------------
   263 // CCsConversation::AddContactDetails
   266 // CCsConversation::AddContactDetails