|
1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 * All rights reserved. |
|
3 * This component and the accompanying materials are made available |
|
4 * under the terms of "Eclipse Public License v1.0" |
|
5 * which accompanies this distribution, and is available |
|
6 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * |
|
15 */ |
|
16 #include <QDebug> |
|
17 #include <QBitmap> |
|
18 #include <QPainter> |
|
19 #include <QGraphicsItem> |
|
20 #include <smcmockclassincludes.h> |
|
21 #include <hbframedrawer.h> |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // HbFrameDrawer::HbFrameDrawer |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 HbFrameDrawer::HbFrameDrawer( |
|
30 bool /*cacheFlag*/ ) |
|
31 { |
|
32 } |
|
33 |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // HbFrameDrawer::HbFrameDrawer |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 HbFrameDrawer::HbFrameDrawer( |
|
40 const QString & /*frameGraphicsName*/, |
|
41 FrameType /*type*/, |
|
42 bool /*cacheFlag*/ ) |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // HbFrameDrawer::~HbFrameDrawer |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 HbFrameDrawer::~HbFrameDrawer( ) |
|
52 { |
|
53 } |
|
54 |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // HbFrameDrawer::isNull |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 bool HbFrameDrawer::isNull( ) const |
|
61 { |
|
62 SMC_MOCK_METHOD0( bool ) |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // HbFrameDrawer::frameGraphicsName |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 QString HbFrameDrawer::frameGraphicsName( ) const |
|
71 { |
|
72 SMC_MOCK_METHOD0( QString ) |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // HbFrameDrawer::setFrameGraphicsName |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 void HbFrameDrawer::setFrameGraphicsName( |
|
81 const QString & frameGraphicsName ) |
|
82 { |
|
83 SMC_MOCK_METHOD1( void, const QString &, frameGraphicsName ) |
|
84 } |
|
85 |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // HbFrameDrawer::frameType |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 HbFrameDrawer::FrameType HbFrameDrawer::frameType() const |
|
92 { |
|
93 SMC_MOCK_METHOD0( FrameType ) |
|
94 } |
|
95 |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // HbFrameDrawer::setFrameType |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 void HbFrameDrawer::setFrameType( |
|
102 HbFrameDrawer::FrameType type ) |
|
103 { |
|
104 SMC_MOCK_METHOD1( void, FrameType, type ) |
|
105 } |
|
106 |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // HbFrameDrawer::borderWidths |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void HbFrameDrawer::borderWidths( |
|
113 qreal & left, |
|
114 qreal & top, |
|
115 qreal & right, |
|
116 qreal & bottom ) const |
|
117 { |
|
118 SMC_MOCK_METHOD4( void, qreal &, left, |
|
119 qreal &, top, |
|
120 qreal &, right, |
|
121 qreal &, bottom ) |
|
122 } |
|
123 |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // HbFrameDrawer::setBorderWidths |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 void HbFrameDrawer::setBorderWidths( |
|
130 const qreal left, |
|
131 const qreal top, |
|
132 const qreal right, |
|
133 const qreal bottom ) |
|
134 { |
|
135 SMC_MOCK_METHOD4( void, const qreal, left, |
|
136 const qreal, top, |
|
137 const qreal, right, |
|
138 const qreal, bottom ) |
|
139 } |
|
140 |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // HbFrameDrawer::setBorderWidths |
|
144 // ----------------------------------------------------------------------------- |
|
145 // |
|
146 void HbFrameDrawer::setBorderWidths( |
|
147 const qreal horizontal, |
|
148 const qreal vertical ) |
|
149 { |
|
150 SMC_MOCK_METHOD2( void, const qreal, horizontal, |
|
151 const qreal, vertical ) |
|
152 } |
|
153 |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // HbFrameDrawer::setBorderWidth |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 void HbFrameDrawer::setBorderWidth( |
|
160 const qreal width ) |
|
161 { |
|
162 SMC_MOCK_METHOD1( void, const qreal, width ) |
|
163 } |
|
164 |
|
165 |
|
166 // ----------------------------------------------------------------------------- |
|
167 // HbFrameDrawer::fillWholeRect |
|
168 // ----------------------------------------------------------------------------- |
|
169 // |
|
170 bool HbFrameDrawer::fillWholeRect( ) const |
|
171 { |
|
172 SMC_MOCK_METHOD0( bool ) |
|
173 } |
|
174 |
|
175 |
|
176 // ----------------------------------------------------------------------------- |
|
177 // HbFrameDrawer::setFillWholeRect |
|
178 // ----------------------------------------------------------------------------- |
|
179 // |
|
180 void HbFrameDrawer::setFillWholeRect( |
|
181 bool fill ) |
|
182 { |
|
183 SMC_MOCK_METHOD1( void, bool, fill ) |
|
184 } |
|
185 |
|
186 |
|
187 // ----------------------------------------------------------------------------- |
|
188 // HbFrameDrawer::mirroringMode |
|
189 // ----------------------------------------------------------------------------- |
|
190 // |
|
191 HbIcon::MirroringMode HbFrameDrawer::mirroringMode( ) const |
|
192 { |
|
193 SMC_MOCK_METHOD0( HbIcon::MirroringMode ) |
|
194 } |
|
195 |
|
196 |
|
197 // ----------------------------------------------------------------------------- |
|
198 // HbFrameDrawer::setMirroringMode |
|
199 // ----------------------------------------------------------------------------- |
|
200 // |
|
201 void HbFrameDrawer::setMirroringMode( |
|
202 HbIcon::MirroringMode mode ) |
|
203 { |
|
204 SMC_MOCK_METHOD1( void, HbIcon::MirroringMode, mode ) |
|
205 } |
|
206 |
|
207 |
|
208 // ----------------------------------------------------------------------------- |
|
209 // HbFrameDrawer::fileNameSuffixList |
|
210 // ----------------------------------------------------------------------------- |
|
211 // |
|
212 QStringList HbFrameDrawer::fileNameSuffixList( ) const |
|
213 { |
|
214 SMC_MOCK_METHOD0( QStringList ) |
|
215 } |
|
216 |
|
217 |
|
218 // ----------------------------------------------------------------------------- |
|
219 // HbFrameDrawer::setFileNameSuffixList |
|
220 // ----------------------------------------------------------------------------- |
|
221 // |
|
222 void HbFrameDrawer::setFileNameSuffixList( |
|
223 const QStringList & list ) |
|
224 { |
|
225 SMC_MOCK_METHOD1( void, const QStringList &, list ) |
|
226 } |
|
227 |
|
228 |
|
229 // ----------------------------------------------------------------------------- |
|
230 // HbFrameDrawer::setMask |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 void HbFrameDrawer::setMask( |
|
234 const QPixmap & mask ) |
|
235 { |
|
236 SMC_MOCK_METHOD1( void, const QPixmap &, mask ) |
|
237 } |
|
238 |
|
239 |
|
240 // ----------------------------------------------------------------------------- |
|
241 // HbFrameDrawer::setMask |
|
242 // ----------------------------------------------------------------------------- |
|
243 // |
|
244 void HbFrameDrawer::setMask( |
|
245 const QBitmap & mask ) |
|
246 { |
|
247 SMC_MOCK_METHOD1( void, const QBitmap &, mask ) |
|
248 } |
|
249 |
|
250 |
|
251 // ----------------------------------------------------------------------------- |
|
252 // HbFrameDrawer::mask |
|
253 // ----------------------------------------------------------------------------- |
|
254 // |
|
255 QPixmap HbFrameDrawer::mask( ) const |
|
256 { |
|
257 SMC_MOCK_METHOD0( QPixmap ) |
|
258 } |
|
259 |
|
260 |
|
261 // ----------------------------------------------------------------------------- |
|
262 // HbFrameDrawer::maskBitmap |
|
263 // ----------------------------------------------------------------------------- |
|
264 // |
|
265 QBitmap HbFrameDrawer::maskBitmap( ) const |
|
266 { |
|
267 SMC_MOCK_METHOD0( QBitmap ) |
|
268 } |
|
269 |
|
270 |
|
271 // ----------------------------------------------------------------------------- |
|
272 // HbFrameDrawer::frameSize |
|
273 // ----------------------------------------------------------------------------- |
|
274 // |
|
275 QSize HbFrameDrawer::frameSize( ) const |
|
276 { |
|
277 SMC_MOCK_METHOD0( QSize ) |
|
278 } |
|
279 |
|
280 |
|
281 // ----------------------------------------------------------------------------- |
|
282 // HbFrameDrawer::themeChanged |
|
283 // ----------------------------------------------------------------------------- |
|
284 // |
|
285 void HbFrameDrawer::themeChanged( ) |
|
286 { |
|
287 SMC_MOCK_METHOD0( void ) |
|
288 } |
|
289 |
|
290 |
|
291 // ----------------------------------------------------------------------------- |
|
292 // HbFrameDrawer::setLayoutDirection |
|
293 // ----------------------------------------------------------------------------- |
|
294 // |
|
295 void HbFrameDrawer::setLayoutDirection( |
|
296 Qt::LayoutDirection direction ) |
|
297 { |
|
298 SMC_MOCK_METHOD1( void, Qt::LayoutDirection, direction ) |
|
299 } |
|
300 |
|
301 |
|
302 // ----------------------------------------------------------------------------- |
|
303 // HbFrameDrawer::setGraphicsItem |
|
304 // ----------------------------------------------------------------------------- |
|
305 // |
|
306 void HbFrameDrawer::setGraphicsItem( |
|
307 QGraphicsItem * item ) |
|
308 { |
|
309 SMC_MOCK_METHOD1( void, QGraphicsItem *, item ) |
|
310 } |
|
311 |
|
312 |
|
313 // ----------------------------------------------------------------------------- |
|
314 // HbFrameDrawer::paint |
|
315 // ----------------------------------------------------------------------------- |
|
316 // |
|
317 void HbFrameDrawer::paint( |
|
318 QPainter * painter, |
|
319 const QRectF & rect ) const |
|
320 { |
|
321 SMC_MOCK_METHOD2( void, QPainter *, painter, |
|
322 const QRectF &, rect ) |
|
323 } |
|
324 |
|
325 |
|
326 // ----------------------------------------------------------------------------- |
|
327 // HbFrameDrawer::rect |
|
328 // ----------------------------------------------------------------------------- |
|
329 // |
|
330 QRectF HbFrameDrawer::rect( ) const |
|
331 { |
|
332 SMC_MOCK_METHOD0( QRectF ) |
|
333 } |
|
334 |
|
335 |
|
336 // ----------------------------------------------------------------------------- |
|
337 // HbFrameDrawer::setRect |
|
338 // ----------------------------------------------------------------------------- |
|
339 // |
|
340 void HbFrameDrawer::setRect( |
|
341 const QRectF & rect ) |
|
342 { |
|
343 SMC_MOCK_METHOD1( void, const QRectF &, rect ) |
|
344 } |
|
345 |
|
346 |