equal
deleted
inserted
replaced
56 TInt CountComponentControls() const; |
56 TInt CountComponentControls() const; |
57 CCoeControl* ComponentControl( TInt aIndex ) const; |
57 CCoeControl* ComponentControl( TInt aIndex ) const; |
58 void HandleResourceChange(TInt aType); |
58 void HandleResourceChange(TInt aType); |
59 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
59 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
60 void SetContainerListener(MContainerListener *aContainerListener); |
60 void SetContainerListener(MContainerListener *aContainerListener); |
|
61 void SetListboxObserver(MEikListBoxObserver *aObserver); |
61 |
62 |
62 CEikColumnListBox* Listbox(); |
63 CEikColumnListBox* Listbox(); |
63 void SetListboxIcons(CArrayPtr< CGulIcon >* aIcons); |
64 void SetListboxIcons(CArrayPtr< CGulIcon >* aIcons); |
64 CArrayPtr<CGulIcon>* ListboxIcons(); |
65 CArrayPtr<CGulIcon>* ListboxIcons(); |
65 void SetListboxTextArrays(CDesCArray* aPortraitArray, CDesCArray* aLandscapeArray); |
66 void SetListboxTextArrays(CDesCArray* aPortraitArray, CDesCArray* aLandscapeArray); |
79 TBool iLandscape; |
80 TBool iLandscape; |
80 }; |
81 }; |
81 |
82 |
82 |
83 |
83 class CPodcastListView : public CAknView, public MAknToolbarObserver, |
84 class CPodcastListView : public CAknView, public MAknToolbarObserver, |
84 public MProgressDialogCallback, public MContainerListener |
85 public MProgressDialogCallback, public MContainerListener, MEikListBoxObserver |
85 { |
86 { |
86 public: |
87 public: |
87 ~CPodcastListView(); |
88 ~CPodcastListView(); |
88 virtual void UpdateToolbar(TBool aVisible=ETrue) = 0; |
89 virtual void UpdateToolbar(TBool aVisible=ETrue) = 0; |
89 TBool IsVisible(); |
90 TBool IsVisible(); |
90 |
91 |
91 protected: |
92 protected: |
92 void SwitchListbox(); |
93 void SwitchListbox(); |
93 void ConstructL(); |
94 void ConstructL(); |
94 CPodcastListView(); |
95 CPodcastListView(); |
95 |
96 |
144 // from MProgressDialogCallback |
145 // from MProgressDialogCallback |
145 void DialogDismissedL(TInt /*aButtonId*/) {} |
146 void DialogDismissedL(TInt /*aButtonId*/) {} |
146 |
147 |
147 // from MContainerListener |
148 // from MContainerListener |
148 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
149 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
149 virtual void SizeChanged() = 0; |
150 virtual void SizeChanged() {}; |
150 void ResetContainer(); |
151 void ResetContainer(); |
151 |
152 |
|
153 virtual void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType)=0; |
152 protected: |
154 protected: |
153 CPodcastListContainer* iListContainer; |
155 CPodcastListContainer* iListContainer; |
154 /** Previous activated view */ |
156 /** Previous activated view */ |
155 TVwsViewId iPreviousView; |
157 TVwsViewId iPreviousView; |
156 |
158 |