harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp
changeset 20 68cdadcf169e
parent 17 7d8c8d8f5eab
equal deleted inserted replaced
17:7d8c8d8f5eab 20:68cdadcf169e
   111                              textProperty->Value(),
   111                              textProperty->Value(),
   112                              CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText);
   112                              CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText);
   113        AddToFieldExcerptL(textProperty->Value());//Add artist to excerpt
   113        AddToFieldExcerptL(textProperty->Value());//Add artist to excerpt
   114        }
   114        }
   115 #ifdef USE_HIGHLIGHTER
   115 #ifdef USE_HIGHLIGHTER
   116     //Get the media file extension and store
   116     /*//Get the media file extension and store
   117     TBuf<KMaxExtLength> extension;        
   117     TBuf<KMaxExtLength> extension;        
   118     GetExtension(aObject.Uri(),extension);
   118     GetExtension(aObject.Uri(),extension);
   119     AddToFieldExcerptL(extension);
   119     AddToFieldExcerptL(extension);*/
       
   120     //Adding title to first line of highlighter
       
   121     CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty );
       
   122     if(aObject.Property( titlePropDef, property ) != KErrNotFound)
       
   123        {
       
   124        //Add field to document
       
   125        CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property );
       
   126        if(textProperty->Value() != KNullDesC)
       
   127            {
       
   128            index_item->AddHLDisplayFieldL(textProperty->Value());
       
   129            }
       
   130        }
   120 #endif  
   131 #endif  
   121     CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty );
   132     CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty );
   122     if(aObject.Property( albumPropDef, property )!= KErrNotFound)
   133     if(aObject.Property( albumPropDef, property )!= KErrNotFound)
   123        {
   134        {
   124        //Add field to document
   135        //Add field to document