equal
deleted
inserted
replaced
195 { |
195 { |
196 DP("CPodcastFeedView::HandleListBoxEventL BEGIN"); |
196 DP("CPodcastFeedView::HandleListBoxEventL BEGIN"); |
197 |
197 |
198 switch(aEventType) |
198 switch(aEventType) |
199 { |
199 { |
200 case EEventEnterKeyPressed: |
200 // case EEventEnterKeyPressed: |
201 case EEventItemDoubleClicked: |
201 case EEventItemDoubleClicked: |
202 case EEventItemActioned: |
202 // case EEventItemActioned: |
203 { |
203 { |
204 const RFeedInfoArray* sortedItems = NULL; |
204 const RFeedInfoArray* sortedItems = NULL; |
205 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
205 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
206 sortedItems = &iPodcastModel.FeedEngine().GetSortedFeeds(); |
206 sortedItems = &iPodcastModel.FeedEngine().GetSortedFeeds(); |
207 |
207 |
545 break; |
545 break; |
546 } |
546 } |
547 UpdateToolbar(); |
547 UpdateToolbar(); |
548 } |
548 } |
549 |
549 |
550 void CPodcastFeedView::UpdateToolbar() |
550 void CPodcastFeedView::UpdateToolbar(TBool aVisible) |
551 { |
551 { |
552 CAknToolbar* toolbar = Toolbar(); |
552 CAknToolbar* toolbar = Toolbar(); |
553 |
553 |
554 if (toolbar) |
554 if (toolbar) |
555 { |
555 { |
|
556 toolbar->SetToolbarVisibility(aVisible); |
556 toolbar->HideItem(EPodcastUpdateAllFeeds, iUpdatingAllRunning, ETrue); |
557 toolbar->HideItem(EPodcastUpdateAllFeeds, iUpdatingAllRunning, ETrue); |
557 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iUpdatingAllRunning, ETrue ); |
558 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iUpdatingAllRunning, ETrue ); |
558 toolbar->SetItemDimmed(EPodcastAddFeed, iUpdatingAllRunning, ETrue ); |
559 toolbar->SetItemDimmed(EPodcastAddFeed, iUpdatingAllRunning, ETrue ); |
559 toolbar->SetItemDimmed(EPodcastSettings, iUpdatingAllRunning, ETrue ); |
560 toolbar->SetItemDimmed(EPodcastSettings, iUpdatingAllRunning, ETrue ); |
560 } |
561 } |