harvester/harvesterplugins/RTPPlugin/src/harvesterrtpplugin.cpp
changeset 20 6dfc5f825351
parent 0 c53acadfccc6
child 15 3cebc1a84278
--- a/harvester/harvesterplugins/RTPPlugin/src/harvesterrtpplugin.cpp	Tue Feb 02 00:24:33 2010 +0200
+++ b/harvester/harvesterplugins/RTPPlugin/src/harvesterrtpplugin.cpp	Fri Mar 19 09:38:01 2010 +0200
@@ -153,6 +153,15 @@
     }
 
 // ---------------------------------------------------------------------------
+// CHarvesterAudioPlugin::GetMimeType (from CHarvesterPlugin)
+// ---------------------------------------------------------------------------
+//    
+void CHarvesterRtpPlugin::GetMimeType( const TDesC& /*aUri*/, TDes& aMimeType )
+    {
+    aMimeType = KRtpClipMimetype;
+    }
+
+// ---------------------------------------------------------------------------
 // Gather metadata
 // ---------------------------------------------------------------------------
 //
@@ -271,6 +280,9 @@
     	// File size
     	CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, 
     			*iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd );
+        // Mime Type
+        CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, 
+                *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd );
     	}
 
     // Title (is set from URI by default)
@@ -280,10 +292,6 @@
         		*iPropDefs->iTitlePropertyDef, &aClipDetails.iTitle, EFalse );
         }
 
-    // Mime Type
-    CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, 
-    		*iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd );
-
     // Capture date
     CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, 
     		*iPropDefs->iCaptureDatePropertyDef, &localModifiedTime, aIsAdd );