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: Implementation of customization components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef THEMESTEST_H |
|
21 #define THEMESTEST_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 |
|
28 |
|
29 // CONSTANTS |
|
30 //const ?type ?constant_var = ?constant; |
|
31 |
|
32 // MACROS |
|
33 //#define ?macro ?macro_def |
|
34 // Logging path |
|
35 _LIT( KThemesTestLogPath, "\\logs\\testframework\\ThemesTest\\" ); |
|
36 // Log file |
|
37 _LIT( KThemesTestLogFile, "ThemesTest.txt" ); |
|
38 |
|
39 // FUNCTION PROTOTYPES |
|
40 //?type ?function_name(?arg_list); |
|
41 |
|
42 // FORWARD DECLARATIONS |
|
43 //class ?FORWARD_CLASSNAME; |
|
44 class CThemesTest; |
|
45 class CTestDmCallback; |
|
46 class CTestDmDDFObject; |
|
47 class CSmlDmAdapter; |
|
48 class CTestParams; |
|
49 class CDDFTestParams; |
|
50 |
|
51 // DATA TYPES |
|
52 //enum ?declaration |
|
53 //typedef ?declaration |
|
54 //extern ?data_type; |
|
55 |
|
56 // CLASS DECLARATION |
|
57 |
|
58 /** |
|
59 * CThemesTest test class for STIF Test Framework TestScripter. |
|
60 * ?other_description_lines |
|
61 * |
|
62 * @lib ?library |
|
63 * @since ?Series60_version |
|
64 */ |
|
65 class CThemesTest : public CScriptBase |
|
66 { |
|
67 public: // Constructors and destructor |
|
68 |
|
69 /** |
|
70 * Two-phased constructor. |
|
71 */ |
|
72 static CThemesTest* NewL( CTestModuleIf& aTestModuleIf ); |
|
73 |
|
74 /** |
|
75 * Destructor. |
|
76 */ |
|
77 virtual ~CThemesTest(); |
|
78 |
|
79 public: // New functions |
|
80 |
|
81 /** |
|
82 * ?member_description. |
|
83 * @since ?Series60_version |
|
84 * @param ?arg1 ?description |
|
85 * @return ?description |
|
86 */ |
|
87 //?type ?member_function( ?type ?arg1 ); |
|
88 |
|
89 public: // Functions from base classes |
|
90 |
|
91 /** |
|
92 * From CScriptBase Runs a script line. |
|
93 * @since ?Series60_version |
|
94 * @param aItem Script line containing method name and parameters |
|
95 * @return Symbian OS error code |
|
96 */ |
|
97 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
98 |
|
99 protected: // New functions |
|
100 |
|
101 /** |
|
102 * ?member_description. |
|
103 * @since ?Series60_version |
|
104 * @param ?arg1 ?description |
|
105 * @return ?description |
|
106 */ |
|
107 //?type ?member_function( ?type ?arg1 ); |
|
108 |
|
109 protected: // Functions from base classes |
|
110 |
|
111 /** |
|
112 * From ?base_class ?member_description |
|
113 */ |
|
114 //?type ?member_function(); |
|
115 |
|
116 private: |
|
117 |
|
118 /** |
|
119 * C++ default constructor. |
|
120 */ |
|
121 CThemesTest( CTestModuleIf& aTestModuleIf ); |
|
122 |
|
123 /** |
|
124 * By default Symbian 2nd phase constructor is private. |
|
125 */ |
|
126 void ConstructL(); |
|
127 |
|
128 // Prohibit copy constructor if not deriving from CBase. |
|
129 // ?classname( const ?classname& ); |
|
130 // Prohibit assigment operator if not deriving from CBase. |
|
131 // ?classname& operator=( const ?classname& ); |
|
132 |
|
133 /** |
|
134 * Frees all resources allocated from test methods. |
|
135 * @since ?Series60_version |
|
136 */ |
|
137 void Delete(); |
|
138 |
|
139 /** |
|
140 * Test methods are listed below. |
|
141 */ |
|
142 |
|
143 /** |
|
144 * Example test method. |
|
145 * @since ?Series60_version |
|
146 * @param aItem Script line containing parameters. |
|
147 * @return Symbian OS error code. |
|
148 */ |
|
149 virtual TInt ExampleL( CStifItemParser& aItem ); |
|
150 |
|
151 /** |
|
152 * Seconda test method. |
|
153 * @since ?Series60_version |
|
154 * @param aItem Script line containing parameters. |
|
155 * @return Symbian OS error code. |
|
156 */ |
|
157 virtual TInt SecondaL( CStifItemParser& aItem ); |
|
158 virtual TInt InstallL( CStifItemParser& aItem ); |
|
159 |
|
160 /** |
|
161 * Test methods for DM Adapter. |
|
162 * @since ?Series60_version |
|
163 * @param aItem Script line containing parameters. |
|
164 * @return Symbian OS error code. |
|
165 */ |
|
166 virtual TInt LoadL( CStifItemParser& aItem ); |
|
167 virtual TInt AddDDFCheckL( CStifItemParser& aItem ); |
|
168 |
|
169 virtual TInt DDFVersionL( CStifItemParser& aItem ); |
|
170 virtual TInt DDFStructureL( CStifItemParser& aItem ); |
|
171 |
|
172 virtual TInt UpdateLeafObjectL( CStifItemParser& aItem ); |
|
173 virtual TInt UpdateLeafObjectStreamL( CStifItemParser& aItem ); |
|
174 virtual TInt DeleteObjectL( CStifItemParser& aItem ); |
|
175 virtual TInt FetchLeafObjectL( CStifItemParser& aItem ); |
|
176 virtual TInt FetchLeafObjectSizeL( CStifItemParser& aItem ); |
|
177 virtual TInt ChildURIListL( CStifItemParser& aItem ); |
|
178 |
|
179 virtual TInt AddNodeObjectL( CStifItemParser& aItem ); |
|
180 virtual TInt ExecuteCommandL( CStifItemParser& aItem ); |
|
181 virtual TInt ExecuteCommandStreamL( CStifItemParser& aItem ); |
|
182 virtual TInt CopyCommandL( CStifItemParser& aItem ); |
|
183 virtual TInt StartAtomicL( CStifItemParser& aItem ); |
|
184 virtual TInt CommitAtomicL( CStifItemParser& aItem ); |
|
185 virtual TInt RollbackAtomicL( CStifItemParser& aItem ); |
|
186 virtual TInt StreamingSupportL( CStifItemParser& aItem ); |
|
187 virtual TInt StreamCommittedL( CStifItemParser& aItem ); |
|
188 virtual TInt CompleteOutstandingCmdsL( CStifItemParser& aItem ); |
|
189 #if 0 |
|
190 virtual TInt CreateFileL( CStifItemParser& aItem ); |
|
191 virtual TInt RFSCommandL( CStifItemParser& aItem ); |
|
192 virtual TInt LoadPolicyL( CStifItemParser& aItem ); |
|
193 virtual TInt SetCertificateL( CStifItemParser& aItem ); |
|
194 virtual TInt ConnectToPolicyServerL( CStifItemParser& aItem ); |
|
195 virtual TInt ConnectToDMUTILL( CStifItemParser& aItem ); |
|
196 virtual TInt InitDMSessionL( CStifItemParser& aItem ); |
|
197 virtual TInt ThirdPartyCommandL( CStifItemParser& aItem ); |
|
198 |
|
199 virtual TInt RRRunL( CStifItemParser& aItem ); |
|
200 #endif |
|
201 // Other functions |
|
202 void AddParamsL( CTestParams* params ); |
|
203 void AddDDFParamsL( CDDFTestParams* aDDFParams ); |
|
204 TInt CheckAllL( ); |
|
205 TInt CheckDDFL( CTestDmDDFObject *aDDFRoot ); |
|
206 #if 0 |
|
207 HBufC8* GetThirdPartyValueL( TInt aType ); |
|
208 void SetThirdPartyValueL( TInt aType, TDesC8& aData ); |
|
209 #endif |
|
210 public: // Data |
|
211 // ?one_line_short_description_of_data |
|
212 //?data_declaration; |
|
213 |
|
214 protected: // Data |
|
215 // ?one_line_short_description_of_data |
|
216 //?data_declaration; |
|
217 |
|
218 private: // Data |
|
219 CTestDmCallback *iCallback; |
|
220 CSmlDmAdapter *iAdapter; |
|
221 |
|
222 RPointerArray< CTestParams > iParams; |
|
223 RPointerArray< CDDFTestParams > iDDFParams; |
|
224 |
|
225 |
|
226 // ?one_line_short_description_of_data |
|
227 //?data_declaration; |
|
228 |
|
229 // Reserved pointer for future extension |
|
230 //TAny* iReserved; |
|
231 |
|
232 public: // Friend classes |
|
233 //?friend_class_declaration; |
|
234 protected: // Friend classes |
|
235 //?friend_class_declaration; |
|
236 private: // Friend classes |
|
237 //?friend_class_declaration; |
|
238 |
|
239 }; |
|
240 |
|
241 #endif // THEMESTEST_H |
|
242 |
|
243 // End of File |
|