303 } |
303 } |
304 |
304 |
305 void CPodcastQueueView::GetShowIcons(CShowInfo* aShowInfo, TInt& aIconIndex) |
305 void CPodcastQueueView::GetShowIcons(CShowInfo* aShowInfo, TInt& aIconIndex) |
306 { |
306 { |
307 TBool dlStop = iPodcastModel.SettingsEngine().DownloadSuspended(); |
307 TBool dlStop = iPodcastModel.SettingsEngine().DownloadSuspended(); |
308 TUint showDownloadingUid = iPodcastModel.ShowEngine().ShowDownloading() ? iPodcastModel.ShowEngine().ShowDownloading()->Uid() : 0; |
308 |
309 |
309 switch (aShowInfo->DownloadState()) |
310 if (showDownloadingUid == aShowInfo->Uid()) |
310 { |
311 { |
311 case EDownloaded: |
312 aIconIndex = dlStop ? ESuspendedShowIcon : EDownloadingShowIcon; |
312 if (aShowInfo->PlayState() == ENeverPlayed) { |
313 } |
313 aIconIndex = EDownloadedNewShowIcon; |
314 else |
314 } else { |
315 { |
315 aIconIndex = EDownloadedShowIcon; |
316 switch (aShowInfo->DownloadState()) |
316 } |
317 { |
317 break; |
318 case EQueued: |
318 case ENotDownloaded: |
319 aIconIndex = dlStop ? ESuspendedShowIcon : EQuedShowIcon; |
319 if (aShowInfo->PlayState() == ENeverPlayed) { |
320 break; |
320 aIconIndex = ENewShowIcon; |
321 case EDownloading: |
321 } else { |
322 aIconIndex = dlStop ? ESuspendedShowIcon : EDownloadingShowIcon; |
322 aIconIndex = EShowIcon; |
323 break; |
323 } |
324 case EFailedDownload: |
324 break; |
325 aIconIndex = EFailedShowIcon; |
325 case EQueued: |
326 break; |
326 aIconIndex = dlStop ? ESuspendedShowIcon : EQuedShowIcon; |
327 default: |
327 break; |
328 DP("Wrong download state for queue view!"); |
328 case EDownloading: |
329 break; |
329 aIconIndex = dlStop ? ESuspendedShowIcon : EDownloadingShowIcon; |
330 } |
330 break; |
|
331 case EFailedDownload: |
|
332 aIconIndex = EFailedShowIcon; |
|
333 break; |
331 } |
334 } |
332 } |
335 } |
333 |
336 |
334 void CPodcastQueueView::UpdateFeedUpdateStateL() |
337 void CPodcastQueueView::UpdateFeedUpdateStateL() |
335 { |
338 { |