26 #include <AknToolbar.h> |
26 #include <AknToolbar.h> |
27 #include "ShowEngine.h" |
27 #include "ShowEngine.h" |
28 #include "FeedEngine.h" |
28 #include "FeedEngine.h" |
29 #include "PodcastModel.h" |
29 #include "PodcastModel.h" |
30 #include "Podcast.hrh" |
30 #include "Podcast.hrh" |
31 #include "PodcastListView.h" |
31 #include "PodcastShowsView.h" |
32 |
32 |
33 class CPodcastQueueView : public CPodcastListView, public MEikListBoxObserver, |
33 class CPodcastQueueView : public CPodcastShowsView |
34 public MFeedEngineObserver, public MShowEngineObserver |
|
35 { |
34 { |
36 public: |
35 public: |
37 static CPodcastQueueView* NewL(CPodcastModel& aPodcastModel); |
36 static CPodcastQueueView* NewL(CPodcastModel& aPodcastModel); |
38 static CPodcastQueueView* NewLC(CPodcastModel& aPodcastModel); |
37 static CPodcastQueueView* NewLC(CPodcastModel& aPodcastModel); |
39 ~CPodcastQueueView(); |
38 ~CPodcastQueueView(); |
66 */ |
65 */ |
67 void DoDeactivate(); |
66 void DoDeactivate(); |
68 |
67 |
69 void UpdateListboxItemsL(); |
68 void UpdateListboxItemsL(); |
70 |
69 |
71 // From // MEikListBoxObserverClass |
70 // From MEikListBoxObserverClass |
72 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
71 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
73 // From showengine observer |
|
74 void ShowListUpdatedL(); |
|
75 void ShowDownloadUpdatedL(TInt aBytesOfCurrentDownload, TInt aBytesTotal); |
|
76 void DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows); |
|
77 void ShowDownloadFinishedL(TUint aShowUid, TInt aError) ; |
|
78 // from MFeedEngineObserver |
|
79 void FeedDownloadStartedL(TFeedState aState,TUint aFeedUid); |
|
80 void FeedDownloadFinishedL(TFeedState aState,TUint aFeedUid, TInt aError); |
|
81 void FeedUpdateAllCompleteL(TFeedState aState); |
|
82 void OpmlParsingComplete(TInt /*aError*/, TUint /*aNumFeedsImported*/) {} |
|
83 |
72 |
84 /** |
73 /** |
85 * Command handling function intended for overriding by sub classes. |
74 * Command handling function intended for overriding by sub classes. |
86 * Default implementation is empty. |
75 * Default implementation is empty. |
87 * @param aCommand ID of the command to respond to. |
76 * @param aCommand ID of the command to respond to. |
88 */ |
77 */ |
89 void HandleCommandL(TInt aCommand); |
78 void HandleCommandL(TInt aCommand); |
90 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
79 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
91 |
|
92 void UpdateFeedUpdateStateL(); |
|
93 void UpdateShowItemL(TUint aUid, TInt aSizeDownloaded); |
|
94 void UpdateShowItemDataL(CShowInfo* aShowInfo,TInt aIndex, TInt aSizeDownloaded = KErrNotFound); |
|
95 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
80 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
96 void FormatShowInfoListBoxItemL(CShowInfo& aShowInfo, TInt aSizeDownloaded = 0); |
|
97 |
|
98 private: |
|
99 void GetShowIcons(CShowInfo* aShowInfo, TInt& aIconIndex); |
|
100 |
|
101 private: |
|
102 |
|
103 CPodcastModel& iPodcastModel; |
|
104 TBool iProgressAdded; |
|
105 TInt iLastImageHandlerError; |
|
106 TBool iSetTitlebarImage; |
|
107 }; |
81 }; |
108 |
82 |
109 #endif |
83 #endif |
110 |
84 |
111 |
85 |