harvesterplugins/notes/src/notesplugin.cpp
changeset 5 3bc31ad99ee7
parent 3 6832643895f7
child 7 51d10d255e92
equal deleted inserted replaced
3:6832643895f7 5:3bc31ad99ee7
   350 		endTime.FormatL(dateString, KNotesTimeFormat);
   350 		endTime.FormatL(dateString, KNotesTimeFormat);
   351 		index_item->AddFieldL(KNpdUpdateTime, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized);
   351 		index_item->AddFieldL(KNpdUpdateTime, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized);
   352 
   352 
   353 		index_item->AddFieldL(KMimeTypeField, KMimeTypeNotes, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized);
   353 		index_item->AddFieldL(KMimeTypeField, KMimeTypeNotes, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized);
   354 
   354 
   355     	TInt excerptLength = entry->DescriptionL().Length();
   355 		//For notes, no content is expected in excerpt for now.
   356 		HBufC* excerpt = HBufC::NewLC(excerptLength);
   356 		//See appclass-hierarchy.txt for details.
   357 		TPtr excerptDes = excerpt->Des();		
   357 //    	TInt excerptLength = entry->DescriptionL().Length();
   358 		excerptDes.Append(entry->DescriptionL());
   358 //		HBufC* excerpt = HBufC::NewLC(excerptLength);
   359 		
   359 //		TPtr excerptDes = excerpt->Des();		
   360         index_item->AddExcerptL(*excerpt);
   360 //		excerptDes.Append(entry->DescriptionL());
   361         CleanupStack::PopAndDestroy(excerpt);      
   361 //      index_item->AddExcerptL(*excerpt);
       
   362 //      CleanupStack::PopAndDestroy(excerpt);      
   362 		
   363 		
   363 		// Send for indexing
   364 		// Send for indexing
   364 		if (aActionType == ECPixAddAction)
   365 		if (aActionType == ECPixAddAction)
   365 			{
   366 			{
   366 #ifndef _DEBUG
   367 #ifndef _DEBUG