equal
deleted
inserted
replaced
339 DP("CPodcastFeedView::UpdateFeedInfoStatusL END"); |
339 DP("CPodcastFeedView::UpdateFeedInfoStatusL END"); |
340 } |
340 } |
341 |
341 |
342 void CPodcastFeedView::FormatFeedInfoListBoxItemL(CFeedInfo& aFeedInfo, TBool aIsUpdating) |
342 void CPodcastFeedView::FormatFeedInfoListBoxItemL(CFeedInfo& aFeedInfo, TBool aIsUpdating) |
343 { |
343 { |
344 DP("CPodcastFeedView::FormatFeedInfoListBoxItemL BEGIN"); |
344 // DP("CPodcastFeedView::FormatFeedInfoListBoxItemL BEGIN"); |
345 TBuf<KMaxShortDateFormatSpec*2> updatedDate; |
345 TBuf<KMaxShortDateFormatSpec*2> updatedDate; |
346 TBuf<KMaxUnplayedFeedsLength> unplayedShows; |
346 TBuf<KMaxUnplayedFeedsLength> unplayedShows; |
347 TUint unplayedCount = 0; |
347 TUint unplayedCount = 0; |
348 TUint showCount = 0; |
348 TUint showCount = 0; |
349 TInt iconIndex = EFeedIcon; |
349 TInt iconIndex = EFeedIcon; |
391 updatedDate.Zero(); |
391 updatedDate.Zero(); |
392 } |
392 } |
393 } |
393 } |
394 |
394 |
395 iconIndex = iFeedIdForIconArray.Find(aFeedInfo.Uid()); |
395 iconIndex = iFeedIdForIconArray.Find(aFeedInfo.Uid()); |
396 DP1(" iconIndex = %d", iconIndex); |
396 // DP1(" iconIndex = %d", iconIndex); |
397 if(iconIndex == KErrNotFound && aFeedInfo.FeedIcon() != NULL && aFeedInfo.ImageFileName().Length() > 0 && |
397 if(iconIndex == KErrNotFound && aFeedInfo.FeedIcon() != NULL && aFeedInfo.ImageFileName().Length() > 0 && |
398 aFeedInfo.FeedIcon()->SizeInPixels().iHeight > 0 && |
398 aFeedInfo.FeedIcon()->SizeInPixels().iHeight > 0 && |
399 aFeedInfo.FeedIcon()->SizeInPixels().iWidth > 0) |
399 aFeedInfo.FeedIcon()->SizeInPixels().iWidth > 0) |
400 { |
400 { |
401 // Hopefully temporary haxx to prevent double delete. I would prefer if |
401 // Hopefully temporary haxx to prevent double delete. I would prefer if |
420 unplayedShows.Insert(0,_L(", ")); |
420 unplayedShows.Insert(0,_L(", ")); |
421 } |
421 } |
422 |
422 |
423 iListboxFormatbuffer.Format(KFeedFormatPortrait(), iconIndex, &(aFeedInfo.Title()), &updatedDate, &unplayedShows); |
423 iListboxFormatbuffer.Format(KFeedFormatPortrait(), iconIndex, &(aFeedInfo.Title()), &updatedDate, &unplayedShows); |
424 iListboxFormatbufferShort.Format(KFeedFormatLandscape(), iconIndex, &(aFeedInfo.Title())); |
424 iListboxFormatbufferShort.Format(KFeedFormatLandscape(), iconIndex, &(aFeedInfo.Title())); |
425 DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END"); |
425 // DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END"); |
426 } |
426 } |
427 |
427 |
428 void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& /*aPodcastModel*/) |
428 void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& /*aPodcastModel*/) |
429 { |
429 { |
430 if (aError == KErrNone) { |
430 if (aError == KErrNone) { |