browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp
--- a/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp Thu Jan 07 13:31:38 2010 +0200
+++ b/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp Mon Jan 18 21:20:18 2010 +0200
@@ -252,7 +252,7 @@
// EDlAttrPausable
TBool iPausable;
// EDlAttrDestRemovable
- TBool iRemovableDest;
+ TInt32 iDestMemType;
// EDlAttrState THttpDownloadState
TInt32 iDlState;
@@ -400,7 +400,7 @@
case EDlAttrDestRemovable:
{
- iRemovableDest = aValue;
+ iDestMemType = (aValue) ? KDriveAttRemovable : KDriveAttLocal;
}
default:
@@ -473,6 +473,11 @@
}
break;
+ case EDlAttrDestRemovable:
+ {
+ iDestMemType = aValue;
+ }
+
default:
break;
}
@@ -667,7 +672,7 @@
case EDlAttrDestRemovable:
{
- aValue = iRemovableDest ;
+ aValue = (KDriveAttRemovable == iDestMemType) ? ETrue : EFalse ;
}
break;
default:
@@ -726,7 +731,7 @@
case EDlAttrDestRemovable:
{
- aValue = mediaData->DesRemovable();
+ aValue = ( KDriveAttRemovable == mediaData->DesRemovable()) ? ETrue : EFalse ;
}
break;
@@ -805,6 +810,12 @@
}
break;
+ case EDlAttrDestRemovable:
+ {
+ aValue = iDestMemType ;
+ }
+ break;
+
default:
{
ret = KErrNotFound;
@@ -883,6 +894,12 @@
aValue = mediaData->Method();
}
break;
+
+ case EDlAttrDestRemovable:
+ {
+ aValue = mediaData->DesRemovable();
+ }
+ break;
default:
{
@@ -1991,9 +2008,9 @@
GetBoolAttribute(EDlAttrPausable, bPausable);
iDlExtension->SetBoolAttribute( EDlAttrPausable, bPausable );
- TBool bRemovableDest;
- GetBoolAttribute(EDlAttrDestRemovable, bRemovableDest);
- iDlExtension->SetBoolAttribute( EDlAttrDestRemovable, bRemovableDest );
+ TInt32 removableDestStatus;
+ GetIntAttribute(EDlAttrDestRemovable, removableDestStatus);
+ iDlExtension->SetIntAttribute( EDlAttrDestRemovable, removableDestStatus );
//