--- a/harvester/harvesterplugins/OMADRMPlugin/src/harvesteromadrmplugin.cpp Mon May 03 12:55:01 2010 +0300
+++ b/harvester/harvesterplugins/OMADRMPlugin/src/harvesteromadrmplugin.cpp Fri May 14 16:17:23 2010 +0300
@@ -22,6 +22,7 @@
#include "harvesteromadrmplugin.h"
#include "harvesterlog.h"
#include "mdeobjectwrapper.h"
+#include "mdscommoninternal.h"
#include <harvesterdata.h>
#include <mdenamespacedef.h>
@@ -38,6 +39,8 @@
_LIT( KSvgMime, "image/svg+xml" );
+_LIT(KInUse, "InUse");
+
CHarvesterOmaDrmPluginPropertyDefs::CHarvesterOmaDrmPluginPropertyDefs() : CBase()
{
}
@@ -301,7 +304,7 @@
*iPropDefs->iDrmPropertyDef, &aVHD.iDrmProtected, aIsAdd );
// Title (is set from URI by default)
- if( aVHD.iTitle.Length() > 0 && aVHD.iTitle.Length() < iMaxTextLength )
+ if( aVHD.iTitle.Length() > 0 && aVHD.iTitle.Length() < KMaxTitleFieldLength )
{
CMdeObjectWrapper::HandleObjectPropertyL(mdeObject,
*iPropDefs->iTitlePropertyDef, &aVHD.iTitle, EFalse );
@@ -341,6 +344,12 @@
err = content->GetStringAttribute( ContentAccess::EMimeType, mime );
delete content;
}
+
+ if( err == KErrInUse || err == KErrLocked )
+ {
+ aObjectType.Copy( KInUse() );
+ return;
+ }
if( mime == KSvgMime )
{