|
1 /* |
|
2 * Copyright (c) 2002 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 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 #ifndef PTIENGINETESTSDKAPI_H |
|
34 #define PTIENGINETESTSDKAPI_H |
|
35 |
|
36 // INCLUDES |
|
37 #include <StifLogger.h> |
|
38 #include <TestScripterInternal.h> |
|
39 #include <StifTestModule.h> |
|
40 #include <PtiEngine.h> |
|
41 |
|
42 // CONSTANTS |
|
43 //const ?type ?constant_var = ?constant; |
|
44 |
|
45 // MACROS |
|
46 //#define ?macro ?macro_def |
|
47 // Logging path |
|
48 _LIT( KptiEngineTestSdkApiLogPath, "\\logs\\testframework\\ptiEngineTestSdkApi\\" ); |
|
49 // Log file |
|
50 _LIT( KptiEngineTestSdkApiLogFile, "ptiEngineTestSdkApi.txt" ); |
|
51 _LIT( KptiEngineTestSdkApiLogFileWithTitle, "ptiEngineTestSdkApi_[%S].txt" ); |
|
52 |
|
53 // FUNCTION PROTOTYPES |
|
54 //?type ?function_name(?arg_list); |
|
55 |
|
56 // FORWARD DECLARATIONS |
|
57 //class ?FORWARD_CLASSNAME; |
|
58 class CptiEngineTestSdkApi; |
|
59 class MPtiKeyMappings; |
|
60 class CPtiKeyMappings; |
|
61 class CPtiEngine; |
|
62 |
|
63 |
|
64 // DATA TYPES |
|
65 //enum ?declaration |
|
66 //typedef ?declaration |
|
67 //extern ?data_type; |
|
68 |
|
69 // CLASS DECLARATION |
|
70 |
|
71 /** |
|
72 * CptiEngineTestSdkApi test class for STIF Test Framework TestScripter. |
|
73 * ?other_description_lines |
|
74 * |
|
75 * @lib ?library |
|
76 * @since ?Series60_version |
|
77 */ |
|
78 NONSHARABLE_CLASS(CptiEngineTestSdkApi) : public CScriptBase |
|
79 { |
|
80 public: // Constructors and destructor |
|
81 |
|
82 /** |
|
83 * Two-phased constructor. |
|
84 */ |
|
85 static CptiEngineTestSdkApi* NewL( CTestModuleIf& aTestModuleIf ); |
|
86 |
|
87 /** |
|
88 * Destructor. |
|
89 */ |
|
90 virtual ~CptiEngineTestSdkApi(); |
|
91 |
|
92 public: // New functions |
|
93 |
|
94 /** |
|
95 * ?member_description. |
|
96 * @since ?Series60_version |
|
97 * @param ?arg1 ?description |
|
98 * @return ?description |
|
99 */ |
|
100 //?type ?member_function( ?type ?arg1 ); |
|
101 |
|
102 public: // Functions from base classes |
|
103 |
|
104 /** |
|
105 * From CScriptBase Runs a script line. |
|
106 * @since ?Series60_version |
|
107 * @param aItem Script line containing method name and parameters |
|
108 * @return Symbian OS error code |
|
109 */ |
|
110 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
111 |
|
112 protected: // New functions |
|
113 |
|
114 /** |
|
115 * ?member_description. |
|
116 * @since ?Series60_version |
|
117 * @param ?arg1 ?description |
|
118 * @return ?description |
|
119 */ |
|
120 //?type ?member_function( ?type ?arg1 ); |
|
121 |
|
122 protected: // Functions from base classes |
|
123 |
|
124 /** |
|
125 * From ?base_class ?member_description |
|
126 */ |
|
127 //?type ?member_function(); |
|
128 |
|
129 private: |
|
130 |
|
131 /** |
|
132 * C++ default constructor. |
|
133 */ |
|
134 CptiEngineTestSdkApi( CTestModuleIf& aTestModuleIf ); |
|
135 |
|
136 /** |
|
137 * By default Symbian 2nd phase constructor is private. |
|
138 */ |
|
139 void ConstructL(); |
|
140 |
|
141 // Prohibit copy constructor if not deriving from CBase. |
|
142 // ?classname( const ?classname& ); |
|
143 // Prohibit assigment operator if not deriving from CBase. |
|
144 // ?classname& operator=( const ?classname& ); |
|
145 |
|
146 /** |
|
147 * Frees all resources allocated from test methods. |
|
148 * @since ?Series60_version |
|
149 */ |
|
150 void Delete(); |
|
151 |
|
152 /** |
|
153 * Test methods are listed below. |
|
154 */ |
|
155 |
|
156 virtual TInt PtiUserDictCreateL(); |
|
157 virtual TInt PtiUserDictSetDataL(); |
|
158 virtual TInt PtiUserDictSaveDataL(); |
|
159 virtual TInt PtiUserDictReloadL(); |
|
160 virtual TInt PtiUserDictTestOtherL(); |
|
161 void CreateUserDicFileL(TDesC& aFilename); |
|
162 |
|
163 virtual TInt PtiLangDestructionL(); |
|
164 virtual TInt PtiLangSetupL(); |
|
165 virtual TInt PtiLangSetKeyMapL(); |
|
166 virtual TInt PtiLangQwertySetKeyMapL(); |
|
167 virtual TInt PtiLangHalfQwertySetKeyMapL(); |
|
168 virtual TInt PtiLangSetLocalizedNameL(); |
|
169 virtual TInt PtiLangSetLanguageCodeL(); |
|
170 virtual TInt PtiLangTestOthersL(); |
|
171 virtual TInt PtiLangSetSecondaryInputL(); |
|
172 virtual TInt PtiLangGetHwrRecognizerL(); |
|
173 virtual TInt PtiLangAddCoreL(); |
|
174 |
|
175 virtual TInt PtiLangDBSetupL(); |
|
176 virtual TInt PtiLangDBTestImplL(); |
|
177 virtual TInt PtiLangDBTestInfoL(); |
|
178 virtual TInt PtiLangDBTestOthersL(); |
|
179 |
|
180 MPtiKeyMappings* CreateKeyMapL(); |
|
181 virtual TInt PtiKeyMapSetupL(); |
|
182 virtual TInt PtiKeyTestMappingL(); |
|
183 virtual TInt PtiTestReplaceMappingL(); |
|
184 virtual TInt PtiTestReverseMappingL(); |
|
185 virtual TInt PtiTestKeyDataL(); |
|
186 virtual TInt PtiKeyMapTestOthersL(); |
|
187 virtual TInt PtiTestAllKeyDataL(); |
|
188 |
|
189 MPtiKeyMappings* CreateQwertyKeyMapL(); |
|
190 bool ValidQwertyMode(); |
|
191 virtual TInt PtiQwertyTestKeyDataL(); |
|
192 virtual TInt PtiQwertyTestReverseMappingL(); |
|
193 virtual TInt PtiQwertyTestReplaceMappingL(); |
|
194 virtual TInt PtiQwertyTestMappingL(); |
|
195 virtual TInt PtiQwertyMapSetupL(); |
|
196 virtual TInt PtiQwertyTestAllKeyDataL(); |
|
197 virtual TInt PtiQwertyKeyMapTestOthersL(); |
|
198 |
|
199 MPtiKeyMappings* CreateHalfQwertyKeyMapL(); |
|
200 virtual TInt PtiHalfQwertyMapSetupL(); |
|
201 virtual TInt PtiHalfQwertyTestReplaceMappingL(); |
|
202 virtual TInt PtiHalfQwertyTestReverseMappingL(); |
|
203 virtual TInt PtiHalfQwertyTestAllKeyDataL(); |
|
204 virtual TInt PtiHalfQwertyTestKeyDataL(); |
|
205 |
|
206 TInt GetCoreUidL(); |
|
207 virtual TInt PtiEngSetup1L(); |
|
208 virtual TInt PtiEngSetup2L(); |
|
209 virtual TInt PtiEngAddCoreL(); |
|
210 virtual TInt PtiEngTestLanguageL(); |
|
211 virtual TInt PtiEngTestInfoL(); |
|
212 virtual TInt PtiEngTestMultitappingL(); |
|
213 virtual TInt PtiEngTestPredictL(); |
|
214 virtual TInt PtiEngGetCandidatesL(); |
|
215 virtual TInt PtiEngTestInputModeL(); |
|
216 virtual TInt PtiEngTestDictL(); |
|
217 virtual TInt PtiEngTestDefaultUserDictL(); |
|
218 virtual TInt PtiEngTestSecDataFileL(); |
|
219 virtual TInt PtiEngTestLastKeyL(); |
|
220 virtual TInt PtiEngTestNavigationL(); |
|
221 virtual TInt PtiEngTestReorderingL(); |
|
222 virtual TInt PtiEngTestAutoSubstitutionL(); |
|
223 virtual TInt PtiEngTestListKeyboardsL(); |
|
224 virtual TInt PtiEngTestPhysicalListKeyboardsL(); |
|
225 virtual TInt PtiEngTestOtherL(); |
|
226 |
|
227 virtual TInt PtiEngTestChineseInputL(); |
|
228 virtual TInt PtiEngTestJapaneseInputL(); |
|
229 void PtiEngTestSpellL(CPtiEngine *aPtiEngine); |
|
230 void PtiEngSimuInput(CPtiEngine* aEngine, const TDesC& aKeys); |
|
231 CPtiEngine* CreatePtiEngineL(TInt aLanguage, TPtiEngineInputMode aMode); |
|
232 virtual TInt PtiGetHwrRecognizer1L(); |
|
233 virtual TInt PtiGetHwrRecognizer2L(); |
|
234 virtual TInt PtiListHwrRecognizerL(); |
|
235 virtual TInt PtiGetHwrAvailableLanguagesL(); |
|
236 |
|
237 virtual TInt AknInputLanguageCapabilitiesL(); |
|
238 virtual TInt AknInputLanguageItemL(); |
|
239 |
|
240 virtual TInt TestListCoreL(); |
|
241 virtual TInt PtiCoreSetupL(); |
|
242 virtual TInt PtiCoreTestGeneralL(); |
|
243 virtual TInt PtiCoreTestPredictiveLatinL(); |
|
244 virtual TInt PtiCoreTestUserDictL(); |
|
245 virtual TInt PtiCoreTestChineseL(); |
|
246 virtual TInt PtiCoreTestJapaneseL(); |
|
247 CPtiCore* CreatePtiCoreL(); |
|
248 //ADD NEW METHOD DEC HERE |
|
249 //[TestMethods] - Do not remove |
|
250 |
|
251 public: // Data |
|
252 // ?one_line_short_description_of_data |
|
253 //?data_declaration; |
|
254 |
|
255 protected: // Data |
|
256 // ?one_line_short_description_of_data |
|
257 //?data_declaration; |
|
258 |
|
259 private: // Data |
|
260 |
|
261 // ?one_line_short_description_of_data |
|
262 //?data_declaration; |
|
263 |
|
264 // Reserved pointer for future extension |
|
265 //TAny* iReserved; |
|
266 |
|
267 public: // Friend classes |
|
268 //?friend_class_declaration; |
|
269 protected: // Friend classes |
|
270 //?friend_class_declaration; |
|
271 private: // Friend classes |
|
272 //?friend_class_declaration; |
|
273 |
|
274 }; |
|
275 |
|
276 #endif // PTIENGINETESTSDKAPI_H |
|
277 |
|
278 // End of File |