harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp
changeset 26 367228f82b66
parent 18 1edf350003c5
equal deleted inserted replaced
24:1abfa342db42 26:367228f82b66
   110                              MdeConstants::MediaObject::KArtistProperty,
   110                              MdeConstants::MediaObject::KArtistProperty,
   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
   120     //Adding title to first line of highlighter
   126        if(textProperty->Value() != KNullDesC)
   126        if(textProperty->Value() != KNullDesC)
   127            {
   127            {
   128            index_item->AddHLDisplayFieldL(textProperty->Value());
   128            index_item->AddHLDisplayFieldL(textProperty->Value());
   129            }
   129            }
   130        }
   130        }
   131 #endif  
   131 //#endif  
   132     CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty );
   132     CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty );
   133     if(aObject.Property( albumPropDef, property )!= KErrNotFound)
   133     if(aObject.Property( albumPropDef, property )!= KErrNotFound)
   134        {
   134        {
   135        //Add field to document
   135        //Add field to document
   136        CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property);
   136        CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property);