14 * Description: Videolist view class source code |
14 * Description: Videolist view class source code |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include "videolistview.h" |
18 #include "videolistview.h" |
|
19 #include "videolistwidget.h" |
19 #include "videocollectionviewutils.h" |
20 #include "videocollectionviewutils.h" |
20 #include "videocollectionwrapper.h" |
21 #include "videocollectionwrapper.h" |
21 |
22 |
22 #include "videolistviewdata.h" |
23 #include "videolistviewdata.h" |
23 |
24 |
24 int VideoListViewData::mActivateViewCount = 0; |
25 int VideoListViewData::mActivateViewCount = 0; |
25 int VideoListViewData::mBackCount = 0; |
26 int VideoListViewData::mBackCount = 0; |
26 int VideoListViewData::mDeactivateViewCount = 0; |
27 int VideoListViewData::mDeactivateViewCount = 0; |
27 int VideoListViewData::mInitializeViewCount = 0; |
28 int VideoListViewData::mInitializeViewCount = 0; |
28 TMPXItemId VideoListViewData::mActivatedItemId = TMPXItemId::InvalidId(); |
29 TMPXItemId VideoListViewData::mActivatedItemId = TMPXItemId::InvalidId(); |
|
30 VideoListWidget* VideoListViewData::mCurrentListWidget = 0; |
29 |
31 |
30 VideoListView::VideoListView(VideoCollectionUiLoader *uiLoader, QGraphicsItem *parent) : |
32 VideoListView::VideoListView(VideoCollectionUiLoader *uiLoader, QGraphicsItem *parent) : |
31 HbView(parent), |
33 HbView(parent), |
32 mUiUtils(VideoCollectionViewUtils::instance()), |
34 mUiUtils(VideoCollectionViewUtils::instance()), |
33 mWrapper(VideoCollectionWrapper::instance()), |
35 mWrapper(VideoCollectionWrapper::instance()), |
34 mUiLoader(uiLoader), |
36 mUiLoader(uiLoader), |
35 mModelReady(false), |
37 mModelReady(false), |
36 mVideoServices(0), |
38 mVideoServices(0), |
37 mCurrentList(0), |
39 mCurrentList(0) |
38 mToolbarViewsActionGroup(0), |
|
39 mToolbarCollectionActionGroup(0), |
|
40 mToolbarServiceExtension(0) |
|
41 |
|
42 { |
40 { |
43 // not stubbed |
41 // not stubbed |
44 } |
42 } |
45 |
43 |
46 VideoListView::~VideoListView() |
44 VideoListView::~VideoListView() |
110 { |
108 { |
111 // not stubbed |
109 // not stubbed |
112 return 0; |
110 return 0; |
113 } |
111 } |
114 |
112 |
115 void VideoListView::createOperatorServicesToolbar() |
113 VideoListWidget *VideoListView::getCurrentList() |
116 { |
114 { |
117 // not stubbed |
115 if(VideoListViewData::mCurrentListWidget) |
118 } |
116 { |
119 |
117 return VideoListViewData::mCurrentListWidget; |
120 void VideoListView::loadOperatorService(int titleKey, int iconKey, int uriKey, int uidKey) |
118 } |
121 { |
119 return mCurrentList; |
122 // not stubbed |
|
123 Q_UNUSED(titleKey); |
|
124 Q_UNUSED(iconKey); |
|
125 Q_UNUSED(uriKey); |
|
126 Q_UNUSED(uidKey); |
|
127 } |
|
128 |
|
129 HbAction* VideoListView::createAction(QString icon, |
|
130 QActionGroup* actionGroup, |
|
131 const char *slot) |
|
132 { |
|
133 Q_UNUSED(icon); |
|
134 Q_UNUSED(actionGroup); |
|
135 Q_UNUSED(slot); |
|
136 // not stubbed |
|
137 return 0; |
|
138 } |
120 } |
139 |
121 |
140 void VideoListView::showHint(bool show) |
122 void VideoListView::showHint(bool show) |
141 { |
123 { |
142 Q_UNUSED(show); |
124 Q_UNUSED(show); |
152 void VideoListView::updateSubLabel() |
134 void VideoListView::updateSubLabel() |
153 { |
135 { |
154 // not stubbed |
136 // not stubbed |
155 } |
137 } |
156 |
138 |
157 void VideoListView::showAction(bool show, const QString &name) |
|
158 { |
|
159 Q_UNUSED(show); |
|
160 Q_UNUSED(name); |
|
161 // not stubbed |
|
162 } |
|
163 |
|
164 void VideoListView::openAllVideosViewSlot() |
139 void VideoListView::openAllVideosViewSlot() |
165 { |
140 { |
166 // not stubbed |
141 // not stubbed |
167 } |
142 } |
168 |
143 |
169 void VideoListView::openCollectionViewSlot() |
144 void VideoListView::openCollectionViewSlot() |
170 { |
145 { |
171 // not stubbed |
146 // not stubbed |
172 } |
147 } |
173 |
148 |
174 void VideoListView::openOperatorServiceSlot() |
|
175 { |
|
176 // not stubbed |
|
177 } |
|
178 |
|
179 void VideoListView::startSorting() |
|
180 { |
|
181 // not stubbed |
|
182 } |
|
183 |
|
184 void VideoListView::aboutToChangeOrientationSlot() |
149 void VideoListView::aboutToChangeOrientationSlot() |
185 { |
150 { |
186 // not stubbed |
151 // not stubbed |
187 } |
152 } |
188 |
153 |
189 void VideoListView::orientationChangedSlot(Qt::Orientation orientation) |
154 void VideoListView::orientationChangedSlot(Qt::Orientation orientation) |
190 { |
155 { |
191 Q_UNUSED(orientation); |
156 Q_UNUSED(orientation); |
192 // not stubbed |
|
193 } |
|
194 |
|
195 void VideoListView::deleteItemsSlot() |
|
196 { |
|
197 // not stubbed |
|
198 } |
|
199 |
|
200 void VideoListView::createCollectionSlot() |
|
201 { |
|
202 // not stubbed |
|
203 } |
|
204 |
|
205 void VideoListView::addVideosToCollectionSlot() |
|
206 { |
|
207 // not stubbed |
|
208 } |
|
209 |
|
210 void VideoListView::removeVideosFromCollectionSlot() |
|
211 { |
|
212 // not stubbed |
|
213 } |
|
214 |
|
215 void VideoListView::aboutToShowMainMenuSlot() |
|
216 { |
|
217 // not stubbed |
|
218 } |
|
219 |
|
220 void VideoListView::prepareBrowseServiceMenu() |
|
221 { |
|
222 // not stubbed |
157 // not stubbed |
223 } |
158 } |
224 |
159 |
225 void VideoListView::handleAsyncStatusSlot(int statusCode, QVariant &additional) |
160 void VideoListView::handleAsyncStatusSlot(int statusCode, QVariant &additional) |
226 { |
161 { |