phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherlpadmodel.cpp
branchRCL_3
changeset 5 81f8547efd4f
parent 3 04ab22b956c2
child 6 e8e3147d53eb
equal deleted inserted replaced
3:04ab22b956c2 5:81f8547efd4f
   256         tempText.AppendNum( MapCommMethodToIcon(
   256         tempText.AppendNum( MapCommMethodToIcon(
   257             iButtonDataArray[ aIndex ].iContactAction ));
   257             iButtonDataArray[ aIndex ].iContactAction ));
   258         tempText.Append( KColumnListSeparator );
   258         tempText.Append( KColumnListSeparator );
   259         tempText.Append( iButtonDataArray[ aIndex ].iText );      
   259         tempText.Append( iButtonDataArray[ aIndex ].iText );      
   260         tempText.Append( KColumnListSeparator );  
   260         tempText.Append( KColumnListSeparator );  
   261         tempText.Append( textPtr );
   261         if( textPtr.Length() + tempText.Length() >=
   262         tempText.Append( KColumnListSeparator ); 
   262                 KCCAppCommLauncherMaxButtonDataTextLength )
   263         
   263             {
       
   264             tempText.Append( textPtr.Left(
       
   265                KCCAppCommLauncherMaxButtonDataTextLength - tempText.Length() - 1 ) );
       
   266             }
       
   267         else
       
   268             {
       
   269             tempText.Append( textPtr );
       
   270             }
   264         // TODO: Check presence icon
   271         // TODO: Check presence icon
   265         tempText.Append( KColumnListSeparator ); 
   272         tempText.Append( KColumnListSeparator ); 
   266         
   273         
   267         // Check if show multi icon at the right end of second row
   274         // Check if show multi icon at the right end of second row
   268         if ( IfShowMultiIcon( aIndex ) )
   275         if ( IfShowMultiIcon( aIndex ) )