388 else |
388 else |
389 { |
389 { |
390 aShowInfo.PubDate().FormatL(showDate, KDateFormatShort()); |
390 aShowInfo.PubDate().FormatL(showDate, KDateFormatShort()); |
391 } |
391 } |
392 |
392 |
393 if(aShowInfo.LastError() != KErrNone) |
393 if (infoSize.Length() > 0) { |
394 { |
394 infoSize.Insert(0,_L(", ")); |
395 TBuf<KSizeBufLen> errorBuffer; |
395 } |
396 iEikonEnv->GetErrorText(errorBuffer, aShowInfo.LastError()); |
396 |
397 iListboxFormatbuffer.Format(KShowErrorFormat(), iconIndex, &aShowInfo.Title(), &errorBuffer); |
397 iListboxFormatbuffer.Format(KShowQueueFormat(), iconIndex, &aShowInfo.Title(), &showDate, &infoSize); |
398 } |
|
399 else |
|
400 { |
|
401 if (infoSize.Length() > 0) { |
|
402 infoSize.Insert(0,_L(", ")); |
|
403 } |
|
404 |
|
405 iListboxFormatbuffer.Format(KShowQueueFormat(), iconIndex, &aShowInfo.Title(), &showDate, &infoSize); |
|
406 } |
|
407 } |
398 } |
408 |
399 |
409 void CPodcastQueueView::UpdateShowItemDataL(CShowInfo* aShowInfo,TInt aIndex, TInt aSizeDownloaded) |
400 void CPodcastQueueView::UpdateShowItemDataL(CShowInfo* aShowInfo,TInt aIndex, TInt aSizeDownloaded) |
410 { |
401 { |
411 FormatShowInfoListBoxItemL(*aShowInfo, aSizeDownloaded); |
402 FormatShowInfoListBoxItemL(*aShowInfo, aSizeDownloaded); |