mtpdataproviders/mtppictbridgedp/src/cmtppictbridgedpsendobjectinfo.cpp
changeset 17 aabe5387f5ce
parent 0 d0791faffa3f
child 14 60a94a45d437
equal deleted inserted replaced
0:d0791faffa3f 17:aabe5387f5ce
   344             iProgress = EObjectNone;
   344             iProgress = EObjectNone;
   345             }
   345             }
   346         }
   346         }
   347     else 
   347     else 
   348         {
   348         {
   349         Panic(EMTPPictBridgeDpSendObjectStateInvalid);
   349         User::Leave( KErrGeneral );
   350         }
   350         }
   351     __FLOG(_L8("<< CMTPPictBridgeDpSendObjectInfo::CheckSendingStateL"));    
   351     __FLOG(_L8("<< CMTPPictBridgeDpSendObjectInfo::CheckSendingStateL"));    
   352     return result;    
   352     return result;    
   353     }
   353     }
   354 
   354 
   619     TEntry fileEntry;
   619     TEntry fileEntry;
   620     User::LeaveIfError(iFramework.Fs().Entry(iFullPath, fileEntry));
   620     User::LeaveIfError(iFramework.Fs().Entry(iFullPath, fileEntry));
   621 
   621 
   622     if (fileEntry.FileSize() != iObjectSize)
   622     if (fileEntry.FileSize() != iObjectSize)
   623         {
   623         {
   624         __FLOG_VA((_L8("   sizes differ %d!=%d"),fileEntry.iSize, iObjectSize));
   624         __FLOG_VA((_L8("   sizes differ %d!=%d"),fileEntry.FileSize(), iObjectSize));
   625         iFramework.RouteRequestUnregisterL(iExpectedSendObjectRequest, iConnection);
   625         iFramework.RouteRequestUnregisterL(iExpectedSendObjectRequest, iConnection);
   626          
   626          
   627         iFramework.Fs().Delete(iFullPath);
   627         iFramework.Fs().Delete(iFullPath);
   628         iFramework.ObjectMgr().UnreserveObjectHandleL(*iReceivedObjectP);
   628         iFramework.ObjectMgr().UnreserveObjectHandleL(*iReceivedObjectP);
   629         TMTPResponseCode responseCode = EMTPRespCodeObjectTooLarge;
   629         TMTPResponseCode responseCode = EMTPRespCodeObjectTooLarge;