37
|
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 <QObject>
|
|
19 |
#include <smcmockclassincludes.h>
|
|
20 |
#include "infowidgetlayoutmanager.h"
|
|
21 |
|
|
22 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
23 |
|
|
24 |
// -----------------------------------------------------------------------------
|
|
25 |
// InfoWidgetLayoutManager::InfoWidgetLayoutManager
|
|
26 |
// -----------------------------------------------------------------------------
|
|
27 |
//
|
|
28 |
InfoWidgetLayoutManager::InfoWidgetLayoutManager(
|
|
29 |
QObject * parent )
|
|
30 |
:QObject( parent )
|
|
31 |
{
|
|
32 |
|
|
33 |
}
|
|
34 |
|
|
35 |
|
|
36 |
// -----------------------------------------------------------------------------
|
|
37 |
// InfoWidgetLayoutManager::~InfoWidgetLayoutManager
|
|
38 |
// -----------------------------------------------------------------------------
|
|
39 |
//
|
|
40 |
InfoWidgetLayoutManager::~InfoWidgetLayoutManager( )
|
|
41 |
{
|
|
42 |
|
|
43 |
}
|
|
44 |
|
|
45 |
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
// InfoWidgetLayoutManager::destroyObjects
|
|
48 |
// -----------------------------------------------------------------------------
|
|
49 |
//
|
|
50 |
void InfoWidgetLayoutManager::destroyObjects( )
|
|
51 |
{
|
|
52 |
SMC_MOCK_METHOD0( void )
|
|
53 |
}
|
|
54 |
|
|
55 |
|
|
56 |
// -----------------------------------------------------------------------------
|
|
57 |
// InfoWidgetLayoutManager::currentDisplayRole
|
|
58 |
// -----------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole( )
|
|
61 |
{
|
|
62 |
SMC_MOCK_METHOD0( DisplayRole )
|
|
63 |
}
|
|
64 |
|
|
65 |
|
|
66 |
// -----------------------------------------------------------------------------
|
|
67 |
// InfoWidgetLayoutManager::currentWidgetRoles
|
|
68 |
// -----------------------------------------------------------------------------
|
|
69 |
//
|
|
70 |
QList <InfoWidgetLayoutManager::LayoutItemRole >
|
|
71 |
InfoWidgetLayoutManager::currentWidgetRoles( )
|
|
72 |
{
|
|
73 |
SMC_MOCK_METHOD0( QList <LayoutItemRole > )
|
|
74 |
}
|
|
75 |
|
|
76 |
|
|
77 |
// -----------------------------------------------------------------------------
|
|
78 |
// InfoWidgetLayoutManager::layoutRows
|
|
79 |
// -----------------------------------------------------------------------------
|
|
80 |
//
|
|
81 |
int InfoWidgetLayoutManager::layoutRows( ) const
|
|
82 |
{
|
|
83 |
SMC_MOCK_METHOD0( int )
|
|
84 |
}
|
|
85 |
|
|
86 |
|
|
87 |
// -----------------------------------------------------------------------------
|
|
88 |
// InfoWidgetLayoutManager::setLayoutRows
|
|
89 |
// -----------------------------------------------------------------------------
|
|
90 |
//
|
|
91 |
void InfoWidgetLayoutManager::setLayoutRows(
|
|
92 |
int rows )
|
|
93 |
{
|
|
94 |
SMC_MOCK_METHOD1( void, int, rows )
|
|
95 |
}
|
|
96 |
|
|
97 |
|
|
98 |
// -----------------------------------------------------------------------------
|
|
99 |
// InfoWidgetLayoutManager::rowHeight
|
|
100 |
// -----------------------------------------------------------------------------
|
|
101 |
//
|
|
102 |
qreal InfoWidgetLayoutManager::rowHeight( ) const
|
|
103 |
{
|
|
104 |
SMC_MOCK_METHOD0( qreal )
|
|
105 |
}
|
|
106 |
|
|
107 |
|
|
108 |
// -----------------------------------------------------------------------------
|
|
109 |
// InfoWidgetLayoutManager::layoutInfoDisplay
|
|
110 |
// -----------------------------------------------------------------------------
|
|
111 |
//
|
|
112 |
QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay( )
|
|
113 |
{
|
|
114 |
SMC_MOCK_METHOD0( QGraphicsLayout * )
|
|
115 |
}
|
|
116 |
|
|
117 |
|
|
118 |
// -----------------------------------------------------------------------------
|
|
119 |
// InfoWidgetLayoutManager::layoutSettingsDisplay
|
|
120 |
// -----------------------------------------------------------------------------
|
|
121 |
//
|
|
122 |
QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDisplay( )
|
|
123 |
{
|
|
124 |
SMC_MOCK_METHOD0( QGraphicsLayout * )
|
|
125 |
}
|
|
126 |
|
|
127 |
|
|
128 |
// -----------------------------------------------------------------------------
|
|
129 |
// InfoWidgetLayoutManager::widgetRoles
|
|
130 |
// -----------------------------------------------------------------------------
|
|
131 |
//
|
|
132 |
const QList <InfoWidgetLayoutManager::LayoutItemRole >
|
|
133 |
InfoWidgetLayoutManager::widgetRoles(DisplayRole displayRole ) const
|
|
134 |
{
|
|
135 |
SMC_MOCK_METHOD1(
|
|
136 |
const QList <InfoWidgetLayoutManager::LayoutItemRole >,
|
|
137 |
DisplayRole, displayRole )
|
|
138 |
}
|
|
139 |
|
|
140 |
|
|
141 |
// -----------------------------------------------------------------------------
|
|
142 |
// InfoWidgetLayoutManager::loadWidgets
|
|
143 |
// -----------------------------------------------------------------------------
|
|
144 |
//
|
|
145 |
bool InfoWidgetLayoutManager::loadWidgets(
|
|
146 |
const DisplayRole displayRole,
|
|
147 |
const QList<LayoutItemRole> &displayWidgets,
|
|
148 |
QMap<LayoutItemRole, QGraphicsWidget *> &widgetMap)
|
|
149 |
{
|
|
150 |
typedef QMap <LayoutItemRole, QGraphicsWidget *> & TYPE3;
|
|
151 |
SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole,
|
|
152 |
const QList<LayoutItemRole> &, displayWidgets,
|
|
153 |
TYPE3, widgetMap )
|
|
154 |
}
|
|
155 |
|
|
156 |
// -----------------------------------------------------------------------------
|
|
157 |
// InfoWidgetLayoutManager::reloadWidgets
|
|
158 |
// -----------------------------------------------------------------------------
|
|
159 |
//
|
|
160 |
bool InfoWidgetLayoutManager::reloadWidgets(
|
|
161 |
const DisplayRole displayRole )
|
|
162 |
{
|
|
163 |
SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole )
|
|
164 |
}
|
|
165 |
|
|
166 |
|
|
167 |
// -----------------------------------------------------------------------------
|
|
168 |
// InfoWidgetLayoutManager::loadWidget
|
|
169 |
// -----------------------------------------------------------------------------
|
|
170 |
//
|
|
171 |
QGraphicsWidget* InfoWidgetLayoutManager::loadWidget(
|
|
172 |
InfoWidgetDocumentLoader &loader,
|
|
173 |
DisplayRole displayRole,
|
|
174 |
LayoutItemRole widgetRole)
|
|
175 |
{
|
|
176 |
SMC_MOCK_METHOD3( QGraphicsWidget *, InfoWidgetDocumentLoader &, loader,
|
|
177 |
DisplayRole, displayRole,
|
|
178 |
LayoutItemRole, widgetRole )
|
|
179 |
}
|
|
180 |
|
|
181 |
|
|
182 |
// -----------------------------------------------------------------------------
|
|
183 |
// InfoWidgetLayoutManager::getWidget
|
|
184 |
// -----------------------------------------------------------------------------
|
|
185 |
//
|
|
186 |
QGraphicsWidget * InfoWidgetLayoutManager::getWidget(
|
|
187 |
LayoutItemRole itemRole )
|
|
188 |
{
|
|
189 |
SMC_MOCK_METHOD1( QGraphicsWidget *, LayoutItemRole, itemRole )
|
|
190 |
}
|
|
191 |
|
|
192 |
|
|
193 |
// -----------------------------------------------------------------------------
|
|
194 |
// InfoWidgetLayoutManager::contentWidget
|
|
195 |
// -----------------------------------------------------------------------------
|
|
196 |
//
|
|
197 |
QGraphicsWidget * InfoWidgetLayoutManager::contentWidget( )
|
|
198 |
{
|
|
199 |
SMC_MOCK_METHOD0( QGraphicsWidget * )
|
|
200 |
}
|
|
201 |
|
|
202 |
|
|
203 |
// -----------------------------------------------------------------------------
|
|
204 |
// InfoWidgetLayoutManager::removeWidget
|
|
205 |
// -----------------------------------------------------------------------------
|
|
206 |
//
|
|
207 |
void InfoWidgetLayoutManager::removeWidget(
|
|
208 |
LayoutItemRole itemRole )
|
|
209 |
{
|
|
210 |
SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole )
|
|
211 |
}
|
|
212 |
|
|
213 |
|
|
214 |
// -----------------------------------------------------------------------------
|
|
215 |
// InfoWidgetLayoutManager::hideWidget
|
|
216 |
// -----------------------------------------------------------------------------
|
|
217 |
//
|
|
218 |
void InfoWidgetLayoutManager::hideWidget(
|
|
219 |
LayoutItemRole itemRole )
|
|
220 |
{
|
|
221 |
SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole )
|
|
222 |
}
|
|
223 |
|
|
224 |
|
|
225 |
// -----------------------------------------------------------------------------
|
|
226 |
// InfoWidgetLayoutManager::hideAll
|
|
227 |
// -----------------------------------------------------------------------------
|
|
228 |
//
|
|
229 |
void InfoWidgetLayoutManager::hideAll( )
|
|
230 |
{
|
|
231 |
SMC_MOCK_METHOD0( void )
|
|
232 |
}
|
|
233 |
|
|
234 |
|
|
235 |
// -----------------------------------------------------------------------------
|
|
236 |
// InfoWidgetLayoutManager::showAll
|
|
237 |
// -----------------------------------------------------------------------------
|
|
238 |
//
|
|
239 |
void InfoWidgetLayoutManager::showAll( )
|
|
240 |
{
|
|
241 |
SMC_MOCK_METHOD0( void )
|
|
242 |
}
|
|
243 |
|
|
244 |
|
|
245 |
// -----------------------------------------------------------------------------
|
|
246 |
// InfoWidgetDocumentLoader::InfoWidgetDocumentLoader
|
|
247 |
// -----------------------------------------------------------------------------
|
|
248 |
//
|
|
249 |
InfoWidgetDocumentLoader::InfoWidgetDocumentLoader( )
|
|
250 |
//:
|
|
251 |
//HbDocumentLoader( /**/ )
|
|
252 |
{
|
|
253 |
|
|
254 |
}
|
|
255 |
|
|
256 |
|
|
257 |
// -----------------------------------------------------------------------------
|
|
258 |
// InfoWidgetDocumentLoader::createObject
|
|
259 |
// -----------------------------------------------------------------------------
|
|
260 |
//
|
|
261 |
QObject * InfoWidgetDocumentLoader::createObject(
|
|
262 |
const QString & type,
|
|
263 |
const QString & name )
|
|
264 |
{
|
|
265 |
SMC_MOCK_METHOD2( QObject *, const QString &, type,
|
|
266 |
const QString &, name )
|
|
267 |
}
|
|
268 |
|
|
269 |
|