harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp
changeset 20 68cdadcf169e
parent 17 7d8c8d8f5eab
--- a/harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp	Wed Aug 18 09:49:49 2010 +0300
+++ b/harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp	Thu Sep 02 20:27:46 2010 +0300
@@ -113,10 +113,21 @@
        AddToFieldExcerptL(textProperty->Value());//Add artist to excerpt
        }
 #ifdef USE_HIGHLIGHTER
-    //Get the media file extension and store
+    /*//Get the media file extension and store
     TBuf<KMaxExtLength> extension;        
     GetExtension(aObject.Uri(),extension);
-    AddToFieldExcerptL(extension);
+    AddToFieldExcerptL(extension);*/
+    //Adding title to first line of highlighter
+    CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty );
+    if(aObject.Property( titlePropDef, property ) != KErrNotFound)
+       {
+       //Add field to document
+       CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property );
+       if(textProperty->Value() != KNullDesC)
+           {
+           index_item->AddHLDisplayFieldL(textProperty->Value());
+           }
+       }
 #endif  
     CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty );
     if(aObject.Property( albumPropDef, property )!= KErrNotFound)