|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Videolist view class source code |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "videolistview.h" |
|
19 #include "videocollectionviewutils.h" |
|
20 #include "videocollectionwrapper.h" |
|
21 |
|
22 #include "videolistviewdata.h" |
|
23 |
|
24 int VideoListViewData::mActivateViewCount = 0; |
|
25 int VideoListViewData::mBackCount = 0; |
|
26 int VideoListViewData::mDeactivateViewCount = 0; |
|
27 int VideoListViewData::mInitializeViewCount = 0; |
|
28 TMPXItemId VideoListViewData::mActivatedItemId = TMPXItemId::InvalidId(); |
|
29 |
|
30 VideoListView::VideoListView(VideoCollectionUiLoader *uiLoader, QGraphicsItem *parent) : |
|
31 HbView(parent), |
|
32 mUiUtils(VideoCollectionViewUtils::instance()), |
|
33 mWrapper(VideoCollectionWrapper::instance()), |
|
34 mUiLoader(uiLoader), |
|
35 mModelReady(false), |
|
36 mVideoServices(0), |
|
37 mCurrentList(0), |
|
38 mToolbarViewsActionGroup(0), |
|
39 mToolbarCollectionActionGroup(0), |
|
40 mToolbarServiceExtension(0) |
|
41 |
|
42 { |
|
43 // not stubbed |
|
44 } |
|
45 |
|
46 VideoListView::~VideoListView() |
|
47 { |
|
48 // disconnect signals |
|
49 disconnect(); |
|
50 } |
|
51 |
|
52 int VideoListView::initializeView() |
|
53 { |
|
54 // not stubbed |
|
55 VideoListViewData::mInitializeViewCount++; |
|
56 return 0; |
|
57 } |
|
58 |
|
59 void VideoListView::titleReadySlot(const QString& title) |
|
60 { |
|
61 Q_UNUSED(title); |
|
62 // not stubbed |
|
63 } |
|
64 |
|
65 int VideoListView::activateView(TMPXItemId &itemId) |
|
66 { |
|
67 Q_UNUSED(itemId); |
|
68 |
|
69 VideoListViewData::mActivatedItemId = itemId; |
|
70 VideoListViewData::mActivateViewCount++; |
|
71 return 0; |
|
72 } |
|
73 |
|
74 void VideoListView::modelReadySlot() |
|
75 { |
|
76 // not stubbed |
|
77 } |
|
78 |
|
79 void VideoListView::albumListReadySlot() |
|
80 { |
|
81 // not stubbed |
|
82 } |
|
83 |
|
84 void VideoListView::layoutChangedSlot() |
|
85 { |
|
86 // not stubbed |
|
87 } |
|
88 |
|
89 void VideoListView::deactivateView() |
|
90 { |
|
91 VideoListViewData::mDeactivateViewCount++; |
|
92 } |
|
93 |
|
94 void VideoListView::back() |
|
95 { |
|
96 VideoListViewData::mBackCount++; |
|
97 } |
|
98 |
|
99 void VideoListView::modelReady() |
|
100 { |
|
101 // not stubbed |
|
102 } |
|
103 |
|
104 void VideoListView::cleanup() |
|
105 { |
|
106 // not stubbed |
|
107 } |
|
108 |
|
109 int VideoListView::createToolbar() |
|
110 { |
|
111 // not stubbed |
|
112 return 0; |
|
113 } |
|
114 |
|
115 void VideoListView::createOperatorServicesToolbar() |
|
116 { |
|
117 // not stubbed |
|
118 } |
|
119 |
|
120 void VideoListView::loadOperatorService(int titleKey, int iconKey, int uriKey, int uidKey) |
|
121 { |
|
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 } |
|
139 |
|
140 void VideoListView::showHint(bool show) |
|
141 { |
|
142 Q_UNUSED(show); |
|
143 // not stubbed |
|
144 } |
|
145 |
|
146 void VideoListView::setHintLevel(VideoHintWidget::HintLevel level) |
|
147 { |
|
148 Q_UNUSED(level); |
|
149 // not stubbed |
|
150 } |
|
151 |
|
152 void VideoListView::updateSubLabel() |
|
153 { |
|
154 // not stubbed |
|
155 } |
|
156 |
|
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() |
|
165 { |
|
166 // not stubbed |
|
167 } |
|
168 |
|
169 void VideoListView::openCollectionViewSlot() |
|
170 { |
|
171 // not stubbed |
|
172 } |
|
173 |
|
174 void VideoListView::openOperatorServiceSlot() |
|
175 { |
|
176 // not stubbed |
|
177 } |
|
178 |
|
179 void VideoListView::startSorting() |
|
180 { |
|
181 // not stubbed |
|
182 } |
|
183 |
|
184 void VideoListView::aboutToChangeOrientationSlot() |
|
185 { |
|
186 // not stubbed |
|
187 } |
|
188 |
|
189 void VideoListView::orientationChangedSlot(Qt::Orientation orientation) |
|
190 { |
|
191 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 |
|
223 } |
|
224 |
|
225 void VideoListView::handleAsyncStatusSlot(int statusCode, QVariant &additional) |
|
226 { |
|
227 Q_UNUSED(statusCode); |
|
228 Q_UNUSED(additional); |
|
229 // not stubbed |
|
230 } |
|
231 |
|
232 void VideoListView::collectionOpenedSlot(bool collectionOpened, |
|
233 const QString& collection, |
|
234 const TMPXItemId &id) |
|
235 { |
|
236 Q_UNUSED(collectionOpened); |
|
237 Q_UNUSED(collection); |
|
238 Q_UNUSED(id); |
|
239 // not stubbed |
|
240 } |
|
241 |
|
242 void VideoListView::objectReadySlot(QObject *object, const QString &name) |
|
243 { |
|
244 Q_UNUSED(object); |
|
245 Q_UNUSED(name); |
|
246 // not stubbed |
|
247 } |
|
248 |
|
249 void VideoListView::doSorting(int value) |
|
250 { |
|
251 Q_UNUSED(value); |
|
252 } |
|
253 |
|
254 void VideoListView::doDelayedsSlot() |
|
255 { |
|
256 // not stubbed |
|
257 } |
|
258 |
|
259 void VideoListView::debugNotImplementedYet() |
|
260 { |
|
261 // not stubbed |
|
262 } |
|
263 |
|
264 // end of file |