--- a/harvester/harvesterplugins/AudioPlugin/src/harvesteraudioplugin.cpp Mon Jan 18 20:34:07 2010 +0200
+++ b/harvester/harvesterplugins/AudioPlugin/src/harvesteraudioplugin.cpp Tue Jan 26 12:13:20 2010 +0200
@@ -25,6 +25,7 @@
#include "harvesteraudioplugin.h"
#include "harvesteraudiopluginutils.h"
+#include "mdsutils.h"
#include "harvesterlog.h"
@@ -144,13 +145,15 @@
{
WRITELOG( "CHarvesterAudioPlugin::HarvestL()" );
- TInt err = KErrNone;
-
- TRAP( err, DoHarvestL( aHD ) );
-
- if ( err != KErrNone )
+ TRAPD( error, DoHarvestL( aHD ) );
+ if ( error != KErrNone )
{
- aHD->SetErrorCode( err );
+ WRITELOG1( "CHarvesterAudioPlugin::HarvestL() - error: %d", error );
+ TInt convertedError = KErrNone;
+ MdsUtils::ConvertTrapError( error, convertedError );
+ aHD->SetErrorCode( convertedError );
+ WRITELOG1( "CHarvesterAudioPlugin::HarvestL() - returning: %d", convertedError );
+
}
}
@@ -259,6 +262,8 @@
CMdeObjectWrapper::HandleObjectPropertyL(
mdeObject, *iPropDefs->iSizePropertyDef, &entry.iSize, aIsAdd );
+
+ mdeObject.SetPlaceholder( EFalse );
}
// ---------------------------------------------------------------------------