83 * Initilizes model sort values. |
83 * Initilizes model sort values. |
84 */ |
84 */ |
85 static void sortModel(VideoSortFilterProxyModel *model, bool async, VideoCollectionCommon::TCollectionLevels target); |
85 static void sortModel(VideoSortFilterProxyModel *model, bool async, VideoCollectionCommon::TCollectionLevels target); |
86 |
86 |
87 /** |
87 /** |
88 * Method saves the latest videolist widget level into activity manager db |
88 * Method saves the latest videolist widget level into local activity manager |
|
89 * data container. |
89 * |
90 * |
90 * @param level type of widget |
91 * Note that collection id will be cleared in activity data in case level is |
|
92 * all videos or collection list. |
|
93 * |
|
94 * @param level collection level |
91 */ |
95 */ |
92 static void saveWidgetLevel(VideoCollectionCommon::TCollectionLevels &level); |
96 static void setWidgetActivityLevel(const VideoCollectionCommon::TCollectionLevels &level); |
|
97 |
|
98 /** |
|
99 * Method gets the latest videolist widget level from local activity manager |
|
100 * data container. |
|
101 * |
|
102 * @param level, reference to level variable where value is saved |
|
103 */ |
|
104 static void getActivityWidgetLevel(VideoCollectionCommon::TCollectionLevels &level); |
93 |
105 |
94 /** |
106 /** |
95 * Method loads the latest videolist widget level from activity manager db. |
107 * method saves provided id and string into local activity |
96 * Possible values are ELevelCategory or ELevelVideos |
108 * manager data container. |
97 * |
109 * |
98 * @return VideoCollectionCommon::TCollectionLevels |
110 * @param id. Id to save |
99 */ |
111 */ |
100 static VideoCollectionCommon::TCollectionLevels loadWidgetLevel(); |
112 static void setCollectionActivityData(const TMPXItemId &id, const QString &name); |
|
113 |
|
114 /** |
|
115 * method reads id and string from from local activity manager data |
|
116 * container and prepares MPX item id. |
|
117 * |
|
118 * @param id. Id to return |
|
119 */ |
|
120 static void getCollectionActivityData(TMPXItemId &id, QString &name); |
101 |
121 |
102 public slots: |
122 public slots: |
103 |
123 |
104 /** |
124 /** |
105 * Shows status msgs |
125 * Shows status msgs |