harvesterplugins/messaging/smsmms/src/cmessagedatahandler.cpp
changeset 17 7d8c8d8f5eab
parent 12 993ab30e92fc
child 20 68cdadcf169e
equal deleted inserted replaced
12:993ab30e92fc 17:7d8c8d8f5eab
   491     //Note:Only From/To (as appropriate): and Body: fields to be added to excerpt for now. 
   491     //Note:Only From/To (as appropriate): and Body: fields to be added to excerpt for now. 
   492     //See appclass-hierarchy.txt for details.  
   492     //See appclass-hierarchy.txt for details.  
   493     
   493     
   494 	_LIT(KEllipsis, "...");
   494 	_LIT(KEllipsis, "...");
   495 	_LIT(KSpace, " ");
   495 	_LIT(KSpace, " ");
   496 	TInt excerptLength = KMsgBodyExcerptSymbols + KEllipsis().Length(); 
   496 	//
   497 
   497 #ifdef USE_HIGHLIGHTER	
       
   498 	TInt excerptLength = aBodyText.Length() + KEllipsis().Length();
       
   499 #else	
       
   500 	TInt excerptLength = KMsgBodyExcerptSymbols + KEllipsis().Length();
       
   501 #endif	
   498 	//Not removing commented out code as this may come back into use in near future.
   502 	//Not removing commented out code as this may come back into use in near future.
   499 //	TMsvEntry entry;
   503 //	TMsvEntry entry;
   500 //	TMsvId service = 0;
   504 //	TMsvId service = 0;
   501 //	iMsvSession.GetEntry(aFolderId, service, entry);
   505 //	iMsvSession.GetEntry(aFolderId, service, entry);
   502 //	HBufC *folder_str = entry.iDetails.AllocLC();
   506 //	HBufC *folder_str = entry.iDetails.AllocLC();
   539 //	if (aSubject.Length() > 0)
   543 //	if (aSubject.Length() > 0)
   540 //		{
   544 //		{
   541 //		excerptPtr.Append(aSubject);
   545 //		excerptPtr.Append(aSubject);
   542 //		excerptPtr.Append(KSpace);
   546 //		excerptPtr.Append(KSpace);
   543 //		}
   547 //		}
   544 
   548 #ifdef USE_HIGHLIGHTER
   545 	excerptPtr.Append(aBodyText.Left(KMsgBodyExcerptSymbols));
   549     excerptPtr.Append(aBodyText);
       
   550 #else    
       
   551 	excerptPtr.Append(aBodyText.Left(KMsgBodyExcerptSymbols));	
   546 	if (aBodyText.Length() > KMsgBodyExcerptSymbols)
   552 	if (aBodyText.Length() > KMsgBodyExcerptSymbols)
   547 		excerptPtr.Append(KEllipsis);
   553 		excerptPtr.Append(KEllipsis);
   548 
   554 #endif
   549 //	CleanupStack::PopAndDestroy(folder_str);
   555 //	CleanupStack::PopAndDestroy(folder_str);
   550 	CleanupStack::PushL(excerpt);
   556 	CleanupStack::PushL(excerpt);
   551 	return excerpt;
   557 	return excerpt;
   552 	}
   558 	}
   553 
   559