photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerupload.h
equal
deleted
inserted
replaced
20 |
20 |
21 |
21 |
22 // EXTERNAL INCLUDES |
22 // EXTERNAL INCLUDES |
23 #include "AiwServiceHandler.h" // AIW service handler |
23 #include "AiwServiceHandler.h" // AIW service handler |
24 #include <centralrepository.h> // for checking the ShareOnline version |
24 #include <centralrepository.h> // for checking the ShareOnline version |
25 #include <thumbnailmanager.h> |
|
26 #include <thumbnailmanagerobserver.h> |
|
27 |
25 |
28 // INTERNAL INCLUDES |
26 // INTERNAL INCLUDES |
29 #include "glxmedialistcommandhandler.h" // for MediaListCommandHandler |
27 #include "glxmedialistcommandhandler.h" // for MediaListCommandHandler |
30 #include <glxuiutility.h> // for UiUtility |
28 #include <glxuiutility.h> // for UiUtility |
31 |
29 |
32 // FORWARD DECLARATIONS |
30 // FORWARD DECLARATIONS |
33 class MGlxMediaListProvider; |
31 class MGlxMediaListProvider; |
34 class CGlxDefaultAttributeContext; |
32 class CGlxDefaultAttributeContext; |
35 class CGlxUploadCenRepWatcher; |
33 class CGlxUploadCenRepWatcher; |
|
34 class CSvgEngineInterfaceImpl; |
36 |
35 |
37 // For upload icon change notification |
36 // For upload icon change notification |
38 class MGlxUploadIconObserver |
37 class MGlxUploadIconObserver |
39 { |
38 { |
40 public: |
39 public: |
51 */ |
50 */ |
52 |
51 |
53 // CLASS DECLARATION |
52 // CLASS DECLARATION |
54 |
53 |
55 NONSHARABLE_CLASS (CGlxCommandHandlerUpload) : public CGlxMediaListCommandHandler, |
54 NONSHARABLE_CLASS (CGlxCommandHandlerUpload) : public CGlxMediaListCommandHandler, |
56 public MGlxMediaListObserver, public MThumbnailManagerObserver, public MGlxUploadIconObserver |
55 public MGlxMediaListObserver, public MGlxUploadIconObserver |
57 { |
56 { |
58 public: // Constructors and destructor |
57 public: // Constructors and destructor |
59 /** |
58 /** |
60 * Two-phased constructor. |
59 * Two-phased constructor. |
61 * @param aMediaListProvider pointer to media list owner |
60 * @param aMediaListProvider pointer to media list owner |
142 |
141 |
143 /** |
142 /** |
144 * Called when the owning view is deactivated |
143 * Called when the owning view is deactivated |
145 */ |
144 */ |
146 void Deactivate(); |
145 void Deactivate(); |
147 |
|
148 private: // From MThumbnailManagerObserver |
|
149 |
|
150 void ThumbnailPreviewReady( MThumbnailData& aThumbnail, |
|
151 TThumbnailRequestId aId ); |
|
152 void ThumbnailReady( TInt aError, MThumbnailData& aThumbnail, |
|
153 TThumbnailRequestId aId ); |
|
154 |
146 |
155 private: |
147 private: |
156 /** |
148 /** |
157 * Retrieve the currently selected items file name and path |
149 * Retrieve the currently selected items file name and path |
158 * @return The currently selected items filename and path |
150 * @return The currently selected items filename and path |
193 * Gets the Icon path and fileName from the cenrep |
185 * Gets the Icon path and fileName from the cenrep |
194 */ |
186 */ |
195 void GetIconNameL(TDes& aUplaodIconName); |
187 void GetIconNameL(TDes& aUplaodIconName); |
196 |
188 |
197 /** |
189 /** |
198 * Decodes the Icon using the TNM Manager |
190 * Decodes the Icon using the SVG Engine |
199 */ |
191 */ |
200 void DecodeIconL(const TDes& aUplaodIconNmae); |
192 void DecodeIconL(const TDes& aUplaodIconName); |
201 |
193 |
202 |
194 |
203 /** |
195 /** |
204 * Updates the Toolbar upload icon based on the current selection |
196 * Updates the Toolbar upload icon based on the current selection |
205 */ |
197 */ |
206 void UpdateFSUploadIconL(); |
198 void UpdateFSUploadIconL(); |
207 |
|
208 |
|
209 /** |
|
210 * Sets the decoded upload icon to the toolbar item |
|
211 */ |
|
212 void SetDecodedUploadIconL(MThumbnailData& aThumbnail); |
|
213 |
199 |
214 private: // data |
200 private: // data |
215 |
201 |
216 //Cenrep watcher for monitoring the icon changes |
202 //Cenrep watcher for monitoring the icon changes |
217 CGlxUploadCenRepWatcher* iUploadCenRepWatcher; |
203 CGlxUploadCenRepWatcher* iUploadCenRepWatcher; |
228 // Not owned - UI utility |
214 // Not owned - UI utility |
229 CGlxUiUtility* iUiUtility; |
215 CGlxUiUtility* iUiUtility; |
230 |
216 |
231 // Owned - AIW Service Handler |
217 // Owned - AIW Service Handler |
232 CAiwServiceHandler* iServiceHandler; |
218 CAiwServiceHandler* iServiceHandler; |
233 |
|
234 CThumbnailManager* iTnEngine; // Own |
|
235 |
219 |
236 //Keep the count of no. of images/videos selected |
220 //Keep the count of no. of images/videos selected |
237 TInt iSelectedImageCount; |
221 TInt iSelectedImageCount; |
238 TInt iSelectedVideoCount; |
222 TInt iSelectedVideoCount; |
239 |
223 |
248 |
232 |
249 TCenRepMonitors iCurrentCenRepMonitor; |
233 TCenRepMonitors iCurrentCenRepMonitor; |
250 |
234 |
251 //Toolbar instance of current view |
235 //Toolbar instance of current view |
252 CAknToolbar* iToolbar; |
236 CAknToolbar* iToolbar; |
253 |
|
254 TThumbnailRequestId iTnmRequestID; |
|
255 |
237 |
256 //To check if we are in fullscreen |
238 //To check if we are in fullscreen |
257 TBool iIsFullScreenView; |
239 TBool iIsFullScreenView; |
|
240 |
|
241 CSvgEngineInterfaceImpl* iSvgEngine; |
258 }; |
242 }; |
259 |
243 |
260 #endif //__GLXCOMMANDHANDLERUPLOAD_H__ |
244 #endif //__GLXCOMMANDHANDLERUPLOAD_H__ |