20
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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 |
|
|
18 |
|
|
19 |
#ifndef C_CBCTESTDOMAKNRCLASSCASE_H
|
|
20 |
#define C_CBCTESTDOMAKNRCLASSCASE_H
|
|
21 |
|
|
22 |
#include "bctestcase.h"
|
|
23 |
|
|
24 |
|
|
25 |
class CBCTestDomAiwAknContainer;
|
|
26 |
class CCoeControl;
|
|
27 |
class CEikonEnv;
|
|
28 |
|
|
29 |
/**
|
|
30 |
* test case for various classes
|
|
31 |
*
|
|
32 |
*
|
|
33 |
* @code
|
|
34 |
*
|
|
35 |
* @endcode
|
|
36 |
*
|
|
37 |
* @lib
|
|
38 |
* @since S60 v5.0
|
|
39 |
*/
|
|
40 |
class CBCTestDomAknRClassCase:
|
|
41 |
public CBCTestCase
|
|
42 |
,public MEikMenuObserver
|
|
43 |
{
|
|
44 |
public: // constructor and destructor
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Symbian 2nd static constructor
|
|
48 |
*/
|
|
49 |
static CBCTestDomAknRClassCase* NewL(
|
|
50 |
CBCTestDomAiwAknContainer* aContainer );
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Destructor
|
|
54 |
*/
|
|
55 |
virtual ~CBCTestDomAknRClassCase();
|
|
56 |
|
|
57 |
public:
|
|
58 |
|
|
59 |
// from base class CBCTestCase
|
|
60 |
|
|
61 |
/**
|
|
62 |
* From CBCTestCase.
|
|
63 |
* Execute corresponding test functions for UI command.
|
|
64 |
*
|
|
65 |
* @since S60 v5.0
|
|
66 |
* @param aCmd, UI command
|
|
67 |
*/
|
|
68 |
void RunL( TInt aCmd );
|
|
69 |
|
|
70 |
|
|
71 |
// from base class MEikMenuObserver
|
|
72 |
|
|
73 |
/**
|
|
74 |
* From MEikMenuObserver.
|
|
75 |
* Processes user commands.
|
|
76 |
*
|
|
77 |
* Derived classes must provide an implementation of this function which
|
|
78 |
* responds to user commands appropriately based on a user-defined ID for
|
|
79 |
* the command.
|
|
80 |
*
|
|
81 |
* @since S60 v5.0
|
|
82 |
* @param aCommandId ID of the command to respond to.
|
|
83 |
*/
|
|
84 |
virtual void ProcessCommandL(TInt aCommandId) ;
|
|
85 |
|
|
86 |
/**
|
|
87 |
* From MEikMenuObserver.
|
|
88 |
* Called by the Uikon framework to handle the emphasising or
|
|
89 |
* de-emphasising of a menu window.
|
|
90 |
*
|
|
91 |
* CEikMenuBar objects call this on their observer to emphasise
|
|
92 |
* themselves when they are displayed, and de-emphasise themselves when
|
|
93 |
* they stop displaying.
|
|
94 |
*
|
|
95 |
* @since S60 v5.0
|
|
96 |
* @param aMenuControl The menu control.
|
|
97 |
* @param aEmphasis ETrue to emphasize the menu, EFalse otherwise.
|
|
98 |
*/
|
|
99 |
virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
|
|
100 |
|
|
101 |
protected:
|
|
102 |
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Build autotest script
|
|
106 |
*
|
|
107 |
* @since S60 v5.0
|
|
108 |
*/
|
|
109 |
void BuildScriptL();
|
|
110 |
|
|
111 |
/**
|
|
112 |
* for testing APIs in AknAsyncDemoNotify.h .
|
|
113 |
* Callback function for the CPeriodic. Calculates the current frame,
|
|
114 |
* keeps the background light from turning off and orders the CBillboard
|
|
115 |
* to do the rendering for each frame.
|
|
116 |
*
|
|
117 |
* @since S60 v5.0
|
|
118 |
*@param aInstance Pointer to this instance of CBillboardContainer.
|
|
119 |
*/
|
|
120 |
static TInt AknAsyncDemoNotifyCallBack( TAny* aInstance );
|
|
121 |
|
|
122 |
/**
|
|
123 |
* Test functions
|
|
124 |
*
|
|
125 |
* @since S60 v5.0
|
|
126 |
*/
|
|
127 |
void TestAknAsyncDemoNotify();
|
|
128 |
|
|
129 |
/**
|
|
130 |
* Test functions
|
|
131 |
*
|
|
132 |
* @since S60 v5.0
|
|
133 |
*/
|
|
134 |
void TestAknAnimation();
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Test functions
|
|
138 |
*
|
|
139 |
* @since S60 v5.0
|
|
140 |
*/
|
|
141 |
void TestAknBattery();
|
|
142 |
|
|
143 |
/**
|
|
144 |
* Test functions
|
|
145 |
*
|
|
146 |
* @since S60 v5.0
|
|
147 |
*/
|
|
148 |
void TestAknCapServerClient();
|
|
149 |
|
|
150 |
/**
|
|
151 |
* Test functions
|
|
152 |
*
|
|
153 |
* @since S60 v5.0
|
|
154 |
*/
|
|
155 |
void TestAknCharMap();
|
|
156 |
|
|
157 |
/**
|
|
158 |
* Test functions
|
|
159 |
*
|
|
160 |
* @since S60 v5.0
|
|
161 |
*/
|
|
162 |
void TestAknCustomCursorSupport();
|
|
163 |
|
|
164 |
/**
|
|
165 |
* Test functions
|
|
166 |
*
|
|
167 |
* @since S60 v5.0
|
|
168 |
*/
|
|
169 |
void TestAknDateFormatUtils();
|
|
170 |
|
|
171 |
/**
|
|
172 |
* Test functions
|
|
173 |
*
|
|
174 |
* @since S60 v5.0
|
|
175 |
*/
|
|
176 |
void TestAknEcsDetector();
|
|
177 |
|
|
178 |
/**
|
|
179 |
* Test functions
|
|
180 |
*
|
|
181 |
* @since S60 v5.0
|
|
182 |
*/
|
|
183 |
void TestAknEdwinFormAccessor();
|
|
184 |
|
|
185 |
/**
|
|
186 |
* Test functions
|
|
187 |
*
|
|
188 |
* @since S60 v5.0
|
|
189 |
*/
|
|
190 |
void TestAknEikSrvc();
|
|
191 |
|
|
192 |
/**
|
|
193 |
* Test functions
|
|
194 |
*
|
|
195 |
* @since S60 v5.0
|
|
196 |
*/
|
|
197 |
void TestAknExtendedInputCapabilities() ;
|
|
198 |
|
|
199 |
/**
|
|
200 |
* Test functions
|
|
201 |
*
|
|
202 |
* @since S60 v5.0
|
|
203 |
*/
|
|
204 |
void TestAknFileFilterFactory();
|
|
205 |
|
|
206 |
/**
|
|
207 |
* Test functions
|
|
208 |
*
|
|
209 |
* @since S60 v5.0
|
|
210 |
*/
|
|
211 |
void TestAknFontIdLayoutFont();
|
|
212 |
|
|
213 |
/**
|
|
214 |
* Test functions
|
|
215 |
*
|
|
216 |
* @since S60 v5.0
|
|
217 |
*/
|
|
218 |
void TestAknGlobalPopupPriorityController();
|
|
219 |
|
|
220 |
/**
|
|
221 |
* Test functions
|
|
222 |
*
|
|
223 |
* @since S60 v5.0
|
|
224 |
*/
|
|
225 |
void TestAknIncallBubbleNotify();
|
|
226 |
|
|
227 |
/**
|
|
228 |
* Test functions
|
|
229 |
*
|
|
230 |
* @since S60 v5.0
|
|
231 |
*/
|
|
232 |
void TestAknIndicator();
|
|
233 |
|
|
234 |
/**
|
|
235 |
* Test functions
|
|
236 |
*
|
|
237 |
* @since S60 v5.0
|
|
238 |
*/
|
|
239 |
void TestAknInputBlock();
|
|
240 |
|
|
241 |
/**
|
|
242 |
* Test functions
|
|
243 |
*
|
|
244 |
* @since S60 v5.0
|
|
245 |
*/
|
|
246 |
void TestAknJapaneseReading();
|
|
247 |
|
|
248 |
/**
|
|
249 |
* Test functions
|
|
250 |
*
|
|
251 |
* @since S60 v5.0
|
|
252 |
*/
|
|
253 |
void TestAknKeyRotator();
|
|
254 |
|
|
255 |
/**
|
|
256 |
* Test functions
|
|
257 |
*
|
|
258 |
* @since S60 v5.0
|
|
259 |
*/
|
|
260 |
void TestAknLaunchAppService();
|
|
261 |
|
|
262 |
/**
|
|
263 |
* Test functions
|
|
264 |
*
|
|
265 |
* @since S60 v5.0
|
|
266 |
*/
|
|
267 |
void TestAknLayoutConfig();
|
|
268 |
|
|
269 |
/**
|
|
270 |
* Test functions
|
|
271 |
*
|
|
272 |
* @since S60 v5.0
|
|
273 |
*/
|
|
274 |
void TestCAknLibrary();
|
|
275 |
|
|
276 |
/**
|
|
277 |
* Test functions
|
|
278 |
*
|
|
279 |
* @since S60 v5.0
|
|
280 |
*/
|
|
281 |
void TestListBox();
|
|
282 |
|
|
283 |
/**
|
|
284 |
* Test functions
|
|
285 |
*
|
|
286 |
* @since S60 v5.0
|
|
287 |
*/
|
|
288 |
void TestTAknLineBreaker();
|
|
289 |
|
|
290 |
|
|
291 |
|
|
292 |
private: // constructor
|
|
293 |
|
|
294 |
/**
|
|
295 |
* C++ default constructor
|
|
296 |
*/
|
|
297 |
CBCTestDomAknRClassCase( CBCTestDomAiwAknContainer* aContainer );
|
|
298 |
|
|
299 |
/**
|
|
300 |
* Symbian 2nd constructor
|
|
301 |
*/
|
|
302 |
void ConstructL();
|
|
303 |
|
|
304 |
private: // data
|
|
305 |
|
|
306 |
/**
|
|
307 |
* Pointer to a control, maybe you need one in your test
|
|
308 |
* own
|
|
309 |
*/
|
|
310 |
CCoeControl* iControl;
|
|
311 |
|
|
312 |
/**
|
|
313 |
* Pointer to container.
|
|
314 |
* not own
|
|
315 |
*/
|
|
316 |
CBCTestDomAiwAknContainer* iContainer;
|
|
317 |
|
|
318 |
};
|
|
319 |
|
|
320 |
#endif // C_CBCTESTDOMAKNRCLASSCASE_H |