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: |
|
15 * |
|
16 */ |
|
17 #include <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include "hbdataform.h" |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbDataForm::HbDataForm |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 HbAbstractItemViewPrivate* temp(NULL); |
|
28 HbAbstractItemContainer* temp2(NULL); |
|
29 |
|
30 HbDataForm::HbDataForm( |
|
31 HbDataFormPrivate & /*dd*/, |
|
32 HbAbstractItemContainer * /*container*/, |
|
33 QGraphicsItem * parent ) : HbAbstractItemView( *temp, temp2, parent) |
|
34 { |
|
35 |
|
36 } |
|
37 |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // HbDataForm::Q_PROPERTY |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 /* |
|
44 void HbDataForm::Q_PROPERTY( |
|
45 QString heading READ heading WRITE setHeading ) Q_PROPERTY ( QString description READ description WRITE setDescription ):HbDataForm ( QGraphicsItem * parent ) |
|
46 { |
|
47 SMC_MOCK_METHOD1( void, QString heading READ heading WRITE setHeading ) Q_PROPERTY ( QString description READ description WRITE setDescription ):HbDataForm ( QGraphicsItem *, parent ) |
|
48 } |
|
49 */ |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // HbDataForm::~HbDataForm |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 HbDataForm::~HbDataForm( ) |
|
56 { |
|
57 |
|
58 } |
|
59 |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // HbDataForm::type |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 /* |
|
66 int HbDataForm::type( ) const |
|
67 { |
|
68 SMC_MOCK_METHOD0( int ) |
|
69 }*/ |
|
70 |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // HbDataForm::scrollTo |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 void HbDataForm::scrollTo( |
|
77 const QModelIndex & index, |
|
78 ScrollHint hint ) |
|
79 { |
|
80 // SMC_MOCK_METHOD2( void, const QModelIndex &, index, |
|
81 // ScrollHint, hint ) |
|
82 } |
|
83 |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // HbDataForm::indexCount |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 int HbDataForm::indexCount( ) const |
|
90 { |
|
91 SMC_MOCK_METHOD0( int ) |
|
92 } |
|
93 |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // HbDataForm::nextIndex |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 QModelIndex HbDataForm::nextIndex( |
|
100 const QModelIndex & index ) const |
|
101 { |
|
102 // SMC_MOCK_METHOD1( QModelIndex, const QModelIndex &, index ) |
|
103 } |
|
104 |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // HbDataForm::previousIndex |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 QModelIndex HbDataForm::previousIndex( |
|
111 const QModelIndex & index ) const |
|
112 { |
|
113 // SMC_MOCK_METHOD1( QModelIndex, const QModelIndex &, index ) |
|
114 } |
|
115 |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // HbDataForm::setExpanded |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 void HbDataForm::setExpanded( |
|
122 const QModelIndex & index, |
|
123 bool expanded ) |
|
124 { |
|
125 // SMC_MOCK_METHOD2( void, const QModelIndex &, index, |
|
126 // bool, expanded ) |
|
127 } |
|
128 |
|
129 |
|
130 // ----------------------------------------------------------------------------- |
|
131 // HbDataForm::isExpanded |
|
132 // ----------------------------------------------------------------------------- |
|
133 // |
|
134 bool HbDataForm::isExpanded( |
|
135 const QModelIndex & index ) const |
|
136 { |
|
137 // SMC_MOCK_METHOD1( bool, const QModelIndex &, index ) |
|
138 } |
|
139 |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // HbDataForm::setHeading |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 void HbDataForm::setHeading( |
|
146 const QString & heading ) |
|
147 { |
|
148 SMC_MOCK_METHOD1( void, const QString &, heading ) |
|
149 } |
|
150 |
|
151 |
|
152 // ----------------------------------------------------------------------------- |
|
153 // HbDataForm::heading |
|
154 // ----------------------------------------------------------------------------- |
|
155 // |
|
156 QString HbDataForm::heading( ) const |
|
157 { |
|
158 SMC_MOCK_METHOD0( QString ) |
|
159 } |
|
160 |
|
161 |
|
162 // ----------------------------------------------------------------------------- |
|
163 // HbDataForm::setDescription |
|
164 // ----------------------------------------------------------------------------- |
|
165 // |
|
166 void HbDataForm::setDescription( |
|
167 const QString & description ) |
|
168 { |
|
169 SMC_MOCK_METHOD1( void, const QString &, description ) |
|
170 } |
|
171 |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // HbDataForm::description |
|
175 // ----------------------------------------------------------------------------- |
|
176 // |
|
177 QString HbDataForm::description( ) const |
|
178 { |
|
179 SMC_MOCK_METHOD0( QString ) |
|
180 } |
|
181 |
|
182 |
|
183 // ----------------------------------------------------------------------------- |
|
184 // HbDataForm::primitive |
|
185 // ----------------------------------------------------------------------------- |
|
186 // |
|
187 QGraphicsItem * HbDataForm::primitive( |
|
188 HbStyle::Primitive primitive ) const |
|
189 { |
|
190 // SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) |
|
191 } |
|
192 |
|
193 |
|
194 // ----------------------------------------------------------------------------- |
|
195 // HbDataForm::dataFormViewItem |
|
196 // ----------------------------------------------------------------------------- |
|
197 // |
|
198 HbDataFormViewItem * HbDataForm::dataFormViewItem( |
|
199 const QModelIndex & index ) const |
|
200 { |
|
201 // SMC_MOCK_METHOD1( HbDataFormViewItem *, const QModelIndex &, index ) |
|
202 } |
|
203 |
|
204 |
|
205 // ----------------------------------------------------------------------------- |
|
206 // HbDataForm::setModel |
|
207 // ----------------------------------------------------------------------------- |
|
208 // |
|
209 void HbDataForm::setModel( |
|
210 QAbstractItemModel * model, |
|
211 HbAbstractViewItem * prototype ) |
|
212 { |
|
213 // SMC_MOCK_METHOD2( void, QAbstractItemModel *, model, |
|
214 // HbAbstractViewItem *, prototype ) |
|
215 } |
|
216 |
|
217 |
|
218 // ----------------------------------------------------------------------------- |
|
219 // HbDataForm::addConnection |
|
220 // ----------------------------------------------------------------------------- |
|
221 // |
|
222 void HbDataForm::addConnection( |
|
223 HbDataFormModelItem * item, |
|
224 const char * signal, |
|
225 QObject * receiver, |
|
226 const char * slot ) |
|
227 { |
|
228 /* SMC_MOCK_METHOD4( void, HbDataFormModelItem *, item, |
|
229 const char *, signal, |
|
230 QObject *, receiver, |
|
231 const char *, slot ) |
|
232 */ } |
|
233 |
|
234 |
|
235 // ----------------------------------------------------------------------------- |
|
236 // HbDataForm::removeConnection |
|
237 // ----------------------------------------------------------------------------- |
|
238 // |
|
239 void HbDataForm::removeConnection( |
|
240 HbDataFormModelItem * item, |
|
241 const char * signal, |
|
242 QObject * receiver, |
|
243 const char * slot ) |
|
244 { |
|
245 /* SMC_MOCK_METHOD4( void, HbDataFormModelItem *, item, |
|
246 const char *, signal, |
|
247 QObject *, receiver, |
|
248 const char *, slot ) |
|
249 */ } |
|
250 |
|
251 |
|
252 // ----------------------------------------------------------------------------- |
|
253 // HbDataForm::removeAllConnection |
|
254 // ----------------------------------------------------------------------------- |
|
255 // |
|
256 void HbDataForm::removeAllConnection( ) |
|
257 { |
|
258 SMC_MOCK_METHOD0( void ) |
|
259 } |
|
260 |
|
261 |
|
262 // ----------------------------------------------------------------------------- |
|
263 // HbDataForm::removeAllConnection |
|
264 // ----------------------------------------------------------------------------- |
|
265 // |
|
266 void HbDataForm::removeAllConnection( |
|
267 HbDataFormModelItem * item ) |
|
268 { |
|
269 // SMC_MOCK_METHOD1( void, HbDataFormModelItem *, item ) |
|
270 } |
|
271 |
|
272 |
|
273 // ----------------------------------------------------------------------------- |
|
274 // HbDataForm::loadSettings |
|
275 // ----------------------------------------------------------------------------- |
|
276 // |
|
277 void HbDataForm::loadSettings( ) |
|
278 { |
|
279 SMC_MOCK_METHOD0( void ) |
|
280 } |
|
281 |
|
282 |
|
283 // ----------------------------------------------------------------------------- |
|
284 // HbDataForm::storeSettings |
|
285 // ----------------------------------------------------------------------------- |
|
286 // |
|
287 void HbDataForm::storeSettings( ) |
|
288 { |
|
289 SMC_MOCK_METHOD0( void ) |
|
290 } |
|
291 |
|
292 |
|
293 // ----------------------------------------------------------------------------- |
|
294 // HbDataForm::itemShown |
|
295 // ----------------------------------------------------------------------------- |
|
296 // |
|
297 void HbDataForm::itemShown( |
|
298 const QModelIndex & index ) |
|
299 { |
|
300 // SMC_MOCK_METHOD1( void, const QModelIndex &, index ) |
|
301 } |
|
302 |
|
303 |
|
304 // ----------------------------------------------------------------------------- |
|
305 // HbDataForm::rowsInserted |
|
306 // ----------------------------------------------------------------------------- |
|
307 // |
|
308 void HbDataForm::rowsInserted( |
|
309 const QModelIndex & parent, |
|
310 int start, |
|
311 int end ) |
|
312 { |
|
313 // SMC_MOCK_METHOD3( void, const QModelIndex &, parent, |
|
314 // int, start, |
|
315 // int, end ) |
|
316 } |
|
317 |
|
318 |
|
319 // ----------------------------------------------------------------------------- |
|
320 // HbDataForm::rowsAboutToBeRemoved |
|
321 // ----------------------------------------------------------------------------- |
|
322 // |
|
323 void HbDataForm::rowsAboutToBeRemoved( |
|
324 const QModelIndex & index, |
|
325 int start, |
|
326 int end ) |
|
327 { |
|
328 // SMC_MOCK_METHOD3( void, const QModelIndex &, index, |
|
329 // int, start, |
|
330 // int, end ) |
|
331 } |
|
332 |
|
333 |
|
334 // ----------------------------------------------------------------------------- |
|
335 // HbDataForm::dataChanged |
|
336 // ----------------------------------------------------------------------------- |
|
337 // |
|
338 void HbDataForm::dataChanged( |
|
339 const QModelIndex & topLeft, |
|
340 const QModelIndex & bottomRight ) |
|
341 { |
|
342 // SMC_MOCK_METHOD2( void, const QModelIndex &, topLeft, |
|
343 // const QModelIndex &, bottomRight ) |
|
344 } |
|
345 |
|
346 |
|
347 // ----------------------------------------------------------------------------- |
|
348 // HbDataForm::initStyleOption |
|
349 // ----------------------------------------------------------------------------- |
|
350 // |
|
351 void HbDataForm::initStyleOption( |
|
352 HbStyleOptionDataForm * option ) |
|
353 { |
|
354 // SMC_MOCK_METHOD1( void, HbStyleOptionDataForm *, option ) |
|
355 } |
|
356 |
|
357 |
|