browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
equal
deleted
inserted
replaced
1253 __ASSERT_DEBUG( iExtension->IsDialogVisible(), Panic( EUiLibPanProgressNotVisible ) ); |
1253 __ASSERT_DEBUG( iExtension->IsDialogVisible(), Panic( EUiLibPanProgressNotVisible ) ); |
1254 // Update the download progress info at the current index. |
1254 // Update the download progress info at the current index. |
1255 // First find the current download in the model. |
1255 // First find the current download in the model. |
1256 TInt index(0); |
1256 TInt index(0); |
1257 TDownloadUiData* dlDataPtr = FindDlUiData( *iListModel, aDownload, index ); |
1257 TDownloadUiData* dlDataPtr = FindDlUiData( *iListModel, aDownload, index ); |
1258 if ( !dlDataPtr ) |
1258 if ( !dlDataPtr || dlDataPtr->iDownloadState == EHttpDlCompleted ) |
1259 { |
1259 { |
1260 // do nothing |
1260 /* |
|
1261 For download completed do not update any thing in UI list.Download was small and may |
|
1262 have completed before you could recieve progress notification |
|
1263 |
|
1264 do nothing |
|
1265 */ |
1261 } |
1266 } |
1262 else |
1267 else |
1263 { |
1268 { |
1264 // Create a local copy |
1269 // Create a local copy |
1265 TDownloadUiData dlData = *dlDataPtr; |
1270 TDownloadUiData dlData = *dlDataPtr; |
1427 // In case of Album download, change the name to Album name |
1432 // In case of Album download, change the name to Album name |
1428 if (dlData.iNumMediaObjects > 1) |
1433 if (dlData.iNumMediaObjects > 1) |
1429 { |
1434 { |
1430 aDownload.GetStringAttribute( EDlAttrAlbumName, dlData.iName ); |
1435 aDownload.GetStringAttribute( EDlAttrAlbumName, dlData.iName ); |
1431 } |
1436 } |
1432 else if (dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged) |
1437 else if ( !(dlData.iProgressState == EHttpProgContentFileMoved) || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged) |
1433 // Filename changed, get the updated filename |
1438 // Filename changed, get the updated filename |
1434 { |
1439 { |
1435 CLOG_WRITE(" EHttpProgDlNameChanged"); |
1440 CLOG_WRITE(" EHttpProgDlNameChanged"); |
1436 aDownload.GetStringAttribute( EDlAttrName, dlData.iName ); |
1441 aDownload.GetStringAttribute( EDlAttrName, dlData.iName ); |
1437 } |
1442 } |
1439 __ASSERT_DEBUG( aEvent.iDownloadState == EHttpDlMultipleMOCompleted, |
1444 __ASSERT_DEBUG( aEvent.iDownloadState == EHttpDlMultipleMOCompleted, |
1440 Panic( EUiLibPanDlStateNotCompleted ) ); |
1445 Panic( EUiLibPanDlStateNotCompleted ) ); |
1441 |
1446 |
1442 if( dlData.iProgressState == EHttpProgContentFileMoved || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged ) |
1447 if( dlData.iProgressState == EHttpProgContentFileMoved || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged ) |
1443 { |
1448 { |
|
1449 aDownload.GetIntAttribute( EDlAttrDestRemovable, dlData.iExternalMemoryStatus ); |
1444 HBufC8* contentType = iUiUtils->ContentTypeL( aDownload, ETrue, KFirstMoIndex ); |
1450 HBufC8* contentType = iUiUtils->ContentTypeL( aDownload, ETrue, KFirstMoIndex ); |
1445 if ( contentType->Length() > KMaxContentTypeLength ) |
1451 if ( contentType->Length() > KMaxContentTypeLength ) |
1446 { |
1452 { |
1447 // What can we do? Use an empty mime string. |
1453 // What can we do? Use an empty mime string. |
1448 CLOG_WRITE_FORMAT(" Length overflow: %d",contentType->Length()); |
1454 CLOG_WRITE_FORMAT(" Length overflow: %d",contentType->Length()); |
2713 } |
2719 } |
2714 #endif // #ifdef __WINS__ |
2720 #endif // #ifdef __WINS__ |
2715 |
2721 |
2716 /* End of file. */ |
2722 /* End of file. */ |
2717 |
2723 |
|
2724 |