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 <smcmockclassincludes.h> |
|
18 #include "hbnotificationdialog.h" |
|
19 #include <qgraphicsscene.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbNotificationDialog::Q_PROPERTY |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 /*Q_OBJECT HbNotificationDialog::Q_PROPERTY( |
|
28 QString text READ text WRITE setText ) Q_PROPERTY ( QString title READ title WRITE setTitle ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Hb::TextWrapping titleTextWrapping READ titleTextWrapping WRITE setTitleTextWrapping ) Q_PROPERTY ( bool sequentialShow READ isSequentialShow WRITE setSequentialShow ):HbNotificationDialog ( ) |
|
29 { |
|
30 SMC_MOCK_METHOD1( Q_OBJECT, QString text READ text WRITE setText ) Q_PROPERTY ( QString title READ title WRITE setTitle ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Hb::TextWrapping titleTextWrapping READ titleTextWrapping WRITE setTitleTextWrapping ) Q_PROPERTY ( bool sequentialShow READ isSequentialShow WRITE setSequentialShow ):HbNotificationDialog, ( ) |
|
31 }*/ |
|
32 |
|
33 HbNotificationDialog::HbNotificationDialog() //: HbDialog(*new HbNotificationDialogPrivate, 0) |
|
34 { |
|
35 } |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // HbNotificationDialog::~HbNotificationDialog |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 HbNotificationDialog::~HbNotificationDialog( ) |
|
43 { |
|
44 //SMC_MOCK_METHOD0( void ) |
|
45 } |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // HbNotificationDialog::launchDialog |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 void HbNotificationDialog::launchDialog( |
|
53 const QString & title, |
|
54 QGraphicsScene * scene ) |
|
55 { |
|
56 SMC_MOCK_METHOD2( void, const QString &, title, |
|
57 QGraphicsScene *, scene ) |
|
58 } |
|
59 |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // HbNotificationDialog::launchDialog |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 void HbNotificationDialog::launchDialog( |
|
66 const QString & title, |
|
67 const QString & text, |
|
68 QGraphicsScene * scene ) |
|
69 { |
|
70 SMC_MOCK_METHOD3( void, const QString &, title, |
|
71 const QString &, text, |
|
72 QGraphicsScene *, scene ) |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // HbNotificationDialog::launchDialog |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 void HbNotificationDialog::launchDialog( |
|
81 const HbIcon & icon, |
|
82 const QString & title, |
|
83 const QString & text, |
|
84 QGraphicsScene * scene ) |
|
85 { |
|
86 SMC_MOCK_METHOD4( void, const HbIcon &, icon, |
|
87 const QString &, title, |
|
88 const QString &, text, |
|
89 QGraphicsScene *, scene ) |
|
90 } |
|
91 |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // HbNotificationDialog::enableTouchActivation |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 void HbNotificationDialog::enableTouchActivation( |
|
98 bool enabled ) |
|
99 { |
|
100 SMC_MOCK_METHOD1( void, bool, enabled ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // HbNotificationDialog::isTouchActivating |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 bool HbNotificationDialog::isTouchActivating( ) const |
|
109 { |
|
110 SMC_MOCK_METHOD0( bool ) |
|
111 } |
|
112 |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // HbNotificationDialog::setTitle |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 void HbNotificationDialog::setTitle( |
|
119 const QString & text ) |
|
120 { |
|
121 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
122 } |
|
123 |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // HbNotificationDialog::setText |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 void HbNotificationDialog::setText( |
|
130 const QString & text ) |
|
131 { |
|
132 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
133 } |
|
134 |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 // HbNotificationDialog::setIcon |
|
138 // ----------------------------------------------------------------------------- |
|
139 // |
|
140 void HbNotificationDialog::setIcon( |
|
141 const HbIcon & icon ) |
|
142 { |
|
143 SMC_MOCK_METHOD1( void, const HbIcon &, icon ) |
|
144 } |
|
145 |
|
146 |
|
147 // ----------------------------------------------------------------------------- |
|
148 // HbNotificationDialog::title |
|
149 // ----------------------------------------------------------------------------- |
|
150 // |
|
151 QString HbNotificationDialog::title( ) const |
|
152 { |
|
153 SMC_MOCK_METHOD0( QString ) |
|
154 } |
|
155 |
|
156 |
|
157 // ----------------------------------------------------------------------------- |
|
158 // HbNotificationDialog::text |
|
159 // ----------------------------------------------------------------------------- |
|
160 // |
|
161 QString HbNotificationDialog::text( ) const |
|
162 { |
|
163 SMC_MOCK_METHOD0( QString ) |
|
164 } |
|
165 |
|
166 |
|
167 // ----------------------------------------------------------------------------- |
|
168 // HbNotificationDialog::icon |
|
169 // ----------------------------------------------------------------------------- |
|
170 // |
|
171 HbIcon HbNotificationDialog::icon( ) const |
|
172 { |
|
173 SMC_MOCK_METHOD0( HbIcon ) |
|
174 } |
|
175 |
|
176 |
|
177 // ----------------------------------------------------------------------------- |
|
178 // HbNotificationDialog::setTitleTextWrapping |
|
179 // ----------------------------------------------------------------------------- |
|
180 // |
|
181 void HbNotificationDialog::setTitleTextWrapping( |
|
182 Hb::TextWrapping wrapping ) |
|
183 { |
|
184 SMC_MOCK_METHOD1( void, Hb::TextWrapping, wrapping ) |
|
185 } |
|
186 |
|
187 |
|
188 // ----------------------------------------------------------------------------- |
|
189 // HbNotificationDialog::titleTextWrapping |
|
190 // ----------------------------------------------------------------------------- |
|
191 // |
|
192 Hb::TextWrapping HbNotificationDialog::titleTextWrapping( ) const |
|
193 { |
|
194 SMC_MOCK_METHOD0( Hb::TextWrapping ) |
|
195 } |
|
196 |
|
197 |
|
198 // ----------------------------------------------------------------------------- |
|
199 // HbNotificationDialog::setSequentialShow |
|
200 // ----------------------------------------------------------------------------- |
|
201 // |
|
202 void HbNotificationDialog::setSequentialShow( |
|
203 bool sequential ) |
|
204 { |
|
205 SMC_MOCK_METHOD1( void, bool, sequential ) |
|
206 } |
|
207 |
|
208 |
|
209 // ----------------------------------------------------------------------------- |
|
210 // HbNotificationDialog::isSequentialShow |
|
211 // ----------------------------------------------------------------------------- |
|
212 // |
|
213 bool HbNotificationDialog::isSequentialShow( ) const |
|
214 { |
|
215 SMC_MOCK_METHOD0( bool ) |
|
216 } |
|
217 |
|
218 // ----------------------------------------------------------------------------- |
|
219 // HbNotificationDialog::primitive |
|
220 // ----------------------------------------------------------------------------- |
|
221 // |
|
222 QGraphicsItem * HbNotificationDialog::primitive( |
|
223 const QString & itemName ) const |
|
224 { |
|
225 SMC_MOCK_METHOD1( QGraphicsItem *, const QString &, itemName ) |
|
226 } |
|
227 |
|
228 // ----------------------------------------------------------------------------- |
|
229 // HbNotificationDialog::HbNotificationDialog |
|
230 // ----------------------------------------------------------------------------- |
|
231 // |
|
232 /*void*/ HbNotificationDialog::HbNotificationDialog( |
|
233 HbNotificationDialogPrivate & dd, |
|
234 QGraphicsItem * parent ) |
|
235 { |
|
236 Q_UNUSED(dd) |
|
237 Q_UNUSED(parent) |
|
238 //SMC_MOCK_METHOD2( void, HbNotificationDialogPrivate &, dd, |
|
239 // QGraphicsItem *, parent ) |
|
240 } |
|
241 |
|
242 |
|
243 // ----------------------------------------------------------------------------- |
|
244 // HbNotificationDialog::gestureEvent |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 void HbNotificationDialog::gestureEvent( |
|
248 QGestureEvent * event ) |
|
249 { |
|
250 SMC_MOCK_METHOD1( void, QGestureEvent *, event ) |
|
251 } |
|
252 |
|
253 |
|
254 // ----------------------------------------------------------------------------- |
|
255 // HbNotificationDialog::hideEvent |
|
256 // ----------------------------------------------------------------------------- |
|
257 // |
|
258 void HbNotificationDialog::hideEvent( |
|
259 QHideEvent * event ) |
|
260 { |
|
261 SMC_MOCK_METHOD1( void, QHideEvent *, event ) |
|
262 } |
|
263 |
|
264 |
|
265 // ----------------------------------------------------------------------------- |
|
266 // HbNotificationDialog::showEvent |
|
267 // ----------------------------------------------------------------------------- |
|
268 // |
|
269 void HbNotificationDialog::showEvent( |
|
270 QShowEvent * event ) |
|
271 { |
|
272 SMC_MOCK_METHOD1( void, QShowEvent *, event ) |
|
273 } |
|
274 |
|
275 |
|
276 // ----------------------------------------------------------------------------- |
|
277 // HbNotificationDialog::itemChange |
|
278 // ----------------------------------------------------------------------------- |
|
279 // |
|
280 QVariant HbNotificationDialog::itemChange( |
|
281 GraphicsItemChange change, |
|
282 const QVariant & value ) |
|
283 { |
|
284 SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, |
|
285 const QVariant &, value ) |
|
286 } |
|
287 |
|
288 |
|
289 // ----------------------------------------------------------------------------- |
|
290 // HbNotificationDialog::orientationChanged |
|
291 // ----------------------------------------------------------------------------- |
|
292 // |
|
293 void HbNotificationDialog::orientationChanged(Qt::Orientation orientation) |
|
294 { |
|
295 SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) |
|
296 } |
|