mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp
branchRCL_3
changeset 19 ef55b168cedb
parent 14 60a94a45d437
child 32 f85613f12947
equal deleted inserted replaced
16:3673b591050c 19:ef55b168cedb
   125 */		
   125 */		
   126 void CMTPCopyObject::ServiceL()
   126 void CMTPCopyObject::ServiceL()
   127 	{	
   127 	{	
   128 	__FLOG(_L8("ServiceL - Entry"));
   128 	__FLOG(_L8("ServiceL - Entry"));
   129 	TUint32 handle = KMTPHandleNone;
   129 	TUint32 handle = KMTPHandleNone;
   130 	TMTPResponseCode responseCode = CopyObjectL(handle);
   130 	TMTPResponseCode responseCode = EMTPRespCodeOK;
   131 	if(responseCode != EMTPRespCodeOK)
   131 	TRAPD(err, responseCode = CopyObjectL(handle));
       
   132 	if(err != KErrNone)
       
   133 		{
       
   134 		SendResponseL(EMTPRespCodeAccessDenied);
       
   135 		}
       
   136 	else if(responseCode != EMTPRespCodeOK)
   132 		{
   137 		{
   133 		__FLOG_VA((_L8("ServiceL, sending response with respond code %d"), responseCode));
   138 		__FLOG_VA((_L8("ServiceL, sending response with respond code %d"), responseCode));
   134 		SendResponseL(responseCode);
   139 		SendResponseL(responseCode);
   135 		}
   140 		}
   136 	else if (iIsFolder)
   141 	else if (iIsFolder)