|
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: test EIKCOLIB.H EIKCTLIB.H |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_TESTSDKINITIALIZATION_H |
|
21 #define C_TESTSDKINITIALIZATION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <stiflogger.h> |
|
25 #include <testscripterinternal.h> |
|
26 #include <stiftestmodule.h> |
|
27 #include <testclassassert.h> |
|
28 |
|
29 // MACROS |
|
30 #define TEST_CLASS_VERSION_MAJOR 0 |
|
31 #define TEST_CLASS_VERSION_MINOR 0 |
|
32 #define TEST_CLASS_VERSION_BUILD 0 |
|
33 |
|
34 // Logging path |
|
35 _LIT( KtestsdkinitializationLogPath, "\\logs\\testframework\\testsdkinitialization\\" ); |
|
36 // Log file |
|
37 _LIT( KtestsdkinitializationLogFile, "testsdkinitialization.txt" ); |
|
38 _LIT( KtestsdkinitializationLogFileWithTitle, "testsdkinitialization_[%S].txt" ); |
|
39 |
|
40 /** |
|
41 * CTestSDKInitialization test class for STIF Test Framework TestScripter. |
|
42 * @since S60 5.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS( CTestSDKInitialization ) : public CScriptBase |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 */ |
|
51 static CTestSDKInitialization* NewL( CTestModuleIf& aTestModuleIf ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CTestSDKInitialization(); |
|
57 |
|
58 public: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * From CScriptBase Runs a script line. |
|
62 * @since S60 5.0 |
|
63 * @param aItem Script line containing method name and parameters |
|
64 * @return Symbian OS error code |
|
65 */ |
|
66 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ default constructor. |
|
72 */ |
|
73 CTestSDKInitialization( CTestModuleIf& aTestModuleIf ); |
|
74 |
|
75 /** |
|
76 * By default Symbian 2nd phase constructor is private. |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 /** |
|
81 * Method used to log version of test class |
|
82 */ |
|
83 void SendTestClassVersion(); |
|
84 |
|
85 /** |
|
86 * Turn off ScreenSaver |
|
87 * @since S60 5.0 |
|
88 * @return Symbian OS error code. |
|
89 */ |
|
90 void TurnOffScreenSaver(); |
|
91 |
|
92 /** |
|
93 * Restore ScreenSaver |
|
94 * @since S60 5.0 |
|
95 * @return Symbian OS error code. |
|
96 */ |
|
97 void RestoreScreenSaver(); |
|
98 |
|
99 private: // Test EIKCOLIB.H |
|
100 /* class CEikCoCtlLibrary */ |
|
101 /** |
|
102 * TestCCLResourceFileL test function for testing the |
|
103 * ResourceFile function |
|
104 * @since S60 5.0 |
|
105 * @param aItem never used |
|
106 * @return Symbian OS error code. |
|
107 */ |
|
108 virtual TInt TestCCLResourceFile( CStifItemParser& aItem ); |
|
109 |
|
110 /** |
|
111 * TestCCLControlFactory test function for testing the |
|
112 * ControlFactory function |
|
113 * @since S60 5.0 |
|
114 * @param aItem never used |
|
115 * @return Symbian OS error code. |
|
116 */ |
|
117 virtual TInt TestCCLControlFactory( CStifItemParser& aItem ); |
|
118 |
|
119 /** |
|
120 * TestCCLButtonGroupFactory test function for testing the |
|
121 * ButtonGroupFactory function |
|
122 * @since S60 5.0 |
|
123 * @param aItem never used |
|
124 * @return Symbian OS error code. |
|
125 */ |
|
126 virtual TInt TestCCLButtonGroupFactory( CStifItemParser& aItem ); |
|
127 |
|
128 /** |
|
129 * TestAUFCEikAppUiFactoryL test function for testing the |
|
130 * CEikAppUiFactory function |
|
131 * @since S60 5.0 |
|
132 * @param aItem never used |
|
133 * @return Symbian OS error code. |
|
134 */ |
|
135 virtual TInt TestAUFCEikAppUiFactoryL( CStifItemParser& aItem ); |
|
136 |
|
137 /** |
|
138 * TestAUFTouchPaneL test function for testing the |
|
139 * TouchPane function |
|
140 * @since S60 5.0 |
|
141 * @param aItem never used |
|
142 * @return Symbian OS error code. |
|
143 */ |
|
144 virtual TInt TestAUFTouchPaneL( CStifItemParser& aItem ); |
|
145 |
|
146 /** |
|
147 * TestAUFPopupToolbarL test function for testing the |
|
148 * PopupToolbar function |
|
149 * @since S60 5.0 |
|
150 * @param aItem never used |
|
151 * @return Symbian OS error code. |
|
152 */ |
|
153 virtual TInt TestAUFPopupToolbarL( CStifItemParser& aItem ); |
|
154 |
|
155 /** |
|
156 * TestAUFCurrentPopupToolbarL test function for testing the |
|
157 * CurrentPopupToolbar function |
|
158 * @since S60 5.0 |
|
159 * @param aItem never used |
|
160 * @return Symbian OS error code. |
|
161 */ |
|
162 virtual TInt TestAUFCurrentPopupToolbarL( CStifItemParser& aItem ); |
|
163 |
|
164 /** |
|
165 * TestAUFSetViewPopupToolbarL test function for testing the |
|
166 * SetViewPopupToolbar function |
|
167 * @since S60 5.0 |
|
168 * @param aItem never used |
|
169 * @return Symbian OS error code. |
|
170 */ |
|
171 virtual TInt TestAUFSetViewPopupToolbarL( CStifItemParser& aItem ); |
|
172 |
|
173 /** |
|
174 * TestAUFCurrentFixedToolbarL test function for testing the |
|
175 * CurrentFixedToolbar function |
|
176 * @since S60 5.0 |
|
177 * @param aItem never used |
|
178 * @return Symbian OS error code. |
|
179 */ |
|
180 virtual TInt TestAUFCurrentFixedToolbarL( CStifItemParser& aItem ); |
|
181 |
|
182 /** |
|
183 * TestAUFSetViewFixedToolbarL test function for testing the |
|
184 * SetViewFixedToolbar function |
|
185 * @since S60 5.0 |
|
186 * @param aItem never used |
|
187 * @return Symbian OS error code. |
|
188 */ |
|
189 virtual TInt TestAUFSetViewFixedToolbarL( CStifItemParser& aItem ); |
|
190 |
|
191 /** |
|
192 * TestCLResourceFile test function for testing the |
|
193 * ResourceFile function |
|
194 * @since S60 5.0 |
|
195 * @param aItem never used |
|
196 * @return Symbian OS error code. |
|
197 */ |
|
198 virtual TInt TestCLResourceFile( CStifItemParser& aItem ); |
|
199 |
|
200 /** |
|
201 * TestCLControlFactory test function for testing the |
|
202 * ControlFactory function |
|
203 * @since S60 5.0 |
|
204 * @param aItem never used |
|
205 * @return Symbian OS error code. |
|
206 */ |
|
207 virtual TInt TestCLControlFactory( CStifItemParser& aItem ); |
|
208 |
|
209 /** |
|
210 * TestCLInitializeL test function for testing the |
|
211 * InitializeL function |
|
212 * @since S60 5.0 |
|
213 * @param aItem never used |
|
214 * @return Symbian OS error code. |
|
215 */ |
|
216 virtual TInt TestCLInitializeL( CStifItemParser& aItem ); |
|
217 |
|
218 /** |
|
219 * TestCLButtonGroupFactory test function for testing the |
|
220 * ButtonGroupFactory function |
|
221 * @since S60 5.0 |
|
222 * @param aItem never used |
|
223 * @return Symbian OS error code. |
|
224 */ |
|
225 virtual TInt TestCLButtonGroupFactory( CStifItemParser& aItem ); |
|
226 |
|
227 private: // Data |
|
228 |
|
229 /** |
|
230 * ScreenSaver Property |
|
231 */ |
|
232 TInt iOldScreenSaverProperty; |
|
233 |
|
234 }; |
|
235 |
|
236 #endif // C_TESTSDKINITIALIZATION_H |
|
237 |
|
238 // End of File |