equal
deleted
inserted
replaced
512 { |
512 { |
513 __FLOG(_L8("CMTPImageDpSendObjectInfo::ServiceSendObjectL - Entry")); |
513 __FLOG(_L8("CMTPImageDpSendObjectInfo::ServiceSendObjectL - Entry")); |
514 |
514 |
515 iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObject); |
515 iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObject); |
516 //prepare for rollback |
516 //prepare for rollback |
517 iRollbackList.Append(RemoveObjectFromDb); |
517 iRollbackList.AppendL(RemoveObjectFromDb); |
518 |
518 |
519 ReceiveDataL(*iFileReceived); |
519 ReceiveDataL(*iFileReceived); |
520 |
520 |
521 __FLOG(_L8("CMTPImageDpSendObjectInfo::ServiceSendObjectL - Exit")); |
521 __FLOG(_L8("CMTPImageDpSendObjectInfo::ServiceSendObjectL - Exit")); |
522 return ETrue; |
522 return ETrue; |
876 /** |
876 /** |
877 * remove all cached properties if rollback occured. |
877 * remove all cached properties if rollback occured. |
878 */ |
878 */ |
879 TRAP_IGNORE( |
879 TRAP_IGNORE( |
880 iFramework.ObjectMgr().RemoveObjectL(iReceivedObject->Uint(CMTPObjectMetaData::EHandle)); |
880 iFramework.ObjectMgr().RemoveObjectL(iReceivedObject->Uint(CMTPObjectMetaData::EHandle)); |
881 iObjectPropertyMgr.ClearCacheL(); |
881 iObjectPropertyMgr.ClearCache(iReceivedObject->Uint(CMTPObjectMetaData::EHandle)); |
882 ); |
882 ); |
883 } |
883 } |
884 |
884 |
885 void CMTPImageDpSendObjectInfo::ReturnResponseL() |
885 void CMTPImageDpSendObjectInfo::ReturnResponseL() |
886 { |
886 { |
1193 iReceivedObject->SetUint(CMTPObjectMetaData::EFormatSubCode, objectStatusBitmask);//mark object imported due to it sent by PC |
1193 iReceivedObject->SetUint(CMTPObjectMetaData::EFormatSubCode, objectStatusBitmask);//mark object imported due to it sent by PC |
1194 iReceivedObject->SetUint(CMTPObjectMetaData::EStorageId, iStorageId); |
1194 iReceivedObject->SetUint(CMTPObjectMetaData::EStorageId, iStorageId); |
1195 iFramework.ObjectMgr().ReserveObjectHandleL(*iReceivedObject, iObjectSize); |
1195 iFramework.ObjectMgr().ReserveObjectHandleL(*iReceivedObject, iObjectSize); |
1196 |
1196 |
1197 // prepare for rollback |
1197 // prepare for rollback |
1198 iRollbackList.Append(UnreserveObject); |
1198 iRollbackList.AppendL(UnreserveObject); |
1199 __FLOG(_L8("CMTPImageDpSendObjectInfo::ReserveObjectL - Exit")); |
1199 __FLOG(_L8("CMTPImageDpSendObjectInfo::ReserveObjectL - Exit")); |
1200 } |
1200 } |
1201 |
1201 |
1202 /** |
1202 /** |
1203 Sets the read only status on the current file to match the sent object. |
1203 Sets the read only status on the current file to match the sent object. |
1254 void CMTPImageDpSendObjectInfo::CreateFsObjectL() |
1254 void CMTPImageDpSendObjectInfo::CreateFsObjectL() |
1255 { |
1255 { |
1256 delete iFileReceived; |
1256 delete iFileReceived; |
1257 iFileReceived = NULL; |
1257 iFileReceived = NULL; |
1258 //prepare for rollback |
1258 //prepare for rollback |
1259 iRollbackList.Append(RemoveObjectFromFs); |
1259 iRollbackList.AppendL(RemoveObjectFromFs); |
1260 |
1260 |
1261 iFileReceived = CMTPTypeFile::NewL(iFramework.Fs(), iFullPath, EFileWrite); |
1261 iFileReceived = CMTPTypeFile::NewL(iFramework.Fs(), iFullPath, EFileWrite); |
1262 iFileReceived->SetSizeL(iObjectSize); |
1262 iFileReceived->SetSizeL(iObjectSize); |
1263 } |
1263 } |
1264 |
1264 |