151 } |
151 } |
152 CleanupStack::PopAndDestroy( clipDetails ); |
152 CleanupStack::PopAndDestroy( clipDetails ); |
153 } |
153 } |
154 |
154 |
155 // --------------------------------------------------------------------------- |
155 // --------------------------------------------------------------------------- |
|
156 // CHarvesterAudioPlugin::GetMimeType (from CHarvesterPlugin) |
|
157 // --------------------------------------------------------------------------- |
|
158 // |
|
159 void CHarvesterRtpPlugin::GetMimeType( const TDesC& /*aUri*/, TDes& aMimeType ) |
|
160 { |
|
161 aMimeType = KRtpClipMimetype; |
|
162 } |
|
163 |
|
164 // --------------------------------------------------------------------------- |
156 // Gather metadata |
165 // Gather metadata |
157 // --------------------------------------------------------------------------- |
166 // --------------------------------------------------------------------------- |
158 // |
167 // |
159 void CHarvesterRtpPlugin::GatherDataL( CMdEObject& aMetadataObject, CHarvesterRtpClipDetails& aClipDetails ) |
168 void CHarvesterRtpPlugin::GatherDataL( CMdEObject& aMetadataObject, CHarvesterRtpClipDetails& aClipDetails ) |
160 { |
169 { |
269 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
278 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
270 *iPropDefs->iLastModifiedDatePropertyDef, &aClipDetails.iModifiedDate, aIsAdd ); |
279 *iPropDefs->iLastModifiedDatePropertyDef, &aClipDetails.iModifiedDate, aIsAdd ); |
271 // File size |
280 // File size |
272 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
281 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
273 *iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd ); |
282 *iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd ); |
|
283 // Mime Type |
|
284 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
|
285 *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); |
274 } |
286 } |
275 |
287 |
276 // Title (is set from URI by default) |
288 // Title (is set from URI by default) |
277 if ( aClipDetails.iTitle.Length() > 0 ) |
289 if ( aClipDetails.iTitle.Length() > 0 ) |
278 { |
290 { |
279 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
291 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
280 *iPropDefs->iTitlePropertyDef, &aClipDetails.iTitle, EFalse ); |
292 *iPropDefs->iTitlePropertyDef, &aClipDetails.iTitle, EFalse ); |
281 } |
293 } |
282 |
|
283 // Mime Type |
|
284 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
|
285 *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); |
|
286 |
294 |
287 // Capture date |
295 // Capture date |
288 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
296 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
289 *iPropDefs->iCaptureDatePropertyDef, &localModifiedTime, aIsAdd ); |
297 *iPropDefs->iCaptureDatePropertyDef, &localModifiedTime, aIsAdd ); |
290 |
298 |