|
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 |
|
29 VideoListView::VideoListView(VideoCollectionUiLoader *uiLoader, QGraphicsItem *parent) : |
|
30 HbView(parent), |
|
31 mUiUtils(VideoCollectionViewUtils::instance()), |
|
32 mWrapper(VideoCollectionWrapper::instance()), |
|
33 mUiLoader(uiLoader), |
|
34 mIsService(false), |
|
35 mModelReady(false), |
|
36 mVideoServices(0), |
|
37 mCurrentList(0), |
|
38 mToolbarViewsActionGroup(0), |
|
39 mToolbarCollectionActionGroup(0) |
|
40 { |
|
41 // not stubbed |
|
42 } |
|
43 |
|
44 VideoListView::~VideoListView() |
|
45 { |
|
46 // disconnect signals |
|
47 disconnect(); |
|
48 } |
|
49 |
|
50 int VideoListView::initializeView() |
|
51 { |
|
52 // not stubbed |
|
53 VideoListViewData::mInitializeViewCount++; |
|
54 return 0; |
|
55 } |
|
56 |
|
57 void VideoListView::titleReadySlot(const QString& title) |
|
58 { |
|
59 Q_UNUSED(title); |
|
60 // not stubbed |
|
61 } |
|
62 |
|
63 int VideoListView::activateView() |
|
64 { |
|
65 VideoListViewData::mActivateViewCount++; |
|
66 return 0; |
|
67 } |
|
68 |
|
69 void VideoListView::modelReadySlot() |
|
70 { |
|
71 // not stubbed |
|
72 } |
|
73 |
|
74 void VideoListView::layoutChangedSlot() |
|
75 { |
|
76 // not stubbed |
|
77 } |
|
78 |
|
79 void VideoListView::deactivateView() |
|
80 { |
|
81 VideoListViewData::mDeactivateViewCount++; |
|
82 } |
|
83 |
|
84 void VideoListView::back() |
|
85 { |
|
86 VideoListViewData::mBackCount++; |
|
87 } |
|
88 |
|
89 void VideoListView::cleanup() |
|
90 { |
|
91 // not stubbed |
|
92 } |
|
93 |
|
94 int VideoListView::createToolbar() |
|
95 { |
|
96 // not stubbed |
|
97 return 0; |
|
98 } |
|
99 |
|
100 HbAction* VideoListView::createAction(QString icon, |
|
101 QActionGroup* actionGroup, |
|
102 const char *slot) |
|
103 { |
|
104 Q_UNUSED(icon); |
|
105 Q_UNUSED(actionGroup); |
|
106 Q_UNUSED(slot); |
|
107 // not stubbed |
|
108 return 0; |
|
109 } |
|
110 |
|
111 void VideoListView::showHint(bool show) |
|
112 { |
|
113 Q_UNUSED(show); |
|
114 // not stubbed |
|
115 } |
|
116 |
|
117 void VideoListView::setHintLevel(VideoHintWidget::HintLevel level) |
|
118 { |
|
119 Q_UNUSED(level); |
|
120 // not stubbed |
|
121 } |
|
122 |
|
123 void VideoListView::updateSubLabel() |
|
124 { |
|
125 // not stubbed |
|
126 } |
|
127 |
|
128 void VideoListView::showAction(bool show, const QString &name) |
|
129 { |
|
130 Q_UNUSED(show); |
|
131 Q_UNUSED(name); |
|
132 // not stubbed |
|
133 } |
|
134 |
|
135 bool VideoListView::isActionChecked(const QString &name) |
|
136 { |
|
137 Q_UNUSED(name); |
|
138 // not stubbed |
|
139 return true; |
|
140 } |
|
141 |
|
142 void VideoListView::setActionChecked(bool setChecked, const QString &name) |
|
143 { |
|
144 Q_UNUSED(setChecked); |
|
145 Q_UNUSED(name); |
|
146 // not stubbed |
|
147 } |
|
148 |
|
149 void VideoListView::openAllVideosViewSlot() |
|
150 { |
|
151 // not stubbed |
|
152 } |
|
153 |
|
154 void VideoListView::openCollectionViewSlot() |
|
155 { |
|
156 // not stubbed |
|
157 } |
|
158 |
|
159 void VideoListView::openNewAlbumSlot(const QModelIndex &parent, |
|
160 int start, |
|
161 int end) |
|
162 { |
|
163 Q_UNUSED(parent); |
|
164 Q_UNUSED(start); |
|
165 Q_UNUSED(end); |
|
166 // not stubbed |
|
167 } |
|
168 |
|
169 void VideoListView::openServicesViewSlot() |
|
170 { |
|
171 // not stubbed |
|
172 } |
|
173 |
|
174 void VideoListView::startSorting() |
|
175 { |
|
176 // not stubbed |
|
177 } |
|
178 |
|
179 void VideoListView::aboutToChangeOrientationSlot() |
|
180 { |
|
181 // not stubbed |
|
182 } |
|
183 |
|
184 void VideoListView::orientationChangedSlot(Qt::Orientation orientation) |
|
185 { |
|
186 Q_UNUSED(orientation); |
|
187 // not stubbed |
|
188 } |
|
189 |
|
190 void VideoListView::deleteItemsSlot() |
|
191 { |
|
192 // not stubbed |
|
193 } |
|
194 |
|
195 void VideoListView::createCollectionSlot() |
|
196 { |
|
197 // not stubbed |
|
198 } |
|
199 |
|
200 void VideoListView::addVideosToCollectionSlot() |
|
201 { |
|
202 // not stubbed |
|
203 } |
|
204 |
|
205 void VideoListView::removeVideosFromCollectionSlot() |
|
206 { |
|
207 // not stubbed |
|
208 } |
|
209 |
|
210 void VideoListView::aboutToShowMainMenuSlot() |
|
211 { |
|
212 // not stubbed |
|
213 } |
|
214 |
|
215 void VideoListView::handleAsyncStatusSlot(int statusCode, QVariant &additional) |
|
216 { |
|
217 Q_UNUSED(statusCode); |
|
218 Q_UNUSED(additional); |
|
219 // not stubbed |
|
220 } |
|
221 |
|
222 void VideoListView::collectionOpenedSlot(bool collectionOpened, |
|
223 const QString& collection, |
|
224 const QModelIndex &index) |
|
225 { |
|
226 Q_UNUSED(collectionOpened); |
|
227 Q_UNUSED(collection); |
|
228 Q_UNUSED(index); |
|
229 // not stubbed |
|
230 } |
|
231 |
|
232 void VideoListView::widgetReadySlot(QGraphicsWidget *widget, const QString &name) |
|
233 { |
|
234 Q_UNUSED(widget); |
|
235 Q_UNUSED(name); |
|
236 // not stubbed |
|
237 } |
|
238 |
|
239 void VideoListView::objectReadySlot(QObject *object, const QString &name) |
|
240 { |
|
241 Q_UNUSED(object); |
|
242 Q_UNUSED(name); |
|
243 // not stubbed |
|
244 } |
|
245 |
|
246 |
|
247 void VideoListView::finishCollectionOpenedSlot(const HbEffect::EffectStatus &status) |
|
248 { |
|
249 Q_UNUSED(status); |
|
250 } |
|
251 |
|
252 void VideoListView::finishCollectionClosedSlot(const HbEffect::EffectStatus &status) |
|
253 { |
|
254 Q_UNUSED(status); |
|
255 } |
|
256 |
|
257 void VideoListView::doSorting(int value) |
|
258 { |
|
259 Q_UNUSED(value); |
|
260 } |
|
261 |
|
262 void VideoListView::doDelayedsSlot() |
|
263 { |
|
264 // not stubbed |
|
265 } |
|
266 |
|
267 void VideoListView::debugNotImplementedYet() |
|
268 { |
|
269 // not stubbed |
|
270 } |
|
271 |
|
272 // end of file |