harvesterplugins/media/image/src/cpixmediaimagedoc.cpp
changeset 20 68cdadcf169e
parent 17 7d8c8d8f5eab
equal deleted inserted replaced
17:7d8c8d8f5eab 20:68cdadcf169e
   106           CMdETextProperty* textProperty = ( CMdETextProperty* ) property;
   106           CMdETextProperty* textProperty = ( CMdETextProperty* ) property;
   107           AddToFieldExcerptL(textProperty->Value());
   107           AddToFieldExcerptL(textProperty->Value());
   108           }
   108           }
   109     
   109     
   110 #ifdef USE_HIGHLIGHTER
   110 #ifdef USE_HIGHLIGHTER
   111     //Get the media file extension and store
   111        TInt slashpos = GetUri().LocateReverse('\\');
   112     TBuf<KMaxExtLength> extension;        
   112        TPtrC name = GetUri().Mid( (slashpos+1) );
   113     GetExtension(aObject.Uri(),extension);
   113        index_item->AddHLDisplayFieldL(name);
   114     AddToFieldExcerptL(extension);
       
   115 #endif   
   114 #endif   
   116     //Get user comment field
   115     //Get user comment field
   117     CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty );
   116     CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty );
   118     if(aObject.Property( commentPropDef, property )!= KErrNotFound)
   117     if(aObject.Property( commentPropDef, property )!= KErrNotFound)
   119        {
   118        {