equal
deleted
inserted
replaced
104 return CPodcastListView::OfferKeyEventL(aKeyEvent, aType); |
104 return CPodcastListView::OfferKeyEventL(aKeyEvent, aType); |
105 } |
105 } |
106 |
106 |
107 CPodcastQueueView::~CPodcastQueueView() |
107 CPodcastQueueView::~CPodcastQueueView() |
108 { |
108 { |
|
109 DP("CPodcastQueueView::~CPodcastQueueView BEGIN"); |
109 iPodcastModel.ShowEngine().RemoveObserver(this); |
110 iPodcastModel.ShowEngine().RemoveObserver(this); |
110 iPodcastModel.FeedEngine().RemoveObserver(this); |
111 iPodcastModel.FeedEngine().RemoveObserver(this); |
111 |
112 |
112 if(iStylusPopupMenu) |
113 if(iStylusPopupMenu) |
113 delete iStylusPopupMenu, iStylusPopupMenu = NULL; |
114 delete iStylusPopupMenu, iStylusPopupMenu = NULL; |
|
115 DP("CPodcastQueueView::~CPodcastQueueView END"); |
114 } |
116 } |
115 |
117 |
116 |
118 |
117 TUid CPodcastQueueView::Id() const |
119 TUid CPodcastQueueView::Id() const |
118 { |
120 { |
383 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
385 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
384 |
386 |
385 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
387 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
386 { |
388 { |
387 TBool dimDown = (iListContainer->Listbox()->CurrentItemIndex() >= iPodcastModel.ActiveShowList().Count() - 1 ? |
389 TBool dimDown = (iListContainer->Listbox()->CurrentItemIndex() >= iPodcastModel.ActiveShowList().Count() - 1 ? |
388 ETrue : EFalse); |
390 (TBool)ETrue : (TBool)EFalse); |
389 TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ? |
391 TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ? |
390 ETrue : EFalse); |
392 (TBool)ETrue : (TBool)EFalse); |
391 |
393 |
392 iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadDown, dimDown); |
394 iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadDown, dimDown); |
393 iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadUp, dimUp); |
395 iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadUp, dimUp); |
394 |
396 |
395 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
397 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |