equal
deleted
inserted
replaced
21 |
21 |
22 #include <hbview.h> |
22 #include <hbview.h> |
23 #include <hblistview.h> |
23 #include <hblistview.h> |
24 #include <qmap.h> |
24 #include <qmap.h> |
25 #include <mpxitemid.h> |
25 #include <mpxitemid.h> |
|
26 #include "videoservices.h" |
26 #include "videocollectioncommon.h" |
27 #include "videocollectioncommon.h" |
27 |
28 |
28 class VideoSortFilterProxyModel; |
29 class VideoSortFilterProxyModel; |
29 class VideoServices; |
30 class VideoServices; |
30 class VideoCollectionUiLoader; |
31 class VideoCollectionUiLoader; |
65 /** |
66 /** |
66 * Method creates colleciton wrapper, grid and list views, |
67 * Method creates colleciton wrapper, grid and list views, |
67 * layout and activates correct view based on the current orientation |
68 * layout and activates correct view based on the current orientation |
68 * |
69 * |
69 * @param model Model for this list view. |
70 * @param model Model for this list view. |
|
71 * @param videoservices |
|
72 * @param level presetted level for the widget |
70 * @return int 0 initialization ok, < 0 if fails. |
73 * @return int 0 initialization ok, < 0 if fails. |
71 */ |
74 */ |
72 int initialize(VideoSortFilterProxyModel &model, VideoServices* videoServices = 0); |
75 int initialize(VideoSortFilterProxyModel &model, |
|
76 VideoServices* videoServices = 0, |
|
77 VideoCollectionCommon::TCollectionLevels level = VideoCollectionCommon::ELevelInvalid); |
73 |
78 |
74 /** |
79 /** |
75 * Method enables and displays current active view |
80 * Method enables and displays current active view |
76 * |
81 * |
77 * @return int 0 initialization ok, < 0 if fails. |
82 * @return int 0 initialization ok, < 0 if fails. |
163 |
168 |
164 /** |
169 /** |
165 * Signaled by HbMessageBox when it's closed. |
170 * Signaled by HbMessageBox when it's closed. |
166 */ |
171 */ |
167 void removeCollectionDialogFinished(HbAction *action); |
172 void removeCollectionDialogFinished(HbAction *action); |
|
173 |
|
174 /** |
|
175 * called or signaled when delayed initialization is reauired for the widget |
|
176 * |
|
177 */ |
|
178 void doDelayedsSlot(); |
168 |
179 |
169 protected slots: |
180 protected slots: |
170 |
181 |
171 /** |
182 /** |
172 * Signaled by the fw when item is long pressed. |
183 * Signaled by the fw when item is long pressed. |
224 * Signaled when item's play functionality is initialized from context menu. |
235 * Signaled when item's play functionality is initialized from context menu. |
225 * Calls doActivateItem for actually executing the functionality. |
236 * Calls doActivateItem for actually executing the functionality. |
226 */ |
237 */ |
227 void playItemSlot(); |
238 void playItemSlot(); |
228 |
239 |
229 /** |
|
230 * slot is connected to view's doDelayeds -signal |
|
231 * |
|
232 */ |
|
233 void doDelayedsSlot(); |
|
234 |
|
235 /** |
240 /** |
236 * Signaled when stepping back from collection in collection view |
241 * Signaled when stepping back from collection in collection view |
237 * |
242 * |
238 */ |
243 */ |
239 void back(); |
244 void back(); |
401 |
406 |
402 /** |
407 /** |
403 * ui loade object, not owned |
408 * ui loade object, not owned |
404 */ |
409 */ |
405 VideoCollectionUiLoader *mUiLoader; |
410 VideoCollectionUiLoader *mUiLoader; |
|
411 |
|
412 /** |
|
413 * Service being provided |
|
414 */ |
|
415 VideoServices::TVideoService mService; |
406 }; |
416 }; |
407 |
417 |
408 #endif // VIDEOLISTWIDGET_H |
418 #endif // VIDEOLISTWIDGET_H |