videocollection/mpxmyvideoscollection/src/vcxmyvideosasyncfileoperations.cpp
branchRCL_3
changeset 70 375929f879c2
parent 60 f87e8c4ac026
equal deleted inserted replaced
64:3eb824b18d67 70:375929f879c2
   600     if ( aErr != KErrNone )
   600     if ( aErr != KErrNone )
   601         {
   601         {
   602         if ( iIsMoveOperation )
   602         if ( iIsMoveOperation )
   603             {
   603             {
   604             MPX_DEBUG2("CVcxMyVideosAsyncFileOperations:: move operation failed %d", aErr );
   604             MPX_DEBUG2("CVcxMyVideosAsyncFileOperations:: move operation failed %d", aErr );
   605 
   605             MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: setting media path back in MDS" );
   606             if ( ! BaflUtils::FileExists( iCollection.iFs, iSourcePath ) )
   606             iMediaForMoveOp->SetTextValueL( KMPXMediaGeneralUri, iSourcePath );
   607                 {
   607             iCollection.SetVideoL( *iMediaForMoveOp );
   608                 MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: mmc removed, deleting the old media" );
       
   609                 iCollection.iMyVideosMdsDb->RemoveVideo( iMediaForMoveOp->ValueTObjectL<TMPXItemId>(
       
   610                         KMPXMediaGeneralId ).iId1 );
       
   611                 }
       
   612             else
       
   613                 {
       
   614                 MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: setting media path back in MDS" );
       
   615                 iMediaForMoveOp->SetTextValueL( KMPXMediaGeneralUri, iSourcePath );
       
   616                 iCollection.SetVideoL( *iMediaForMoveOp );
       
   617                 }
       
   618 
       
   619             MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: deleting target file");
   608             MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: deleting target file");
   620             TInt delErr = BaflUtils::DeleteFile( iCollection.iFs, iTargetPath );
   609             TInt delErr = BaflUtils::DeleteFile( iCollection.iFs, iTargetPath );
   621             if ( delErr != KErrNone )
   610             if ( delErr != KErrNone )
   622                 {
   611                 {
   623                 MPX_DEBUG2("CVcxMyVideosAsyncFileOperations:: delete for target file failed: %d", delErr );
   612                 MPX_DEBUG2("CVcxMyVideosAsyncFileOperations:: delete for target file failed: %d", delErr );