browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpDownload.cpp
changeset 38 6297cdf66332
parent 36 0ed94ceaa377
child 62 c711bdda59f4
child 65 5bfc169077b2
--- a/browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpDownload.cpp	Thu Jan 07 13:31:38 2010 +0200
+++ b/browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpDownload.cpp	Mon Jan 18 21:20:18 2010 +0200
@@ -1099,7 +1099,13 @@
             {
             aValue = iActivePlayedDownload;
             }
-            break;    
+            break;
+            
+        case EDlAttrDestRemovable:
+            {
+            aValue = iStorage->RemovableDest();
+            }
+            break;            
             
         default:
             {
@@ -1195,6 +1201,12 @@
             aValue = mediaData->Method();
             }
             break;
+            
+        case EDlAttrDestRemovable:
+            {
+            aValue = mediaData->DesRemovable();
+            }
+            break;
 
         default:
             {
@@ -1295,7 +1307,7 @@
    
         case EDlAttrDestRemovable:
             {
-            aValue = iStorage->RemovableDest();
+            aValue = (KDriveAttRemovable == iStorage->RemovableDest()) ? ETrue : EFalse ;
             }
             break;
 
@@ -1368,7 +1380,7 @@
    
         case EDlAttrDestRemovable:
             {
-            aValue = mediaData->DesRemovable();
+            aValue = (KDriveAttRemovable == mediaData->DesRemovable()) ? ETrue : EFalse ;
             }
             break;
 
@@ -2325,6 +2337,23 @@
             }
             
             break;
+            
+        case EDlAttrDestRemovable:
+            {
+            if( iCodDownload )
+                {
+                iStorage->SetRemovableDest( aValue );
+
+                if (iCodDlData)                
+                    {
+                    // Update for Active media object.
+                    TInt active = iActiveDownload;
+                    CMediaDataBase* mediaData = (*iCodDlData)[active];
+                    mediaData->SetDesRemovable( aValue );
+                    }
+                }
+            }
+            break;
         default:
             {
 #ifdef __WINS__
@@ -2487,14 +2516,16 @@
             {
             if( iCodDownload )
                 {
-                iStorage->SetRemovableDest( aValue );
+                TInt32 removableDestStatus = (aValue) ? KDriveAttRemovable : KDriveAttLocal ;
+                
+                iStorage->SetRemovableDest( removableDestStatus );
 
                 if (iCodDlData)                
                 	{
 	                // Update for Active media object.
 	                TInt active = iActiveDownload;
 	                CMediaDataBase* mediaData = (*iCodDlData)[active];
-	                mediaData->SetDesRemovable( aValue );
+	                mediaData->SetDesRemovable( removableDestStatus );
                 	}
                 }
             }