equal
deleted
inserted
replaced
37 class HbGroupBox; |
37 class HbGroupBox; |
38 class VideoListSelectionDialog; |
38 class VideoListSelectionDialog; |
39 class HbMenu; |
39 class HbMenu; |
40 class VideoServices; |
40 class VideoServices; |
41 class TMPXItemId; |
41 class TMPXItemId; |
|
42 class HbToolBarExtension; |
|
43 class VideoOperatorService; |
42 |
44 |
43 /** |
45 /** |
44 * Class acts as an container for widgets that are used to display different |
46 * Class acts as an container for widgets that are used to display different |
45 * data: all videos, video collections or video services. |
47 * data: all videos, video collections or video services. |
46 * |
48 * |
161 * |
163 * |
162 */ |
164 */ |
163 void openCollectionViewSlot(); |
165 void openCollectionViewSlot(); |
164 |
166 |
165 /** |
167 /** |
166 * Slot is connected into toolbar's Service tab's |
168 * Slot is connected into hint widget's button's clicked signal. |
167 * triggered signal. |
169 * |
168 * |
170 * Activates first operator service. |
169 * Activates Service widget by calling changeWidget. |
171 * |
170 * |
172 */ |
171 */ |
173 void openOperatorServiceSlot(); |
172 void openServicesViewSlot(); |
|
173 |
174 |
174 /** |
175 /** |
175 * Slot is connected into main menus sort -items |
176 * Slot is connected into main menus sort -items |
176 * Method checks sorting role based on active menu item and initiates sorting |
177 * Method checks sorting role based on active menu item and initiates sorting |
177 * |
178 * |
283 * @return 0 creation ok, < 0 creation fails |
284 * @return 0 creation ok, < 0 creation fails |
284 */ |
285 */ |
285 int createToolbar(); |
286 int createToolbar(); |
286 |
287 |
287 /** |
288 /** |
|
289 * Loads video services from central respository and creates toolbar buttons for them. |
|
290 */ |
|
291 void createOperatorServicesToolbar(); |
|
292 |
|
293 /** |
|
294 * Loads video service from Central Repository and stores it into member array. |
|
295 * |
|
296 * @param titleKey CenRep key for service title. |
|
297 * @param iconKey CenRep key for icon resource. |
|
298 * @param uriKey CenRep key for service URI. |
|
299 * @param uidKey CenRep key for service application UID. |
|
300 */ |
|
301 void loadOperatorService(int titleKey, int iconKey, int uriKey, int uidKey); |
|
302 |
|
303 /** |
288 * Creates action with given parameters. createActionGroup() must be called successfully |
304 * Creates action with given parameters. createActionGroup() must be called successfully |
289 * before using this method. |
305 * before using this method. |
290 * |
306 * |
291 * @param tooltip Tooltip text for the action. |
307 * @param tooltip Tooltip text for the action. |
292 * @param icon Filepath for the icon file. |
308 * @param icon Filepath for the icon file. |
337 int activateCollectionContentView(const TMPXItemId &itemId); |
353 int activateCollectionContentView(const TMPXItemId &itemId); |
338 |
354 |
339 private: |
355 private: |
340 |
356 |
341 /** |
357 /** |
342 * actions ids used in main menu and tool bar |
358 * Actions ids used in main menu and tool bar |
343 */ |
359 */ |
344 enum TViewActionIds |
360 enum TViewActionIds |
345 { |
361 { |
346 ETBActionAllVideos = 10, |
362 ETBActionAllVideos = 10, |
347 ETBActionCollections = 11, |
363 ETBActionCollections = 11, |
349 ETBActionAddVideos = 13, |
365 ETBActionAddVideos = 13, |
350 ETBActionRemoveVideos = 14 |
366 ETBActionRemoveVideos = 14 |
351 }; |
367 }; |
352 |
368 |
353 /** |
369 /** |
354 * reference to video collection view utils |
370 * Reference to video collection view utils |
355 */ |
371 */ |
356 VideoCollectionViewUtils &mUiUtils; |
372 VideoCollectionViewUtils &mUiUtils; |
357 |
373 |
358 /** |
374 /** |
359 * pointer to videocollectionwrapper |
375 * Reference to videocollectionwrapper |
360 */ |
376 */ |
361 VideoCollectionWrapper &mWrapper; |
377 VideoCollectionWrapper &mWrapper; |
362 |
378 |
363 /** |
379 /** |
364 * Pointer to the XML UI (DocML) loader, not owned |
380 * Pointer to the XML UI (DocML) loader, not owned |
379 * Hint level for the hint widget. |
395 * Hint level for the hint widget. |
380 */ |
396 */ |
381 VideoHintWidget::HintLevel mHintLevel; |
397 VideoHintWidget::HintLevel mHintLevel; |
382 |
398 |
383 /** |
399 /** |
384 * pointer to videoservices instance |
400 * Pointer to videoservices instance |
385 * if exists, app has started as service |
401 * if exists, app has started as service |
386 */ |
402 */ |
387 VideoServices* mVideoServices; |
403 VideoServices* mVideoServices; |
388 |
404 |
389 /** |
405 /** |
400 * Action group for the toolbar. |
416 * Action group for the toolbar. |
401 */ |
417 */ |
402 QActionGroup* mToolbarCollectionActionGroup; |
418 QActionGroup* mToolbarCollectionActionGroup; |
403 |
419 |
404 /** |
420 /** |
405 * map containing toolbar actions |
421 * Map containing toolbar actions |
406 */ |
422 */ |
407 QMap<TViewActionIds, HbAction*> mToolbarActions; |
423 QMap<TViewActionIds, HbAction*> mToolbarActions; |
408 |
424 |
409 /** |
425 /** |
410 * Soring roles mapped to appropriate actions. |
426 * Sorting roles mapped to appropriate actions. |
411 */ |
427 */ |
412 QMap<HbAction*, int> mSortingRoles; |
428 QMap<HbAction*, int> mSortingRoles; |
413 |
429 |
414 /** |
430 /** |
415 * String containing the name of the currently open collection |
431 * String containing the name of the currently open collection |
416 */ |
432 */ |
417 QString mCollectionName; |
433 QString mCollectionName; |
|
434 |
|
435 /** |
|
436 * Toolbar extension for operator services when there's more than |
|
437 * one of them. |
|
438 */ |
|
439 HbToolBarExtension *mToolbarServiceExtension; |
|
440 |
|
441 /** |
|
442 * List of operator services. |
|
443 */ |
|
444 QList<VideoOperatorService *> mVideoOperatorServices; |
418 }; |
445 }; |
419 |
446 |
420 #endif // VIDEOLISTVIEW_H |
447 #endif // VIDEOLISTVIEW_H |
421 |
|