78
|
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 the License "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 <smcmockclassincludes.h>
|
|
18 |
#include <hbdeviceprofile.h>
|
|
19 |
#include <QGraphicsItem>
|
|
20 |
#include <HbMainWindow>
|
|
21 |
#include <qshareddata.h>
|
|
22 |
|
|
23 |
// NOTE! The following header include requires
|
|
24 |
// INCLUDEPATH += /sf/mw/hb/include/hbcore/private
|
|
25 |
//#include <hbdeviceprofile_p.h>
|
|
26 |
class HbDeviceProfilePrivate : public QSharedData {};
|
|
27 |
|
|
28 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
29 |
|
|
30 |
// -----------------------------------------------------------------------------
|
|
31 |
// HbDeviceProfile::HbDeviceProfile
|
|
32 |
// -----------------------------------------------------------------------------
|
|
33 |
//
|
|
34 |
HbDeviceProfile::HbDeviceProfile( )
|
|
35 |
{
|
|
36 |
//SMC_MOCK_METHOD0( void )
|
|
37 |
}
|
|
38 |
|
|
39 |
|
|
40 |
// -----------------------------------------------------------------------------
|
|
41 |
// HbDeviceProfile::HbDeviceProfile
|
|
42 |
// -----------------------------------------------------------------------------
|
|
43 |
//
|
|
44 |
HbDeviceProfile::HbDeviceProfile(
|
|
45 |
const HbDeviceProfile & /*other*/ )
|
|
46 |
{
|
|
47 |
//SMC_MOCK_METHOD1( void, const HbDeviceProfile &, other )
|
|
48 |
}
|
|
49 |
|
|
50 |
|
|
51 |
// -----------------------------------------------------------------------------
|
|
52 |
// HbDeviceProfile::HbDeviceProfile
|
|
53 |
// -----------------------------------------------------------------------------
|
|
54 |
//
|
|
55 |
HbDeviceProfile::HbDeviceProfile(
|
|
56 |
const QString & /*name*/ )
|
|
57 |
{
|
|
58 |
//SMC_MOCK_METHOD1( void, const QString &, name )
|
|
59 |
}
|
|
60 |
|
|
61 |
|
|
62 |
// -----------------------------------------------------------------------------
|
|
63 |
// HbDeviceProfile::~HbDeviceProfile
|
|
64 |
// -----------------------------------------------------------------------------
|
|
65 |
//
|
|
66 |
HbDeviceProfile::~HbDeviceProfile( )
|
|
67 |
{
|
|
68 |
//SMC_MOCK_METHOD0( void )
|
|
69 |
}
|
|
70 |
|
|
71 |
|
|
72 |
// -----------------------------------------------------------------------------
|
|
73 |
// HbDeviceProfile::=
|
|
74 |
// -----------------------------------------------------------------------------
|
|
75 |
//
|
|
76 |
HbDeviceProfile & HbDeviceProfile::operator=(
|
|
77 |
const HbDeviceProfile & other )
|
|
78 |
{
|
|
79 |
SMC_MOCK_METHOD1( HbDeviceProfile &, const HbDeviceProfile &, other )
|
|
80 |
}
|
|
81 |
|
|
82 |
|
|
83 |
// -----------------------------------------------------------------------------
|
|
84 |
// HbDeviceProfile::isNull
|
|
85 |
// -----------------------------------------------------------------------------
|
|
86 |
//
|
|
87 |
bool HbDeviceProfile::isNull( ) const
|
|
88 |
{
|
|
89 |
SMC_MOCK_METHOD0( bool )
|
|
90 |
}
|
|
91 |
|
|
92 |
|
|
93 |
// -----------------------------------------------------------------------------
|
|
94 |
// HbDeviceProfile::name
|
|
95 |
// -----------------------------------------------------------------------------
|
|
96 |
//
|
|
97 |
QString HbDeviceProfile::name( ) const
|
|
98 |
{
|
|
99 |
SMC_MOCK_METHOD0( QString )
|
|
100 |
}
|
|
101 |
|
|
102 |
|
|
103 |
// -----------------------------------------------------------------------------
|
|
104 |
// HbDeviceProfile::logicalSize
|
|
105 |
// -----------------------------------------------------------------------------
|
|
106 |
//
|
|
107 |
QSize HbDeviceProfile::logicalSize( ) const
|
|
108 |
{
|
|
109 |
SMC_MOCK_METHOD0( QSize )
|
|
110 |
}
|
|
111 |
|
|
112 |
|
|
113 |
// -----------------------------------------------------------------------------
|
|
114 |
// HbDeviceProfile::physicalSize
|
|
115 |
// -----------------------------------------------------------------------------
|
|
116 |
//
|
|
117 |
QSizeF HbDeviceProfile::physicalSize( ) const
|
|
118 |
{
|
|
119 |
SMC_MOCK_METHOD0( QSizeF )
|
|
120 |
}
|
|
121 |
|
|
122 |
|
|
123 |
// -----------------------------------------------------------------------------
|
|
124 |
// HbDeviceProfile::alternateProfileName
|
|
125 |
// -----------------------------------------------------------------------------
|
|
126 |
//
|
|
127 |
QString HbDeviceProfile::alternateProfileName( ) const
|
|
128 |
{
|
|
129 |
SMC_MOCK_METHOD0( QString )
|
|
130 |
}
|
|
131 |
|
|
132 |
|
|
133 |
// -----------------------------------------------------------------------------
|
|
134 |
// HbDeviceProfile::touch
|
|
135 |
// -----------------------------------------------------------------------------
|
|
136 |
//
|
|
137 |
bool HbDeviceProfile::touch( ) const
|
|
138 |
{
|
|
139 |
SMC_MOCK_METHOD0( bool )
|
|
140 |
}
|
|
141 |
|
|
142 |
|
|
143 |
// -----------------------------------------------------------------------------
|
|
144 |
// HbDeviceProfile::orientation
|
|
145 |
// -----------------------------------------------------------------------------
|
|
146 |
//
|
|
147 |
Qt::Orientation HbDeviceProfile::orientation( ) const
|
|
148 |
{
|
|
149 |
SMC_MOCK_METHOD0( Qt::Orientation )
|
|
150 |
}
|
|
151 |
|
|
152 |
|
|
153 |
// -----------------------------------------------------------------------------
|
|
154 |
// HbDeviceProfile::orientationAngle
|
|
155 |
// -----------------------------------------------------------------------------
|
|
156 |
//
|
|
157 |
qreal HbDeviceProfile::orientationAngle( ) const
|
|
158 |
{
|
|
159 |
SMC_MOCK_METHOD0( qreal )
|
|
160 |
}
|
|
161 |
|
|
162 |
|
|
163 |
// -----------------------------------------------------------------------------
|
|
164 |
// HbDeviceProfile::unitValue
|
|
165 |
// -----------------------------------------------------------------------------
|
|
166 |
//
|
|
167 |
qreal HbDeviceProfile::unitValue( ) const
|
|
168 |
{
|
|
169 |
SMC_MOCK_METHOD0( qreal )
|
|
170 |
}
|
|
171 |
|
|
172 |
|
|
173 |
// -----------------------------------------------------------------------------
|
|
174 |
// HbDeviceProfile::ppmValue
|
|
175 |
// -----------------------------------------------------------------------------
|
|
176 |
//
|
|
177 |
qreal HbDeviceProfile::ppmValue( ) const
|
|
178 |
{
|
|
179 |
SMC_MOCK_METHOD0( qreal )
|
|
180 |
}
|
|
181 |
|
|
182 |
|
|
183 |
// -----------------------------------------------------------------------------
|
|
184 |
// HbDeviceProfile::current
|
|
185 |
// -----------------------------------------------------------------------------
|
|
186 |
//
|
|
187 |
HbDeviceProfile HbDeviceProfile::current( )
|
|
188 |
{
|
|
189 |
SMC_MOCK_METHOD0( HbDeviceProfile )
|
|
190 |
}
|
|
191 |
|
|
192 |
|
|
193 |
// -----------------------------------------------------------------------------
|
|
194 |
// HbDeviceProfile::profile
|
|
195 |
// -----------------------------------------------------------------------------
|
|
196 |
//
|
|
197 |
HbDeviceProfile HbDeviceProfile::profile(
|
|
198 |
const HbMainWindow * window )
|
|
199 |
{
|
|
200 |
SMC_MOCK_METHOD1( HbDeviceProfile, const HbMainWindow *, window )
|
|
201 |
}
|
|
202 |
|
|
203 |
|
|
204 |
// -----------------------------------------------------------------------------
|
|
205 |
// HbDeviceProfile::profile
|
|
206 |
// -----------------------------------------------------------------------------
|
|
207 |
//
|
|
208 |
HbDeviceProfile HbDeviceProfile::profile(
|
|
209 |
const QGraphicsItem * item )
|
|
210 |
{
|
|
211 |
SMC_MOCK_METHOD1( HbDeviceProfile, const QGraphicsItem *, item )
|
|
212 |
}
|
|
213 |
|
|
214 |
|
|
215 |
// -----------------------------------------------------------------------------
|
|
216 |
// HbDeviceProfile::profileNames
|
|
217 |
// -----------------------------------------------------------------------------
|
|
218 |
//
|
|
219 |
QStringList HbDeviceProfile::profileNames( )
|
|
220 |
{
|
|
221 |
SMC_MOCK_METHOD0( QStringList )
|
|
222 |
}
|
|
223 |
|
|
224 |
|