videocollection/mpxmyvideoscollection/src/vcxmyvideosasyncfileoperations.cpp
branchRCL_3
changeset 9 5294c000a26d
parent 0 96612d01cf9f
child 10 112a725ff2c2
equal deleted inserted replaced
8:ce5ada96ab30 9:5294c000a26d
   221 // CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL
   221 // CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL
   222 // ----------------------------------------------------------------------------
   222 // ----------------------------------------------------------------------------
   223 //
   223 //
   224 TBool CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL()
   224 TBool CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL()
   225     {
   225     {
       
   226     // Reset inactivity timer. This will prevent ThumbAGDaemon start running while
       
   227     // Move/copy is ongoing and failing the operation due to locked file handle.
       
   228     User::ResetInactivityTime();
       
   229     
   226     CMPXMedia& cmd = iCollection.iActiveTask->GetCommand();
   230     CMPXMedia& cmd = iCollection.iActiveTask->GetCommand();
   227     
   231     
   228     TBool done;
   232     TBool done;
   229     
   233     
   230     TBool isMoveOperation = EFalse;    
   234     TBool isMoveOperation = EFalse;    
   665 // CVcxMyVideosAsyncFileOperations::HandleDeleteStepL
   669 // CVcxMyVideosAsyncFileOperations::HandleDeleteStepL
   666 // ----------------------------------------------------------------------------
   670 // ----------------------------------------------------------------------------
   667 //
   671 //
   668 TBool CVcxMyVideosAsyncFileOperations::HandleDeleteStepL()
   672 TBool CVcxMyVideosAsyncFileOperations::HandleDeleteStepL()
   669     {
   673     {
       
   674     // Reset inactivity timer. This will prevent ThumbAGDaemon start running while
       
   675     // delete is ongoing and failing the operation due to locked file handle.
       
   676     User::ResetInactivityTime();
       
   677     
   670     CMPXMedia& cmd = iCollection.iActiveTask->GetCommand();
   678     CMPXMedia& cmd = iCollection.iActiveTask->GetCommand();
   671     
   679     
   672     //no sanity checks for array items, since we want to generate all events, even if there is nothing to delete
   680     //no sanity checks for array items, since we want to generate all events, even if there is nothing to delete
   673     
   681     
   674     TBool done;
   682     TBool done;