mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp
changeset 20 6e82ae192c3a
parent 18 1b39655331a3
child 29 3ae5cb0b4c02
equal deleted inserted replaced
18:1b39655331a3 20:6e82ae192c3a
   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)