45
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 - 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: ?Description
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef C_TESTSDKSEARCHFIELD_H
|
|
21 |
#define C_TESTSDKSEARCHFIELD_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <stiflogger.h>
|
|
25 |
#include <testscripterinternal.h>
|
|
26 |
#include <stiftestmodule.h>
|
|
27 |
#include <testclassassert.h>
|
|
28 |
|
|
29 |
class CAknSearchField;
|
|
30 |
class CTestSDKSearchFieldContainer;
|
|
31 |
class CTestSDKSFView;
|
|
32 |
class CTestSDKSFASTObserver;
|
|
33 |
|
|
34 |
// MACROS
|
|
35 |
#define TEST_CLASS_VERSION_MAJOR 0
|
|
36 |
#define TEST_CLASS_VERSION_MINOR 0
|
|
37 |
#define TEST_CLASS_VERSION_BUILD 0
|
|
38 |
|
|
39 |
// Logging path
|
|
40 |
_LIT( KtestsdksearchfieldLogPath, "\\logs\\testframework\\testsdksearchfield\\" );
|
|
41 |
// Log file
|
|
42 |
_LIT( KtestsdksearchfieldLogFile, "testsdksearchfield.txt" );
|
|
43 |
_LIT( KtestsdksearchfieldLogFileWithTitle, "testsdksearchfield_[%S].txt" );
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Ctestsdksearchfield test class for STIF Test Framework TestScripter.
|
|
47 |
* @since S60 5.0
|
|
48 |
*/
|
|
49 |
NONSHARABLE_CLASS(CTestSDKSearchField) : public CScriptBase
|
|
50 |
{
|
|
51 |
public: // Constructors and destructor
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Two-phased constructor.
|
|
55 |
*/
|
|
56 |
static CTestSDKSearchField* NewL( CTestModuleIf& aTestModuleIf );
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Destructor.
|
|
60 |
*/
|
|
61 |
virtual ~CTestSDKSearchField();
|
|
62 |
|
|
63 |
public: // Functions from base classes
|
|
64 |
|
|
65 |
/**
|
|
66 |
* From CScriptBase Runs a script line.
|
|
67 |
* @since S60 5.0
|
|
68 |
* @param aItem Script line containing method name and parameters
|
|
69 |
* @return Symbian OS error code
|
|
70 |
*/
|
|
71 |
virtual TInt RunMethodL( CStifItemParser& aItem );
|
|
72 |
|
|
73 |
private:
|
|
74 |
|
|
75 |
/**
|
|
76 |
* C++ default constructor.
|
|
77 |
*/
|
|
78 |
CTestSDKSearchField( CTestModuleIf& aTestModuleIf );
|
|
79 |
|
|
80 |
/**
|
|
81 |
* By default Symbian 2nd phase constructor is private.
|
|
82 |
*/
|
|
83 |
void ConstructL();
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Frees all resources allocated from test methods.
|
|
87 |
* @since S60 5.0
|
|
88 |
*/
|
|
89 |
void Delete();
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Method used to log version of test class
|
|
93 |
*/
|
|
94 |
void SendTestClassVersion();
|
|
95 |
|
|
96 |
//[TestMethods]
|
|
97 |
private://aknsfld.h
|
|
98 |
/**
|
|
99 |
* TestSFNewL test function for testing the NewL function
|
|
100 |
* @since S60 5.0
|
|
101 |
* @param aItem never used
|
|
102 |
* @return Symbian OS error code.
|
|
103 |
*/
|
|
104 |
virtual TInt TestSFNewL( CStifItemParser& aItem );
|
|
105 |
|
|
106 |
/**
|
|
107 |
* TestSFDelete test function for testing the destructor function
|
|
108 |
* @since S60 5.0
|
|
109 |
* @param aItem never used
|
|
110 |
* @return Symbian OS error code.
|
|
111 |
*/
|
|
112 |
virtual TInt TestSFDelete( CStifItemParser& aItem );
|
|
113 |
|
|
114 |
/**
|
|
115 |
* TestSFTextLength test function for testing the TextLength function
|
|
116 |
* @since S60 5.0
|
|
117 |
* @param aItem never used
|
|
118 |
* @return Symbian OS error code.
|
|
119 |
*/
|
|
120 |
virtual TInt TestSFTextLength( CStifItemParser& aItem );
|
|
121 |
|
|
122 |
/**
|
|
123 |
* TestSFGetSearchText test function for testing the GetSearchText function
|
|
124 |
* @since S60 5.0
|
|
125 |
* @param aItem never used
|
|
126 |
* @return Symbian OS error code.
|
|
127 |
*/
|
|
128 |
virtual TInt TestSFGetSearchText( CStifItemParser& aItem );
|
|
129 |
|
|
130 |
/**
|
|
131 |
* TestSFSetSearchTextL test function for testing the SetSearchTextL function
|
|
132 |
* @since S60 5.0
|
|
133 |
* @param aItem never used
|
|
134 |
* @return Symbian OS error code.
|
|
135 |
*/
|
|
136 |
virtual TInt TestSFSetSearchTextL( CStifItemParser& aItem );
|
|
137 |
|
|
138 |
/**
|
|
139 |
* TestSFSelectSearchTextL test function for testing the SelectSearchTextL function
|
|
140 |
* @since S60 5.0
|
|
141 |
* @param aItem never used
|
|
142 |
* @return Symbian OS error code.
|
|
143 |
*/
|
|
144 |
virtual TInt TestSFSelectSearchTextL( CStifItemParser& aItem );
|
|
145 |
|
|
146 |
/**
|
|
147 |
* TestSFResetL test function for testing the ResetL function
|
|
148 |
* @since S60 5.0
|
|
149 |
* @param aItem never used
|
|
150 |
* @return Symbian OS error code.
|
|
151 |
*/
|
|
152 |
virtual TInt TestSFResetL( CStifItemParser& aItem );
|
|
153 |
|
|
154 |
/**
|
|
155 |
* TestSFSetInfoTextL test function for testing the SetInfoTextL function
|
|
156 |
* @since S60 5.0
|
|
157 |
* @param aItem never used
|
|
158 |
* @return Symbian OS error code.
|
|
159 |
*/
|
|
160 |
virtual TInt TestSFSetInfoTextL( CStifItemParser& aItem );
|
|
161 |
|
|
162 |
/**
|
|
163 |
* TestSFClipboardL test function for testing the ClipboardL function
|
|
164 |
* @since S60 5.0
|
|
165 |
* @param aItem never used
|
|
166 |
* @return Symbian OS error code.
|
|
167 |
*/
|
|
168 |
virtual TInt TestSFClipboardL( CStifItemParser& aItem );
|
|
169 |
|
|
170 |
/**
|
|
171 |
* TestSFSearchFieldStyle test function for testing the SearchFieldStyle function
|
|
172 |
* @since S60 5.0
|
|
173 |
* @param aItem never used
|
|
174 |
* @return Symbian OS error code.
|
|
175 |
*/
|
|
176 |
virtual TInt TestSFSearchFieldStyle( CStifItemParser& aItem );
|
|
177 |
|
|
178 |
/**
|
|
179 |
* TestSFSetSkinEnabledL test function for testing the SetSkinEnabledL function
|
|
180 |
* @since S60 5.0
|
|
181 |
* @param aItem never used
|
|
182 |
* @return Symbian OS error code.
|
|
183 |
*/
|
|
184 |
virtual TInt TestSFSetSkinEnabledL( CStifItemParser& aItem );
|
|
185 |
|
|
186 |
/**
|
|
187 |
* TestSFOfferKeyEventL test function for testing the OfferKeyEventL function
|
|
188 |
* @since S60 5.0
|
|
189 |
* @param aItem never used
|
|
190 |
* @return Symbian OS error code.
|
|
191 |
*/
|
|
192 |
virtual TInt TestSFOfferKeyEventL( CStifItemParser& aItem );
|
|
193 |
|
|
194 |
/**
|
|
195 |
* TestSFMinimumSize test function for testing the MinimumSize function
|
|
196 |
* @since S60 5.0
|
|
197 |
* @param aItem never used
|
|
198 |
* @return Symbian OS error code.
|
|
199 |
*/
|
|
200 |
virtual TInt TestSFMinimumSize( CStifItemParser& aItem );
|
|
201 |
|
|
202 |
/**
|
|
203 |
* TestSFMakeVisible test function for testing the MakeVisible function
|
|
204 |
* @since S60 5.0
|
|
205 |
* @param aItem never used
|
|
206 |
* @return Symbian OS error code.
|
|
207 |
*/
|
|
208 |
virtual TInt TestSFMakeVisible( CStifItemParser& aItem );
|
|
209 |
|
|
210 |
/**
|
|
211 |
* TestSFSetLinePos test function for testing the SetLinePos function
|
|
212 |
* @since S60 5.0
|
|
213 |
* @param aItem never used
|
|
214 |
* @return Symbian OS error code.
|
|
215 |
*/
|
|
216 |
virtual TInt TestSFSetLinePos( CStifItemParser& aItem );
|
|
217 |
|
|
218 |
/**
|
|
219 |
* TestSFEditor test function for testing the Editor function
|
|
220 |
* @since S60 5.0
|
|
221 |
* @param aItem never used
|
|
222 |
* @return Symbian OS error code.
|
|
223 |
*/
|
|
224 |
virtual TInt TestSFEditor( CStifItemParser& aItem );
|
|
225 |
|
|
226 |
/**
|
|
227 |
* TestSFSetAdaptiveGridChars test function for testing the SetAdaptiveGridChars function
|
|
228 |
* @since S60 5.0
|
|
229 |
* @param aItem never used
|
|
230 |
* @return Symbian OS error code.
|
|
231 |
*/
|
|
232 |
virtual TInt TestSFSetAdaptiveGridChars( CStifItemParser& aItem );
|
|
233 |
|
|
234 |
/**
|
|
235 |
* TestSFShowAdaptiveSearchGrid test function for testing the ShowAdaptiveSearchGrid function
|
|
236 |
* @since S60 5.0
|
|
237 |
* @param aItem never used
|
|
238 |
* @return Symbian OS error code.
|
|
239 |
*/
|
|
240 |
virtual TInt TestSFShowAdaptiveSearchGrid( CStifItemParser& aItem );
|
|
241 |
|
|
242 |
/**
|
|
243 |
* TestSFSetListColumnFilterFlags test function for testing the SetListColumnFilterFlags function
|
|
244 |
* @since S60 5.0
|
|
245 |
* @param aItem never used
|
|
246 |
* @return Symbian OS error code.
|
|
247 |
*/
|
|
248 |
virtual TInt TestSFSetListColumnFilterFlagsL( CStifItemParser& aItem );
|
|
249 |
|
|
250 |
/**
|
|
251 |
* TestSFListColumnFilterFlags test function for testing the ListColumnFilterFlags function
|
|
252 |
* @since S60 5.0
|
|
253 |
* @param aItem never used
|
|
254 |
* @return Symbian OS error code.
|
|
255 |
*/
|
|
256 |
virtual TInt TestSFListColumnFilterFlags( CStifItemParser& aItem );
|
|
257 |
|
|
258 |
/**
|
|
259 |
* TestSFAddAdaptiveSearchTextObserverL test function for testing the AddAdaptiveSearchTextObserverL function
|
|
260 |
* @since S60 5.0
|
|
261 |
* @param aItem never used
|
|
262 |
* @return Symbian OS error code.
|
|
263 |
*/
|
|
264 |
virtual TInt TestSFAddAdaptiveSearchTextObserverL( CStifItemParser& aItem );
|
|
265 |
|
|
266 |
/**
|
|
267 |
* TestSFRemoveAdaptiveSearchTextObserver test function for testing the RemoveAdaptiveSearchTextObserver function
|
|
268 |
* @since S60 5.0
|
|
269 |
* @param aItem never used
|
|
270 |
* @return Symbian OS error code.
|
|
271 |
*/
|
|
272 |
virtual TInt TestSFRemoveAdaptiveSearchTextObserver( CStifItemParser& aItem );
|
|
273 |
|
|
274 |
/**
|
|
275 |
* TestSFAdaptiveSearchEnabled test function for testing the AdaptiveSearchEnabled function
|
|
276 |
* @since S60 5.0
|
|
277 |
* @param aItem never used
|
|
278 |
* @return Symbian OS error code.
|
|
279 |
*/
|
|
280 |
virtual TInt TestSFAdaptiveSearchEnabled( CStifItemParser& aItem );
|
|
281 |
|
|
282 |
/**
|
|
283 |
* TestSFLanguageChanged test function for testing the LanguageChanged function
|
|
284 |
* @since S60 5.0
|
|
285 |
* @param aItem never used
|
|
286 |
* @return Symbian OS error code.
|
|
287 |
*/
|
|
288 |
virtual TInt TestSFLanguageChanged( CStifItemParser& aItem );
|
|
289 |
private: // Data
|
|
290 |
|
|
291 |
/**
|
|
292 |
* ScreenSaver Property
|
|
293 |
*/
|
|
294 |
TInt iOldScreenSaverProperty;
|
|
295 |
|
|
296 |
/**
|
|
297 |
* CAknSearchField instance
|
|
298 |
*/
|
|
299 |
CAknSearchField* iSearchField;
|
|
300 |
|
|
301 |
/**
|
|
302 |
* Own, for initialize container
|
|
303 |
*/
|
|
304 |
CTestSDKSFView* iTestSDKSFView;
|
|
305 |
|
|
306 |
/**
|
|
307 |
* Own, for initialize container
|
|
308 |
*/
|
|
309 |
CTestSDKSearchFieldContainer* iTestSDKSearchFieldContainer;
|
|
310 |
|
|
311 |
/**
|
|
312 |
* Not own, for set observer
|
|
313 |
*/
|
|
314 |
CTestSDKSFASTObserver* iObserver;
|
|
315 |
};
|
|
316 |
|
|
317 |
#endif // C_TESTSDKSEARCHFIELD_H
|
|
318 |
|
|
319 |
// End of File
|