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); |