|
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 the License "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 #ifndef TPROVIDERLMARKTEST_H |
|
22 #define TPROVIDERLMARKTEST_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <StifLogger.h> |
|
26 #include <TestScripterInternal.h> |
|
27 #include <StifTestModule.h> |
|
28 #include <LiwServiceHandler.h> |
|
29 #include <liwgenericparam.h> |
|
30 |
|
31 class CLiwGenericParamList; |
|
32 class CLiwDefaultMap; |
|
33 class CLiwDefaultList; |
|
34 |
|
35 using namespace LIW; |
|
36 |
|
37 // CONSTANTS |
|
38 //const ?type ?constant_var = ?constant; |
|
39 |
|
40 // MACROS |
|
41 //#define ?macro ?macro_def |
|
42 // Logging path |
|
43 _LIT( KtproviderlmarktestLogPath, "\\logs\\testframework\\tproviderlmarktest\\" ); |
|
44 // Log file |
|
45 _LIT( KtproviderlmarktestLogFile, "tproviderlmarktest.txt" ); |
|
46 _LIT( KtproviderlmarktestLogFileWithTitle, "tproviderlmarktest_[%S].txt" ); |
|
47 |
|
48 // FUNCTION PROTOTYPES |
|
49 //?type ?function_name(?arg_list); |
|
50 |
|
51 // FORWARD DECLARATIONS |
|
52 //class ?FORWARD_CLASSNAME; |
|
53 class Ctproviderlmarktest; |
|
54 |
|
55 // DATA TYPES |
|
56 //enum ?declaration |
|
57 //typedef ?declaration |
|
58 //extern ?data_type; |
|
59 |
|
60 // CLASS DECLARATION |
|
61 |
|
62 /** |
|
63 * Ctproviderlmarktest test class for STIF Test Framework TestScripter. |
|
64 * ?other_description_lines |
|
65 * |
|
66 * @lib ?library |
|
67 * @since ?Series60_version |
|
68 */ |
|
69 NONSHARABLE_CLASS(Ctproviderlmarktest) : public CScriptBase |
|
70 { |
|
71 public: // Constructors and destructor |
|
72 |
|
73 /** |
|
74 * Two-phased constructor. |
|
75 */ |
|
76 static Ctproviderlmarktest* NewL( CTestModuleIf& aTestModuleIf ); |
|
77 |
|
78 /** |
|
79 * Destructor. |
|
80 */ |
|
81 virtual ~Ctproviderlmarktest(); |
|
82 |
|
83 public: // New functions |
|
84 |
|
85 /** |
|
86 * ?member_description. |
|
87 * @since ?Series60_version |
|
88 * @param ?arg1 ?description |
|
89 * @return ?description |
|
90 */ |
|
91 //?type ?member_function( ?type ?arg1 ); |
|
92 |
|
93 public: // Functions from base classes |
|
94 |
|
95 /** |
|
96 * From CScriptBase Runs a script line. |
|
97 * @since ?Series60_version |
|
98 * @param aItem Script line containing method name and parameters |
|
99 * @return Symbian OS error code |
|
100 */ |
|
101 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
102 |
|
103 protected: // New functions |
|
104 |
|
105 /** |
|
106 * ?member_description. |
|
107 * @since ?Series60_version |
|
108 * @param ?arg1 ?description |
|
109 * @return ?description |
|
110 */ |
|
111 //?type ?member_function( ?type ?arg1 ); |
|
112 |
|
113 protected: // Functions from base classes |
|
114 |
|
115 /** |
|
116 * From ?base_class ?member_description |
|
117 */ |
|
118 //?type ?member_function(); |
|
119 |
|
120 private: |
|
121 |
|
122 /** |
|
123 * C++ default constructor. |
|
124 */ |
|
125 Ctproviderlmarktest( CTestModuleIf& aTestModuleIf ); |
|
126 |
|
127 /** |
|
128 * By default Symbian 2nd phase constructor is private. |
|
129 */ |
|
130 void ConstructL(); |
|
131 |
|
132 // Prohibit copy constructor if not deriving from CBase. |
|
133 // ?classname( const ?classname& ); |
|
134 // Prohibit assigment operator if not deriving from CBase. |
|
135 // ?classname& operator=( const ?classname& ); |
|
136 |
|
137 /** |
|
138 * Frees all resources allocated from test methods. |
|
139 * @since ?Series60_version |
|
140 */ |
|
141 void Delete(); |
|
142 |
|
143 /** |
|
144 * Test methods are listed below. |
|
145 */ |
|
146 |
|
147 /** |
|
148 * Example test method. |
|
149 * @since ?Series60_version |
|
150 * @param aItem Script line containing parameters. |
|
151 * @return Symbian OS error code. |
|
152 */ |
|
153 virtual TInt CheckInputArgumentType( CStifItemParser& aItem ); |
|
154 virtual TInt RemoveFile( CStifItemParser& aItem ); |
|
155 TInt FillInputParmaeterList(CStifItemParser& aItem , CLiwGenericParamList* input ); |
|
156 TInt FillMap( CStifItemParser& aItem , CLiwDefaultMap* aMap ); |
|
157 TInt FillList( CStifItemParser& aItem , CLiwDefaultList* aList ); |
|
158 void PrintInputParameterList( CLiwGenericParamList* input ); |
|
159 //ADD NEW METHOD DEC HERE |
|
160 |
|
161 public: // Data |
|
162 // ?one_line_short_description_of_data |
|
163 //?data_declaration; |
|
164 |
|
165 protected: // Data |
|
166 // ?one_line_short_description_of_data |
|
167 //?data_declaration; |
|
168 |
|
169 private: // Data |
|
170 |
|
171 // ?one_line_short_description_of_data |
|
172 //?data_declaration; |
|
173 |
|
174 // Reserved pointer for future extension |
|
175 //TAny* iReserved; |
|
176 HBufC* iOutputBuffer; |
|
177 |
|
178 public: // Friend classes |
|
179 //?friend_class_declaration; |
|
180 protected: // Friend classes |
|
181 //?friend_class_declaration; |
|
182 private: // Friend classes |
|
183 //?friend_class_declaration; |
|
184 |
|
185 }; |
|
186 |
|
187 #endif // TPROVIDERLMARKTEST_H |
|
188 |
|
189 // End of File |