browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp
changeset 65 5bfc169077b2
parent 38 6297cdf66332
child 68 92a765b5b3e7
--- a/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp	Tue Feb 02 00:56:45 2010 +0200
+++ b/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp	Fri Mar 19 09:52:28 2010 +0200
@@ -19,7 +19,7 @@
 
 // INCLUDE FILES
 #include "DownloadMgrLogger.h"
-#include <downloadmgrclient.h>
+#include "DownloadMgrClient.h"
 #include "DownloadMgrServer.h"
 #include "DownloadMgrHandler.h"
 #include "DownloadMgrStart.h"
@@ -31,10 +31,10 @@
 
 #include <hash.h>
 #include <e32svr.h>
-#include <coddownload.h>
+#include <CodDownload.h>
 #include <AiwGenericParam.h>
 #include <eikenv.h>
-#include <httpfiltercommonstringsext.h>
+#include <HttpFilterCommonStringsExt.h>
 #include <EscapeUtils.h>
 
 // CONSTANTS
@@ -252,7 +252,7 @@
         // EDlAttrPausable
         TBool   iPausable;             
         // EDlAttrDestRemovable
-        TInt32   iDestMemType;
+        TBool   iRemovableDest;
 
         //  EDlAttrState THttpDownloadState
          TInt32 iDlState;
@@ -400,7 +400,7 @@
                   
        case EDlAttrDestRemovable:
             {
-       	     iDestMemType = (aValue) ? KDriveAttRemovable : KDriveAttLocal;
+       	     iRemovableDest = aValue;
             }
             
         default:
@@ -473,11 +473,6 @@
             }
             break;
             
-        case EDlAttrDestRemovable:
-            {
-            iDestMemType = aValue;
-            }
-            
         default:
             break;
         }
@@ -672,7 +667,7 @@
                   
 		case EDlAttrDestRemovable:
             {
-       	    aValue = (KDriveAttRemovable == iDestMemType) ? ETrue : EFalse ;
+       	    aValue = iRemovableDest ;
             }
             break;    
         default:
@@ -731,7 +726,7 @@
    
         case EDlAttrDestRemovable:
             {
-            aValue = ( KDriveAttRemovable == mediaData->DesRemovable()) ? ETrue : EFalse ;
+            aValue = mediaData->DesRemovable();
             }
             break;
                 
@@ -810,12 +805,6 @@
             }
             break;
             
-        case EDlAttrDestRemovable:
-            {
-            aValue = iDestMemType ;
-            }
-            break;            
-            
         default:
             {
             ret = KErrNotFound;
@@ -894,12 +883,6 @@
             aValue = mediaData->Method();
             }
             break;
-            
-        case EDlAttrDestRemovable:
-            {
-            aValue = mediaData->DesRemovable();
-            }
-            break;
 
         default:
             {
@@ -2008,9 +1991,9 @@
     GetBoolAttribute(EDlAttrPausable, bPausable);
     iDlExtension->SetBoolAttribute( EDlAttrPausable, bPausable );
     
-    TInt32 removableDestStatus;
-    GetIntAttribute(EDlAttrDestRemovable, removableDestStatus);
-    iDlExtension->SetIntAttribute( EDlAttrDestRemovable, removableDestStatus );
+    TBool bRemovableDest;
+    GetBoolAttribute(EDlAttrDestRemovable, bRemovableDest);
+    iDlExtension->SetBoolAttribute( EDlAttrDestRemovable, bRemovableDest );
     
     //