equal
deleted
inserted
replaced
33 #include <glxmedialistfactory.h> // MGlxMediaListFactory |
33 #include <glxmedialistfactory.h> // MGlxMediaListFactory |
34 |
34 |
35 #include <glxthumbnailcontext.h> |
35 #include <glxthumbnailcontext.h> |
36 #include <glxuistd.h> |
36 #include <glxuistd.h> |
37 #include <glxprogressindicator.h> |
37 #include <glxprogressindicator.h> |
38 #include <harvesterclient.h> |
|
39 |
38 |
40 #include "glxgridvieweventobserver.h" |
39 #include "glxgridvieweventobserver.h" |
|
40 #include "glxmmcnotifier.h" |
41 |
41 |
42 class CHgGrid; |
42 class CHgGrid; |
43 class CGlxUiUtility; |
43 class CGlxUiUtility; |
44 class CGlxGridViewMLObserver; |
44 class CGlxGridViewMLObserver; |
45 class CGlxActiveMediaListRegistry; |
45 class CGlxActiveMediaListRegistry; |
52 |
52 |
53 class CGlxGridViewContainer : public CCoeControl, |
53 class CGlxGridViewContainer : public CCoeControl, |
54 public MHgScrollBufferObserver, |
54 public MHgScrollBufferObserver, |
55 public MHgSelectionObserver, |
55 public MHgSelectionObserver, |
56 public MHgMarkingObserver, |
56 public MHgMarkingObserver, |
57 public MHarvesterEventObserver |
57 public MStorageNotifierObserver |
58 { |
58 { |
59 public: |
59 public: |
60 /** |
60 /** |
61 * Two-phased constructor. |
61 * Two-phased constructor. |
62 * |
62 * |
95 TTypeUid::Ptr MopSupplyObject(TTypeUid aId); |
95 TTypeUid::Ptr MopSupplyObject(TTypeUid aId); |
96 TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType); |
96 TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType); |
97 |
97 |
98 //handle orientaion realted changes |
98 //handle orientaion realted changes |
99 void HandleResourceChange(TInt aType); |
99 void HandleResourceChange(TInt aType); |
100 public: |
|
101 // from MHarvesterEventObserver |
|
102 void HarvestingUpdated( |
|
103 HarvesterEventObserverType aHEObserverType, |
|
104 HarvesterEventState aHarvesterEventState, |
|
105 TInt aItemsLeft ); |
|
106 |
100 |
107 private: |
101 private: |
108 /** |
102 /** |
109 * C++ default constructor. |
103 * C++ default constructor. |
110 */ |
104 */ |
156 /** |
150 /** |
157 * Calculate and return the client rect for HGgrid |
151 * Calculate and return the client rect for HGgrid |
158 * Required as the tool bar is dynamically created. |
152 * Required as the tool bar is dynamically created. |
159 */ |
153 */ |
160 TRect GetHgGridRect(); |
154 TRect GetHgGridRect(); |
|
155 /** |
|
156 * handle mmc insertion event |
|
157 */ |
|
158 void HandleMMCInsertionL(); |
|
159 /** |
|
160 * handle mmc removal event |
|
161 */ |
|
162 void HandleMMCRemovalL(); |
161 |
163 |
162 private: |
164 private: |
163 //medialist |
165 //medialist |
164 MGlxMediaList* iMediaList; // MGlxMedialist , to Create MediaList |
166 MGlxMediaList* iMediaList; // MGlxMedialist , to Create MediaList |
165 |
167 |
217 //observer |
219 //observer |
218 MGlxGridEventObserver& iGlxGridViewObserver; |
220 MGlxGridEventObserver& iGlxGridViewObserver; |
219 //toolbar - created dynamically. |
221 //toolbar - created dynamically. |
220 CAknToolbar* iToolbar; |
222 CAknToolbar* iToolbar; |
221 CGlxProgressIndicator* iProgressIndicator; |
223 CGlxProgressIndicator* iProgressIndicator; |
222 RHarvesterClient iHarvesterClient; |
224 CGlxMMCNotifier* iMMCNotifier; |
223 }; |
225 }; |
224 |
226 |
225 #endif // CGLXGRIDVIEWCONTROL_H |
227 #endif // CGLXGRIDVIEWCONTROL_H |
226 |
228 |