55 TInt CountComponentControls() const; |
55 TInt CountComponentControls() const; |
56 CCoeControl* ComponentControl( TInt aIndex ) const; |
56 CCoeControl* ComponentControl( TInt aIndex ) const; |
57 void HandleResourceChange(TInt aType); |
57 void HandleResourceChange(TInt aType); |
58 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
58 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
59 void SetKeyEventListener(MKeyEventListener *aKeyEventListener); |
59 void SetKeyEventListener(MKeyEventListener *aKeyEventListener); |
60 void SetPointerListener(MPointerListener *aPointerListener); |
|
61 |
60 |
62 CEikFormattedCellListBox* Listbox(); |
61 CEikFormattedCellListBox* Listbox(); |
63 void ScrollToVisible(); |
62 void ScrollToVisible(); |
64 void Draw(const TRect& aRect) const; |
63 void Draw(const TRect& aRect) const; |
65 |
64 |
66 void SetLongTapDetectedL(TBool aLongTapDetected); |
|
67 |
|
68 CEikFormattedCellListBox * iListbox; |
65 CEikFormattedCellListBox * iListbox; |
69 |
66 |
70 protected: |
67 protected: |
71 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
68 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
72 virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
73 |
69 |
74 private: |
70 private: |
75 MKeyEventListener* iKeyEventListener; |
71 MKeyEventListener* iKeyEventListener; |
76 MPointerListener* iPointerListener; |
|
77 CAknsBasicBackgroundControlContext* iBgContext; |
72 CAknsBasicBackgroundControlContext* iBgContext; |
78 TBool iLongTapDetected; |
|
79 |
|
80 }; |
73 }; |
81 |
74 |
82 |
75 |
83 class CPodcastListView : public CAknView, public MAknToolbarObserver, |
76 class CPodcastListView : public CAknView, public MAknToolbarObserver, |
84 public MPointerListener, public MAknLongTapDetectorCallBack, |
|
85 public MProgressDialogCallback, public MKeyEventListener |
77 public MProgressDialogCallback, public MKeyEventListener |
86 { |
78 { |
87 public: |
79 public: |
88 ~CPodcastListView(); |
80 ~CPodcastListView(); |
89 virtual void UpdateToolbar(TBool aVisible=ETrue) = 0; |
81 virtual void UpdateToolbar(TBool aVisible=ETrue) = 0; |
138 void ShowErrorMessageL(TDesC &aText); |
130 void ShowErrorMessageL(TDesC &aText); |
139 TInt ShowQueryMessageL(TDesC &aText); |
131 TInt ShowQueryMessageL(TDesC &aText); |
140 void CloseToolbarExtension(); |
132 void CloseToolbarExtension(); |
141 void ShowWaitDialogL(TDesC &aWaitText); |
133 void ShowWaitDialogL(TDesC &aWaitText); |
142 void CloseWaitDialog(); |
134 void CloseWaitDialog(); |
143 |
135 |
144 // From MAknLongTapDetectorCallBack |
|
145 virtual void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation ); |
|
146 |
|
147 // from MProgressDialogCallback |
136 // from MProgressDialogCallback |
148 void DialogDismissedL(TInt /*aButtonId*/) {} |
137 void DialogDismissedL(TInt /*aButtonId*/) {} |
149 |
138 |
150 // from MKeyEventListener |
139 // from MKeyEventListener |
151 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
140 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
152 |
|
153 // from MPointerListener |
|
154 void PointerEventL(const TPointerEvent& aPointerEvent); |
|
155 |
141 |
156 protected: |
142 protected: |
157 CPodcastListContainer* iListContainer; |
143 CPodcastListContainer* iListContainer; |
158 /** Previous activated view */ |
144 /** Previous activated view */ |
159 TVwsViewId iPreviousView; |
145 TVwsViewId iPreviousView; |
165 RArray<TUint> iItemIdArray; |
151 RArray<TUint> iItemIdArray; |
166 |
152 |
167 TBuf<1024> iListboxFormatbuffer; |
153 TBuf<1024> iListboxFormatbuffer; |
168 |
154 |
169 CAknToolbar *iToolbar; |
155 CAknToolbar *iToolbar; |
170 CAknStylusPopUpMenu* iStylusPopupMenu; |
|
171 CAknLongTapDetector* iLongTapDetector; |
|
172 CAknWaitDialog *iWaitDialog; |
156 CAknWaitDialog *iWaitDialog; |
173 |
|
174 }; |
157 }; |
175 #endif // PODCASTBASEVIEWH |
158 #endif // PODCASTBASEVIEWH |
176 |
159 |