mtpdataproviders/mtppictbridgedp/src/cmtppictbridgedpsendobjectinfo.cpp
branchRCL_3
changeset 18 453dfc402455
parent 15 f85613f12947
equal deleted inserted replaced
17:dbd1c5e08735 18:453dfc402455
   657         //on receiving the corresponding SendObject request.  With Associations however 
   657         //on receiving the corresponding SendObject request.  With Associations however 
   658         //we commit the object straight away as the SendObject phase is often absent 
   658         //we commit the object straight away as the SendObject phase is often absent 
   659         //with folder creation.
   659         //with folder creation.
   660 
   660 
   661 
   661 
   662         iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObjectP);
   662         TRAPD(err, iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObjectP));
       
   663         __FLOG_VA((_L8(" Entry error %d"),err));        
       
   664         if( KErrAlreadyExists == err )
       
   665             {
       
   666             iReceivedObjectP->SetUint(CMTPObjectMetaData::EHandle, iFramework.ObjectMgr().HandleL(iFullPath));
       
   667             }
       
   668         else 
       
   669             {
       
   670             User::LeaveIfError(err);
       
   671             }
   663         SendResponseL(EMTPRespCodeOK);
   672         SendResponseL(EMTPRespCodeOK);
   664         }
   673         }
   665     __FLOG(_L8("<< CMTPPictGetObjectPropDesc::DoHandleSendObjectCompleteL"));
   674     __FLOG(_L8("<< CMTPPictGetObjectPropDesc::DoHandleSendObjectCompleteL"));
   666     return result;
   675     return result;
   667     }
   676     }