browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
branchRCL_3
changeset 67 4917f9bf7995
parent 59 1f3c3f2f5b0a
child 91 30342f40acbf
--- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp	Wed Apr 14 17:06:56 2010 +0300
+++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp	Tue Apr 27 17:46:17 2010 +0300
@@ -1255,9 +1255,14 @@
     // First find the current download in the model.
     TInt index(0);
     TDownloadUiData* dlDataPtr = FindDlUiData( *iListModel, aDownload, index );
-    if ( !dlDataPtr )
+    if ( !dlDataPtr || dlDataPtr->iDownloadState == EHttpDlCompleted )
         {
-        // do nothing
+         /*
+          For download completed do not update any thing in UI list.Download was small and may
+          have completed before you could recieve progress notification        
+          
+          do nothing 
+          */ 
         }
     else
         {
@@ -1429,7 +1434,7 @@
 		    {
 		    aDownload.GetStringAttribute( EDlAttrAlbumName, dlData.iName );
 		    }
-		else if (dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged)
+		else if ( !(dlData.iProgressState == EHttpProgContentFileMoved) || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged)
 			// Filename changed, get the updated filename
 		    {
 			CLOG_WRITE(" EHttpProgDlNameChanged");
@@ -1441,6 +1446,7 @@
         
         if( dlData.iProgressState == EHttpProgContentFileMoved  || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged )
            {
+            aDownload.GetIntAttribute( EDlAttrDestRemovable, dlData.iExternalMemoryStatus );
             HBufC8* contentType = iUiUtils->ContentTypeL( aDownload, ETrue, KFirstMoIndex );
             if ( contentType->Length() > KMaxContentTypeLength )
                 {
@@ -2715,3 +2721,4 @@
 
 /* End of file. */
 
+