equal
deleted
inserted
replaced
22 #define C_GLXCLOUDVIEWIMP_H |
22 #define C_GLXCLOUDVIEWIMP_H |
23 |
23 |
24 // INCLUDES |
24 // INCLUDES |
25 #include <AknLayout2Def.h> |
25 #include <AknLayout2Def.h> |
26 #include <alf/alfanchorlayout.h> |
26 #include <alf/alfanchorlayout.h> |
27 #include <harvesterclient.h> |
|
28 #include "mglxcloudviewmskobserver.h" |
27 #include "mglxcloudviewmskobserver.h" |
29 #include "mglxenterkeyeventobserver.h" |
28 #include "mglxenterkeyeventobserver.h" |
30 |
29 |
31 #include "glxcloudview.h" //base class |
30 #include "glxcloudview.h" //base class |
32 #include "mglxcloudviewlayoutobserver.h" |
31 #include "mglxcloudviewlayoutobserver.h" |
33 |
32 |
34 #include "glxtagscontextmenucontrol.h" // MGlxItemMenuObserver |
33 #include "glxtagscontextmenucontrol.h" // MGlxItemMenuObserver |
|
34 #include "glxmmcnotifier.h" |
35 |
35 |
36 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
37 class CGlxCloudViewControl; |
37 class CGlxCloudViewControl; |
38 |
38 |
39 |
39 |
52 NONSHARABLE_CLASS(CGlxCloudViewImp): public CGlxCloudView, |
52 NONSHARABLE_CLASS(CGlxCloudViewImp): public CGlxCloudView, |
53 public MGlxCloudViewMskObserver, |
53 public MGlxCloudViewMskObserver, |
54 public MGlxEnterKeyEventObserver, |
54 public MGlxEnterKeyEventObserver, |
55 public MGlxCloudViewLayoutObserver, |
55 public MGlxCloudViewLayoutObserver, |
56 public MGlxItemMenuObserver, |
56 public MGlxItemMenuObserver, |
57 public MHarvesterEventObserver |
57 public MStorageNotifierObserver |
58 { |
58 { |
59 public: |
59 public: |
60 |
60 |
61 /** |
61 /** |
62 * @since S60 3.2 |
62 * @since S60 3.2 |
118 /** |
118 /** |
119 * To Handle menu items in Grid layout |
119 * To Handle menu items in Grid layout |
120 * @param aCommand command to be handled |
120 * @param aCommand command to be handled |
121 */ |
121 */ |
122 void HandleGridMenuListL(TInt aCommand); |
122 void HandleGridMenuListL(TInt aCommand); |
|
123 public: |
|
124 void HandleForegroundEventL(TBool aForeground); |
123 |
125 |
124 public: |
126 public: |
125 /** |
127 /** |
126 * Derived classes should use this to initialize the menus if required |
128 * Derived classes should use this to initialize the menus if required |
127 * @param aResourceId The menu resource |
129 * @param aResourceId The menu resource |
128 * @param aMenuPane The menu pane to edit |
130 * @param aMenuPane The menu pane to edit |
129 */ |
131 */ |
130 void ViewDynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane); |
132 void ViewDynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane); |
131 public: |
|
132 /** |
|
133 * HarvestingUpdated |
|
134 * @param aHEObserverType |
|
135 * @param aHarvesterEventState |
|
136 * @param aItemsLeft |
|
137 */ |
|
138 void HarvestingUpdated( |
|
139 HarvesterEventObserverType aHEObserverType, |
|
140 HarvesterEventState aHarvesterEventState, |
|
141 TInt aItemsLeft ); |
|
142 |
133 |
143 protected: |
134 protected: |
144 // From CGlxViewBase |
135 // From CGlxViewBase |
145 |
136 |
146 /** |
137 /** |
214 void ConstructCloudControlL(); |
205 void ConstructCloudControlL(); |
215 |
206 |
216 //set the rect for scrollbar |
207 //set the rect for scrollbar |
217 void SetScrollBarRect(); |
208 void SetScrollBarRect(); |
218 |
209 |
|
210 private: |
|
211 /** |
|
212 * handle mmc insertion event |
|
213 */ |
|
214 void HandleMMCInsertionL(); |
|
215 /** |
|
216 * handle mmc removal event |
|
217 */ |
|
218 void HandleMMCRemovalL(); |
219 |
219 |
220 private: |
220 private: |
221 // Data |
221 // Data |
222 /**used for resource fetching */ |
222 /**used for resource fetching */ |
223 TInt iResourceOffset; |
223 TInt iResourceOffset; |
252 TAknWindowLineLayout iScrollPaneHandle; |
252 TAknWindowLineLayout iScrollPaneHandle; |
253 |
253 |
254 //anchor layout from the view widget |
254 //anchor layout from the view widget |
255 CAlfAnchorLayout* iAnchorlayout; |
255 CAlfAnchorLayout* iAnchorlayout; |
256 |
256 |
257 RHarvesterClient iHarvesterClient; |
257 //mmc notifier |
|
258 CGlxMMCNotifier* iMMCNotifier; |
|
259 |
|
260 TBool iMMCState; |
258 }; |
261 }; |
259 } |
262 } |
260 #endif // C_GLXTESTTILEVIEWIMP_H |
263 #endif // C_GLXTESTTILEVIEWIMP_H |
261 |
264 |
262 // End of File |
265 // End of File |