diff -r b73a2e62868f -r 6752808b2036 harvester/harvesterplugins/WMVPlugin/src/harvesterwmvplugin.cpp --- a/harvester/harvesterplugins/WMVPlugin/src/harvesterwmvplugin.cpp Tue Feb 02 00:24:33 2010 +0200 +++ b/harvester/harvesterplugins/WMVPlugin/src/harvesterwmvplugin.cpp Fri Feb 19 23:14:48 2010 +0200 @@ -122,6 +122,24 @@ } // --------------------------------------------------------------------------- +// CHarvesterWMVPlugin::GetMimeType (from CHarvesterPlugin) +// --------------------------------------------------------------------------- +// +void CHarvesterWMVPlugin::GetMimeType( const TDesC& aUri, TDes& aMimeType ) + { + aMimeType.Zero(); + + ContentAccess::CContent* content = NULL; + + TRAPD( err, content = ContentAccess::CContent::NewL( aUri ) ); + if (err == KErrNone) + { + err = content->GetStringAttribute( ContentAccess::EMimeType, aMimeType ); + delete content; + } + } + +// --------------------------------------------------------------------------- // Default constructor // --------------------------------------------------------------------------- // @@ -204,9 +222,9 @@ // File size CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, *iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd ); + // Mime Type + CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, + *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); } + } - // Mime Type - CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, - *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); - }