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 "hbstyle.h" |
|
20 |
|
21 //needed for TSmcValue<HbStyleParameters &,100>Size()const |
|
22 class HbStyleParameters {}; |
|
23 //needed for TSmcValue<HbWidget *,100>Size()const |
|
24 class HbWidget {}; |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // HbStyle::HbStyle |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 HbStyle::HbStyle( ):d_ptr(NULL) |
|
33 // QObject * parent ) |
|
34 { |
|
35 // Q_UNUSED(parent); |
|
36 } |
|
37 |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // HbStyle::~HbStyle |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 HbStyle::~HbStyle( ) |
|
44 { |
|
45 |
|
46 } |
|
47 |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // HbStyle::createPrimitive |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 QGraphicsItem * HbStyle::createPrimitive( |
|
54 HbStyle::Primitive primitive, |
|
55 QGraphicsItem * parent ) const |
|
56 { |
|
57 SMC_MOCK_METHOD2( QGraphicsItem *, HbStyle::Primitive, primitive, |
|
58 QGraphicsItem *, parent ) |
|
59 } |
|
60 |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // HbStyle::updatePrimitive |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 void HbStyle::updatePrimitive( |
|
67 QGraphicsItem * item, |
|
68 HbStyle::Primitive primitive, |
|
69 const QStyleOption * option ) const |
|
70 { |
|
71 SMC_MOCK_METHOD3( void, QGraphicsItem *, item, |
|
72 HbStyle::Primitive, primitive, |
|
73 const QStyleOption *, option ) |
|
74 } |
|
75 |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // HbStyle::registerPlugin |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 int HbStyle::registerPlugin( |
|
82 const QString & pluginName ) |
|
83 { |
|
84 SMC_MOCK_METHOD1( int, const QString &, pluginName ) |
|
85 } |
|
86 |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // HbStyle::unregisterPlugin |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 void HbStyle::unregisterPlugin( |
|
93 const QString & pluginName ) |
|
94 { |
|
95 SMC_MOCK_METHOD1( void, const QString &, pluginName ) |
|
96 } |
|
97 |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // HbStyle::setItemName |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void HbStyle::setItemName( |
|
104 QGraphicsItem * item, |
|
105 const QString & name ) |
|
106 { |
|
107 SMC_MOCK_METHOD2( void, QGraphicsItem *, item, |
|
108 const QString &, name ) |
|
109 } |
|
110 |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // HbStyle::itemName |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 QString HbStyle::itemName( |
|
117 const QGraphicsItem * item ) |
|
118 { |
|
119 SMC_MOCK_METHOD1( QString, const QGraphicsItem *, item ) |
|
120 } |
|
121 |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // HbStyle::parameter |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 bool HbStyle::parameter( |
|
128 const QString & parameter, |
|
129 qreal & value, |
|
130 const HbDeviceProfile & profile ) const |
|
131 { |
|
132 SMC_MOCK_METHOD3( bool, const QString &, parameter, |
|
133 qreal &, value, |
|
134 const HbDeviceProfile &, profile ) |
|
135 } |
|
136 |
|
137 |
|
138 // ----------------------------------------------------------------------------- |
|
139 // HbStyle::parameters |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 void HbStyle::parameters( |
|
143 HbStyleParameters & parameters, |
|
144 const HbDeviceProfile & profile ) const |
|
145 { |
|
146 SMC_MOCK_METHOD2( void, HbStyleParameters &, parameters, |
|
147 const HbDeviceProfile &, profile ) |
|
148 } |
|
149 |
|
150 |
|
151 // ----------------------------------------------------------------------------- |
|
152 // HbStyle::polish |
|
153 // ----------------------------------------------------------------------------- |
|
154 // |
|
155 void HbStyle::polish( |
|
156 HbWidget * widget, |
|
157 HbStyleParameters & params ) |
|
158 { |
|
159 SMC_MOCK_METHOD2( void, HbWidget *, widget, |
|
160 HbStyleParameters &, params ) |
|
161 } |
|
162 |
|
163 |
|
164 // ----------------------------------------------------------------------------- |
|
165 // HbStyle::updateThemedParams |
|
166 // ----------------------------------------------------------------------------- |
|
167 // |
|
168 void HbStyle::updateThemedParams( |
|
169 HbWidget * widget ) |
|
170 { |
|
171 SMC_MOCK_METHOD1( void, HbWidget *, widget ) |
|
172 } |
|
173 |
|
174 |
|
175 // ----------------------------------------------------------------------------- |
|
176 // HbStyle::hasOrientationSpecificStyleRules |
|
177 // ----------------------------------------------------------------------------- |
|
178 // |
|
179 bool HbStyle::hasOrientationSpecificStyleRules( |
|
180 HbWidget * widget ) |
|
181 { |
|
182 SMC_MOCK_METHOD1( bool, HbWidget *, widget ) |
|
183 } |
|
184 |
|
185 |
|
186 // ----------------------------------------------------------------------------- |
|
187 // HbStyle::HbStyle |
|
188 // ----------------------------------------------------------------------------- |
|
189 // |
|
190 HbStyle::HbStyle( |
|
191 HbStylePrivate & dd, |
|
192 QStyle * parent ):d_ptr(NULL) |
|
193 //: |
|
194 //QObject( /*dd, parent*/ ) |
|
195 { |
|
196 Q_UNUSED(dd); |
|
197 Q_UNUSED(parent); |
|
198 } |
|
199 |
|
200 |
|