equal
deleted
inserted
replaced
236 __FLOG_1(_L8("err:%d"), err); |
236 __FLOG_1(_L8("err:%d"), err); |
237 //add Suid to deleteobjectlist |
237 //add Suid to deleteobjectlist |
238 iDataProvider.AppendDeleteObjectsArrayL(iObjectMeta->DesC(CMTPObjectMetaData::ESuid)); |
238 iDataProvider.AppendDeleteObjectsArrayL(iObjectMeta->DesC(CMTPObjectMetaData::ESuid)); |
239 case KErrNone: |
239 case KErrNone: |
240 //add for test |
240 //add for test |
241 __FLOG(_L8("KErrNone")); |
241 __FLOG(_L8("KErrNone")); |
242 iFramework.ObjectMgr().RemoveObjectL( iObjectMeta->Uint(CMTPObjectMetaData::EHandle )); |
242 //if the image object is new, we should update new picture count |
|
243 if (MTPImageDpUtilits::IsNewPicture(*iObjectMeta)) |
|
244 { |
|
245 iDataProvider.DecreaseNewPictures(1); |
|
246 } |
|
247 iFramework.ObjectMgr().RemoveObjectL( iObjectMeta->Uint(CMTPObjectMetaData::EHandle )); |
243 iObjectsNotDelete--; |
248 iObjectsNotDelete--; |
244 iResponseCode = EMTPRespCodePartialDeletion; |
249 iResponseCode = EMTPRespCodePartialDeletion; |
245 break; |
250 break; |
246 default: |
251 default: |
247 //add for test |
252 //add for test |
259 |
264 |
260 void CMTPImageDpDeleteObject::StartL() |
265 void CMTPImageDpDeleteObject::StartL() |
261 { |
266 { |
262 __FLOG(_L8(">> CMTPImageDpDeleteObject::StartL")); |
267 __FLOG(_L8(">> CMTPImageDpDeleteObject::StartL")); |
263 |
268 |
|
269 if(iCancelled) |
|
270 { |
|
271 __FLOG(_L8("Cancell the delete")); |
|
272 CMTPRequestProcessor::SendResponseL(EMTPRespCodeTransactionCancelled); |
|
273 iObjectsToDelete.Reset(); |
|
274 iCancelled = EFalse; |
|
275 return; |
|
276 } |
|
277 |
264 TInt numObjectsToDelete = iObjectsToDelete.Count(); |
278 TInt numObjectsToDelete = iObjectsToDelete.Count(); |
265 |
279 |
266 if ( numObjectsToDelete > 0 ) |
280 if ( numObjectsToDelete > 0 ) |
267 { |
281 { |
268 //Set the active object going to delete the file |
282 //Set the active object going to delete the file |