mtpdataproviders/mtpimagedp/src/cmtpimagedpdeleteobject.cpp
branchRCL_3
changeset 11 f5809cfbf6d5
parent 3 8b094906a049
child 15 f85613f12947
equal deleted inserted replaced
6:ef55b168cedb 11:f5809cfbf6d5
   236                 //add for test 
   236                 //add for test 
   237                 __FLOG_1(_L8("err:%d"), err);
   237                 __FLOG_1(_L8("err:%d"), err);
   238                 //add Suid to deleteobjectlist
   238                 //add Suid to deleteobjectlist
   239                 iDataProvider.AppendDeleteObjectsArrayL(iObjectMeta->DesC(CMTPObjectMetaData::ESuid));
   239                 iDataProvider.AppendDeleteObjectsArrayL(iObjectMeta->DesC(CMTPObjectMetaData::ESuid));
   240                 //coverity[unterminated_case]
   240                 //coverity[unterminated_case]
   241             case KErrNone:
   241             case KErrPathNotFound:
       
   242                 //if the file does not exist on device, remove it from objectstore
       
   243                 //coverity[fallthrough]
       
   244             case KErrNone:            
   242                 //add for test
   245                 //add for test
   243                 __FLOG(_L8("KErrNone"));                
   246                 __FLOG(_L8("KErrNone"));                
   244                 //if the image object is new, we should update new picture count
   247                 //if the image object is new, we should update new picture count
   245                 if (MTPImageDpUtilits::IsNewPicture(*iObjectMeta))
   248                 if (MTPImageDpUtilits::IsNewPicture(*iObjectMeta))
   246                     {
   249                     {