equal
deleted
inserted
replaced
162 iItemArray->Delete(aIndex); |
162 iItemArray->Delete(aIndex); |
163 iItemArray->InsertL(aIndex, iListboxFormatbuffer); |
163 iItemArray->InsertL(aIndex, iListboxFormatbuffer); |
164 iItemArrayShort->Delete(aIndex); |
164 iItemArrayShort->Delete(aIndex); |
165 iItemArrayShort->InsertL(aIndex, iListboxFormatbufferShort); |
165 iItemArrayShort->InsertL(aIndex, iListboxFormatbufferShort); |
166 |
166 |
167 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(aIndex, itemProps); |
167 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(aIndex, itemProps); |
168 // If item is visible, redraw it |
168 // If item is visible, redraw it |
169 if (iListContainer->Listbox()->TopItemIndex() <= aIndex |
169 if (iListContainer->Listbox()->TopItemIndex() <= aIndex |
170 && iListContainer->Listbox()->BottomItemIndex() >= aIndex) |
170 && iListContainer->Listbox()->BottomItemIndex() >= aIndex) |
171 { |
171 { |
172 iListContainer->Listbox()->DrawItem(aIndex); |
172 iListContainer->Listbox()->DrawItem(aIndex); |
422 if (unplayedShows.Length() > 0 && updatedDate.Length() > 0) { |
422 if (unplayedShows.Length() > 0 && updatedDate.Length() > 0) { |
423 unplayedShows.Insert(0,_L(", ")); |
423 unplayedShows.Insert(0,_L(", ")); |
424 } |
424 } |
425 |
425 |
426 iListboxFormatbuffer.Format(KFeedFormatPortrait(), iconIndex, &(aFeedInfo.Title()), &updatedDate, &unplayedShows); |
426 iListboxFormatbuffer.Format(KFeedFormatPortrait(), iconIndex, &(aFeedInfo.Title()), &updatedDate, &unplayedShows); |
427 iListboxFormatbufferShort.Format(KFeedFormatLandscape(), iconIndex, &(aFeedInfo.Title()), &updatedDate, &unplayedShows); |
427 iListboxFormatbufferShort.Format(KFeedFormatLandscape(), iconIndex, &(aFeedInfo.Title())); |
428 DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END"); |
428 DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END"); |
429 } |
429 } |
430 |
430 |
431 void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& /*aPodcastModel*/) |
431 void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& /*aPodcastModel*/) |
432 { |
432 { |
434 UpdateFeedInfoStatusL(aHandle, EFalse); |
434 UpdateFeedInfoStatusL(aHandle, EFalse); |
435 } |
435 } |
436 } |
436 } |
437 |
437 |
438 void CPodcastFeedView::UpdateFeedInfoDataL(CFeedInfo* aFeedInfo, TInt aIndex, TBool aIsUpdating ) |
438 void CPodcastFeedView::UpdateFeedInfoDataL(CFeedInfo* aFeedInfo, TInt aIndex, TBool aIsUpdating ) |
439 { |
439 { |
|
440 DP("CPodcastFeedView::UpdateFeedInfoDataL BEGIN"); |
440 TListItemProperties itemProps; |
441 TListItemProperties itemProps; |
441 itemProps.SetDimmed(aIsUpdating); |
442 itemProps.SetDimmed(aIsUpdating); |
442 FormatFeedInfoListBoxItemL(*aFeedInfo, aIsUpdating); |
443 FormatFeedInfoListBoxItemL(*aFeedInfo, aIsUpdating); |
443 |
444 |
444 TPtrC compareTo((*iItemArray)[aIndex]); |
445 TPtrC compareTo((*iItemArray)[aIndex]); |
455 { |
456 { |
456 iItemArray->InsertL(aIndex, iListboxFormatbuffer); |
457 iItemArray->InsertL(aIndex, iListboxFormatbuffer); |
457 iItemArrayShort->InsertL(aIndex, iListboxFormatbufferShort); |
458 iItemArrayShort->InsertL(aIndex, iListboxFormatbufferShort); |
458 } |
459 } |
459 } |
460 } |
460 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(aIndex, itemProps); |
461 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(aIndex, itemProps); |
|
462 DP("CPodcastFeedView::UpdateFeedInfoDataL END"); |
461 } |
463 } |
462 |
464 |
463 |
465 |
464 void CPodcastFeedView::UpdateListboxItemsL() |
466 void CPodcastFeedView::UpdateListboxItemsL() |
465 { |
467 { |
487 while (iItemArray->Count() < nbrItems) |
489 while (iItemArray->Count() < nbrItems) |
488 { |
490 { |
489 iItemArray->AppendL(KNullDesC); |
491 iItemArray->AppendL(KNullDesC); |
490 iItemArrayShort->AppendL(KNullDesC); |
492 iItemArrayShort->AppendL(KNullDesC); |
491 TListItemProperties itemProps; |
493 TListItemProperties itemProps; |
492 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(iItemArray->Count() - 1, itemProps); |
494 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(iItemArray->Count() - 1, itemProps); |
493 } |
495 } |
494 while (iItemArray->Count() > nbrItems) |
496 while (iItemArray->Count() > nbrItems) |
495 { |
497 { |
496 iItemArray->Delete(iItemArray->Count() - 1); |
498 iItemArray->Delete(iItemArray->Count() - 1); |
497 iItemArrayShort->Delete(iItemArray->Count() - 1); |
499 iItemArrayShort->Delete(iItemArray->Count() - 1); |
509 iItemIdArray.Reset(); |
511 iItemIdArray.Reset(); |
510 |
512 |
511 TListItemProperties itemProps; |
513 TListItemProperties itemProps; |
512 itemProps.SetDimmed(ETrue); |
514 itemProps.SetDimmed(ETrue); |
513 itemProps.SetHiddenSelection(ETrue); |
515 itemProps.SetHiddenSelection(ETrue); |
514 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(0, itemProps); |
516 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(0, itemProps); |
515 } |
517 } |
516 iListContainer->Listbox()->HandleItemAdditionL(); |
518 iListContainer->Listbox()->HandleItemAdditionL(); |
517 DP("CPodcastFeedView::UpdateListboxItemsL END"); |
519 DP("CPodcastFeedView::UpdateListboxItemsL END"); |
518 } |
520 } |
519 |
521 |