|
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 <hbicon.h> |
|
20 |
|
21 class HbIconPrivate |
|
22 { |
|
23 public: |
|
24 HbIconPrivate(){}; |
|
25 ~HbIconPrivate(){}; |
|
26 |
|
27 QAtomicInt ref; |
|
28 }; |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // HbIcon::HbIcon |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 HbIcon::HbIcon( ) |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // HbIcon::HbIcon |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 HbIcon::HbIcon( |
|
47 const QString & /*iconName*/ ) |
|
48 { |
|
49 |
|
50 } |
|
51 |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // HbIcon::HbIcon |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 HbIcon::HbIcon( |
|
58 const QIcon & /*icon*/ ) |
|
59 { |
|
60 |
|
61 } |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // HbIcon::HbIcon |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 HbIcon::HbIcon( |
|
69 const HbIcon & /*other*/ ) |
|
70 { |
|
71 |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // HbIcon::~HbIcon |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 HbIcon::~HbIcon( ) |
|
79 { |
|
80 |
|
81 } |
|
82 |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // HbIcon::isNull |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 bool HbIcon::isNull( ) const |
|
89 { |
|
90 SMC_MOCK_METHOD0( bool ) |
|
91 } |
|
92 |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // HbIcon::isBadged |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 bool HbIcon::isBadged( ) const |
|
99 { |
|
100 SMC_MOCK_METHOD0( bool ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // HbIcon::clear |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void HbIcon::clear( ) |
|
109 { |
|
110 SMC_MOCK_METHOD0( void ) |
|
111 } |
|
112 |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // HbIcon::pixmap |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 QPixmap HbIcon::pixmap( ) |
|
119 { |
|
120 // SMC_MOCK_METHOD0( QPixmap ) |
|
121 } |
|
122 |
|
123 |
|
124 // ----------------------------------------------------------------------------- |
|
125 // HbIcon::setColor |
|
126 // ----------------------------------------------------------------------------- |
|
127 // |
|
128 void HbIcon::setColor( |
|
129 const QColor & /*color*/ ) |
|
130 { |
|
131 // SMC_MOCK_METHOD1( void, const QColor &, color ) |
|
132 } |
|
133 |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // HbIcon::color |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 QColor HbIcon::color( ) const |
|
140 { |
|
141 // SMC_MOCK_METHOD0( QColor ) |
|
142 } |
|
143 |
|
144 |
|
145 // ----------------------------------------------------------------------------- |
|
146 // HbIcon::iconName |
|
147 // ----------------------------------------------------------------------------- |
|
148 // |
|
149 QString HbIcon::iconName( ) const |
|
150 { |
|
151 SMC_MOCK_METHOD0( QString ) |
|
152 } |
|
153 |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // HbIcon::setIconName |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 void HbIcon::setIconName( |
|
160 const QString & iconName ) |
|
161 { |
|
162 SMC_MOCK_METHOD1( void, const QString &, iconName ) |
|
163 } |
|
164 |
|
165 |
|
166 // ----------------------------------------------------------------------------- |
|
167 // HbIcon::iconName |
|
168 // ----------------------------------------------------------------------------- |
|
169 // |
|
170 QString HbIcon::iconName( |
|
171 QIcon::Mode /*mode*/, |
|
172 QIcon::State /*state*/ ) const |
|
173 { |
|
174 // SMC_MOCK_METHOD2( QString, QIcon::Mode, mode, |
|
175 // QIcon::State, state ) |
|
176 } |
|
177 |
|
178 |
|
179 // ----------------------------------------------------------------------------- |
|
180 // HbIcon::setIconName |
|
181 // ----------------------------------------------------------------------------- |
|
182 // |
|
183 void HbIcon::setIconName( |
|
184 const QString & /*iconName*/, |
|
185 QIcon::Mode /*mode*/, |
|
186 QIcon::State /*state*/ ) |
|
187 { |
|
188 // SMC_MOCK_METHOD3( void, const QString &, iconName, |
|
189 // QIcon::Mode, mode, |
|
190 // QIcon::State, state ) |
|
191 } |
|
192 |
|
193 |
|
194 // ----------------------------------------------------------------------------- |
|
195 // HbIcon::defaultSize |
|
196 // ----------------------------------------------------------------------------- |
|
197 // |
|
198 QSizeF HbIcon::defaultSize( ) const |
|
199 { |
|
200 // SMC_MOCK_METHOD0( QSizeF ) |
|
201 } |
|
202 |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
|
205 // HbIcon::size |
|
206 // ----------------------------------------------------------------------------- |
|
207 // |
|
208 QSizeF HbIcon::size( ) const |
|
209 { |
|
210 // SMC_MOCK_METHOD0( QSizeF ) |
|
211 } |
|
212 |
|
213 |
|
214 // ----------------------------------------------------------------------------- |
|
215 // HbIcon::setSize |
|
216 // ----------------------------------------------------------------------------- |
|
217 // |
|
218 void HbIcon::setSize( |
|
219 const QSizeF & /*size*/ ) |
|
220 { |
|
221 // SMC_MOCK_METHOD1( void, const QSizeF &, size ) |
|
222 } |
|
223 |
|
224 |
|
225 // ----------------------------------------------------------------------------- |
|
226 // HbIcon::setHeight |
|
227 // ----------------------------------------------------------------------------- |
|
228 // |
|
229 void HbIcon::setHeight( |
|
230 qreal /*height*/ ) |
|
231 { |
|
232 // SMC_MOCK_METHOD1( void, qreal, height ) |
|
233 } |
|
234 |
|
235 |
|
236 // ----------------------------------------------------------------------------- |
|
237 // HbIcon::setWidth |
|
238 // ----------------------------------------------------------------------------- |
|
239 // |
|
240 void HbIcon::setWidth( |
|
241 qreal /*width*/ ) |
|
242 { |
|
243 // SMC_MOCK_METHOD1( void, qreal, width ) |
|
244 } |
|
245 |
|
246 |
|
247 // ----------------------------------------------------------------------------- |
|
248 // HbIcon::width |
|
249 // ----------------------------------------------------------------------------- |
|
250 // |
|
251 qreal HbIcon::width( ) const |
|
252 { |
|
253 // SMC_MOCK_METHOD0( qreal ) |
|
254 } |
|
255 |
|
256 |
|
257 // ----------------------------------------------------------------------------- |
|
258 // HbIcon::height |
|
259 // ----------------------------------------------------------------------------- |
|
260 // |
|
261 qreal HbIcon::height( ) const |
|
262 { |
|
263 // SMC_MOCK_METHOD0( qreal ) |
|
264 } |
|
265 |
|
266 |
|
267 // ----------------------------------------------------------------------------- |
|
268 // HbIcon::mirroringMode |
|
269 // ----------------------------------------------------------------------------- |
|
270 // |
|
271 HbIcon::MirroringMode HbIcon::mirroringMode( ) const |
|
272 { |
|
273 SMC_MOCK_METHOD0( MirroringMode ) |
|
274 } |
|
275 |
|
276 |
|
277 // ----------------------------------------------------------------------------- |
|
278 // HbIcon::setMirroringMode |
|
279 // ----------------------------------------------------------------------------- |
|
280 // |
|
281 void HbIcon::setMirroringMode( |
|
282 HbIcon::MirroringMode /*mode*/ ) |
|
283 { |
|
284 // SMC_MOCK_METHOD1( void, MirroringMode, mode ) |
|
285 } |
|
286 |
|
287 |
|
288 // ----------------------------------------------------------------------------- |
|
289 // HbIcon::flags |
|
290 // ----------------------------------------------------------------------------- |
|
291 // |
|
292 HbIcon::Flags HbIcon::flags( ) const |
|
293 { |
|
294 //SMC_MOCK_METHOD0( Flags ) |
|
295 } |
|
296 |
|
297 |
|
298 // ----------------------------------------------------------------------------- |
|
299 // HbIcon::setFlags |
|
300 // ----------------------------------------------------------------------------- |
|
301 // |
|
302 void HbIcon::setFlags( |
|
303 Flags /*flags*/ ) |
|
304 { |
|
305 // SMC_MOCK_METHOD1( void, Flags, flags ) |
|
306 } |
|
307 |
|
308 |
|
309 // ----------------------------------------------------------------------------- |
|
310 // HbIcon::paint |
|
311 // ----------------------------------------------------------------------------- |
|
312 // |
|
313 void HbIcon::paint( |
|
314 QPainter * /*painter*/, |
|
315 const QRectF & /*rect*/, |
|
316 Qt::AspectRatioMode /*aspectRatioMode*/, |
|
317 Qt::Alignment /*alignment*/, |
|
318 QIcon::Mode /*mode*/, |
|
319 QIcon::State /*state*/ ) const |
|
320 { |
|
321 /* SMC_MOCK_METHOD6( void, QPainter *, painter, |
|
322 const QRectF &, rect, |
|
323 Qt::AspectRatioMode, aspectRatioMode, |
|
324 Qt::Alignment, alignment, |
|
325 QIcon::Mode, mode, |
|
326 QIcon::State, state )*/ |
|
327 } |
|
328 |
|
329 |
|
330 // ----------------------------------------------------------------------------- |
|
331 // HbIcon::QVariant |
|
332 // ----------------------------------------------------------------------------- |
|
333 // |
|
334 /* |
|
335 operator HbIcon::QVariant( ) const |
|
336 { |
|
337 SMC_MOCK_METHOD0( operator ) |
|
338 } |
|
339 */ |
|
340 |
|
341 // ----------------------------------------------------------------------------- |
|
342 // HbIcon::qicon |
|
343 // ----------------------------------------------------------------------------- |
|
344 // |
|
345 QIcon & HbIcon::qicon( ) const |
|
346 { |
|
347 // SMC_MOCK_METHOD0( QIcon & ) |
|
348 } |
|
349 |
|
350 |
|
351 // ----------------------------------------------------------------------------- |
|
352 // HbIcon::addBadge |
|
353 // ----------------------------------------------------------------------------- |
|
354 // |
|
355 bool HbIcon::addBadge( |
|
356 Qt::Alignment alignment, |
|
357 const HbIcon & badge, |
|
358 int z, |
|
359 Qt::AspectRatioMode aspectRatio) |
|
360 { |
|
361 /* |
|
362 SMC_MOCK_METHOD3( bool, Qt::Alignment, alignment, |
|
363 const HbIcon &, badge, |
|
364 int, z ) |
|
365 */ |
|
366 } |
|
367 |
|
368 |
|
369 // ----------------------------------------------------------------------------- |
|
370 // HbIcon::removeBadge |
|
371 // ----------------------------------------------------------------------------- |
|
372 // |
|
373 bool HbIcon::removeBadge( |
|
374 const HbIcon & badge ) |
|
375 { |
|
376 // SMC_MOCK_METHOD1( bool, const HbIcon &, badge ) |
|
377 } |
|
378 |
|
379 |
|
380 // ----------------------------------------------------------------------------- |
|
381 // HbIcon::removeAllBadges |
|
382 // ----------------------------------------------------------------------------- |
|
383 // |
|
384 void HbIcon::removeAllBadges( ) |
|
385 { |
|
386 SMC_MOCK_METHOD0( void ) |
|
387 } |
|
388 |
|
389 |