102 //Add Name field to document excerpt, ONLY if title field is not empty. |
102 //Add Name field to document excerpt, ONLY if title field is not empty. |
103 CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty ); |
103 CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty ); |
104 if(aObject.Property( titlePropDef, property ) != KErrNotFound) |
104 if(aObject.Property( titlePropDef, property ) != KErrNotFound) |
105 { |
105 { |
106 CMdETextProperty* textProperty = ( CMdETextProperty* ) property; |
106 CMdETextProperty* textProperty = ( CMdETextProperty* ) property; |
107 if( textProperty->Value().Compare(KNullDesC) > 0 )AddToFieldExcerptL(name); //Add name to excerpt field |
107 if( textProperty->Value().Compare(KNullDesC) > 0 ) |
|
108 { |
|
109 #ifdef USE_HIGHLIGHTER |
|
110 index_item->AddHLDisplayFieldL(textProperty->Value()); |
|
111 AddToFieldExcerptL(name); //Add name to excerpt field |
|
112 #else |
|
113 AddToFieldExcerptL(name); //Add name to excerpt field |
|
114 #endif |
|
115 } |
|
116 else |
|
117 { |
|
118 #ifdef USE_HIGHLIGHTER |
|
119 index_item->AddHLDisplayFieldL(name); |
|
120 #endif |
|
121 } |
108 } |
122 } |
109 #ifdef USE_HIGHLIGHTER |
|
110 //Get the media file extension and store |
|
111 TBuf<KMaxExtLength> extension; |
|
112 GetExtension(aObject.Uri(),extension); |
|
113 AddToFieldExcerptL(extension); |
|
114 #endif |
|
115 |
|
116 //URI and Excerpt is done add additional properties here |
123 //URI and Excerpt is done add additional properties here |
117 |
124 |
118 CMdEPropertyDef& artistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty ); |
125 CMdEPropertyDef& artistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty ); |
119 if(aObject.Property( artistPropDef, property )!= KErrNotFound) |
126 if(aObject.Property( artistPropDef, property )!= KErrNotFound) |
120 { |
127 { |