diff -r d39add9822e2 -r 5bfc169077b2 browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp --- 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 +#include "DownloadMgrClient.h" #include "DownloadMgrServer.h" #include "DownloadMgrHandler.h" #include "DownloadMgrStart.h" @@ -31,10 +31,10 @@ #include #include -#include +#include #include #include -#include +#include #include // 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 ); //