harvester/composerplugins/imagecomposer/src/composerimageplugin.cpp
branchRCL_3
changeset 15 3cebc1a84278
parent 0 c53acadfccc6
child 40 910a23996aa0
child 54 a3cc46f37772
equal deleted inserted replaced
14:646a02f170b9 15:3cebc1a84278
   195 	
   195 	
   196 	CMdENamespaceDef& defaultNamespace = iSession->GetDefaultNamespaceDefL();
   196 	CMdENamespaceDef& defaultNamespace = iSession->GetDefaultNamespaceDefL();
   197     CMdEObjectDef& imageObjDef = defaultNamespace.GetObjectDefL( MdeConstants::Image::KImageObject );
   197     CMdEObjectDef& imageObjDef = defaultNamespace.GetObjectDefL( MdeConstants::Image::KImageObject );
   198     CMdEObjectDef& locationObjDef = defaultNamespace.GetObjectDefL( MdeConstants::Location::KLocationObject );
   198     CMdEObjectDef& locationObjDef = defaultNamespace.GetObjectDefL( MdeConstants::Location::KLocationObject );
   199 	CMdEObject* object = iSession->GetObjectL( aObjectId, imageObjDef );
   199 	CMdEObject* object = iSession->GetObjectL( aObjectId, imageObjDef );
       
   200 	CleanupStack::PushL( object );
   200 	CMdEObject* location = iSession->GetObjectL( locationId, locationObjDef );
   201 	CMdEObject* location = iSession->GetObjectL( locationId, locationObjDef );
       
   202 	CleanupStack::PushL( location );
   201 	
   203 	
   202 	if( object && location )
   204 	if( object && location )
   203 		{
   205 		{
   204 		TRAPD( err, iImageComposerAO->DoWriteExifL( object, location ) );
   206 		TRAPD( err, iImageComposerAO->DoWriteExifL( object, location ) );
   205 	
   207 	
   206 		if ( err == KErrNone )
   208 		if ( err == KErrNone )
   207 			{
   209 			{
   208 			iMdEHarvesterSession->ResetPendingL( objectId );
   210 			iMdEHarvesterSession->ResetPendingL( objectId );
   209 			}
   211 			}
   210 		}
   212 		}
   211 	CleanupStack::PopAndDestroy( &objectId );
   213 	CleanupStack::PopAndDestroy( 3, &objectId );
   212 	}
   214 	}
   213 
   215 
   214 void CComposerImagePlugin::HandlePendingObjects( const RArray<TItemId>& aObjectIdArray )
   216 void CComposerImagePlugin::HandlePendingObjects( const RArray<TItemId>& aObjectIdArray )
   215 	{
   217 	{
   216 	iImageComposerAO->AddToQueue( aObjectIdArray, ETrue);
   218 	iImageComposerAO->AddToQueue( aObjectIdArray, ETrue);