201 |
201 |
202 void CPodcastShowsView::DoActivateL(const TVwsViewId& aPrevViewId, |
202 void CPodcastShowsView::DoActivateL(const TVwsViewId& aPrevViewId, |
203 TUid aCustomMessageId, const TDesC8& aCustomMessage) |
203 TUid aCustomMessageId, const TDesC8& aCustomMessage) |
204 { |
204 { |
205 DP("CPodcastShowsView::DoActivateL BEGIN"); |
205 DP("CPodcastShowsView::DoActivateL BEGIN"); |
|
206 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
|
207 |
|
208 iPreviousView = TVwsViewId(KUidPodcast, KUidPodcastFeedViewID); |
206 |
209 |
207 UpdateViewTitleL(); |
210 UpdateViewTitleL(); |
208 |
|
209 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
|
210 iPreviousView = TVwsViewId(KUidPodcast, KUidPodcastFeedViewID); |
|
211 |
|
212 UpdateFeedUpdateStateL(); |
211 UpdateFeedUpdateStateL(); |
213 UpdateToolbar(); |
212 UpdateToolbar(); |
214 DP("CPodcastShowsView::DoActivateL END"); |
213 DP("CPodcastShowsView::DoActivateL END"); |
215 } |
214 } |
216 |
215 |
217 void CPodcastShowsView::DoDeactivate() |
216 void CPodcastShowsView::DoDeactivate() |
218 { |
217 { |
219 CAknTitlePane* titlePane = static_cast<CAknTitlePane*> |
|
220 ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); |
|
221 |
|
222 // titlePane->SetSmallPicture(NULL, NULL, ETrue); |
|
223 titlePane->SetPicture(NULL, NULL); |
|
224 titlePane->SetTextToDefaultL(); |
|
225 CPodcastListView::DoDeactivate(); |
218 CPodcastListView::DoDeactivate(); |
226 } |
219 } |
227 |
220 |
228 // Engine callback when new shows are available |
221 // Engine callback when new shows are available |
229 void CPodcastShowsView::ShowListUpdatedL() |
222 void CPodcastShowsView::ShowListUpdatedL() |
626 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
619 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
627 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState); |
620 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState); |
628 } |
621 } |
629 } |
622 } |
630 |
623 |
631 void CPodcastShowsView::ImageOperationCompleteL(TInt aError, TUint /*aHandle*/) |
|
632 { |
|
633 iLastImageHandlerError = aError; |
|
634 if(iSetTitlebarImage) |
|
635 { |
|
636 iSetTitlebarImage = EFalse; |
|
637 if(aError == KErrNone) |
|
638 { |
|
639 CAknTitlePane* titlePane = static_cast<CAknTitlePane*> |
|
640 ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); |
|
641 titlePane->SetSmallPicture(iPodcastModel.ImageHandler().ScaledBitmap(), NULL, ETrue); |
|
642 } |
|
643 else |
|
644 { |
|
645 iPodcastModel.ImageHandler().ScaledBitmap(); |
|
646 } |
|
647 |
|
648 } |
|
649 else |
|
650 { |
|
651 CActiveScheduler::Stop(); |
|
652 } |
|
653 } |
|
654 |
|
655 void CPodcastShowsView::DisplayShowInfoDialogL() |
624 void CPodcastShowsView::DisplayShowInfoDialogL() |
656 { |
625 { |
657 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
626 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
658 if (index >= 0 && index < iPodcastModel.ActiveShowList().Count()) |
627 if (index >= 0 && index < iPodcastModel.ActiveShowList().Count()) |
659 { |
628 { |