videocollection/hgmyvideos/src/vcxhgmyvideosvideocopier.cpp
branchRCL_3
changeset 15 8f0df5c82986
parent 9 5294c000a26d
child 18 baf439b22ddd
--- a/videocollection/hgmyvideos/src/vcxhgmyvideosvideocopier.cpp	Tue May 11 16:15:40 2010 +0300
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideosvideocopier.cpp	Tue May 25 12:44:54 2010 +0300
@@ -92,7 +92,6 @@
         TBool& aShowCopy,
         TBool& aShowMove )
     {
-    TVcxMyVideosDownloadState dlState( EVcxMyVideosDlStateNone );
     CIptvDriveMonitor& driveMonitor = iModel.DriveMonitorL();
     HBufC* videoUri = NULL;
     TInt drive( 0 );
@@ -101,37 +100,31 @@
 
     for ( TInt i = 0; i < aOperationTargets.Count(); i++ )
         {
-        dlState = iVideoModel.VideoDownloadState( aOperationTargets[i] );
-
-        // If video is not under download, there is source file that can be moved/copied.
-        if ( dlState == EVcxMyVideosDlStateNone )
+        // When we found source file that can be moved/copied, we need
+        // to also check that there is target drive that we can use.
+        videoUri = iVideoModel.GetVideoUri( aOperationTargets[i] ).AllocLC();
+        if ( videoUri->Length() > 0 )
             {
-            // When we found source file that can be moved/copied, we need
-            // to also check that there is target drive that we can use.
-            videoUri = iVideoModel.GetVideoUri( aOperationTargets[i] ).AllocLC();
-            if ( videoUri->Length() > 0 )
+            if ( iModel.FileServerSessionL().CharToDrive( videoUri->Des()[0], drive )
+                  == KErrNone )
                 {
-                if ( iModel.FileServerSessionL().CharToDrive( videoUri->Des()[0], drive )
-                      == KErrNone )
+                for ( TInt j = 0; j < driveMonitor.iAvailableDrives.Count(); j++ )
                     {
-                    for ( TInt j = 0; j < driveMonitor.iAvailableDrives.Count(); j++ )
+                    flags = driveMonitor.iAvailableDrives[j].iFlags;
+
+                    if ( driveMonitor.iAvailableDrives[j].iDrive != drive &&
+                            !(flags & TIptvDriveInfo::ELocked) && !(flags & TIptvDriveInfo::EMediaNotPresent) )
                         {
-                        flags = driveMonitor.iAvailableDrives[j].iFlags;
-    
-                        if ( driveMonitor.iAvailableDrives[j].iDrive != drive &&
-                                !(flags & TIptvDriveInfo::ELocked) && !(flags & TIptvDriveInfo::EMediaNotPresent) )
-                            {
-                            aShowMoveAndCopySubmenu = aShowCopy = aShowMove = ETrue;
+                        aShowMoveAndCopySubmenu = aShowCopy = aShowMove = ETrue;
 
-                            // No need to continue, we know that menu can be shown.
-                            CleanupStack::PopAndDestroy( videoUri );
-                            return;
-                            }
+                        // No need to continue, we know that menu can be shown.
+                        CleanupStack::PopAndDestroy( videoUri );
+                        return;
                         }
                     }
                 }
-            CleanupStack::PopAndDestroy( videoUri );
             }
+        CleanupStack::PopAndDestroy( videoUri );
         }
     }