|
1 /* |
|
2 * Copyright (c) 2006-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 #ifndef TMSGGET_ASYNC_H |
|
20 #define TMSGGET_ASYNC_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <StifLogger.h> |
|
24 #include <TestScripterInternal.h> |
|
25 #include <StifTestModule.h> |
|
26 #include <TestclassAssert.h> |
|
27 #include <LiwCommon.h> |
|
28 #include <LiwServiceHandler.h> |
|
29 |
|
30 // CONSTANTS |
|
31 //const ?type ?constant_var = ?constant; |
|
32 |
|
33 // MACROS |
|
34 //#define ?macro ?macro_def |
|
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( Ktmsgget_asyncLogPath, "\\logs\\testframework\\tmsgget_async\\" ); |
|
41 // Log file |
|
42 _LIT( Ktmsgget_asyncLogFile, "tmsgget_async.txt" ); |
|
43 _LIT( Ktmsgget_asyncLogFileWithTitle, "tmsgget_async_[%S].txt" ); |
|
44 |
|
45 // FUNCTION PROTOTYPES |
|
46 //?type ?function_name(?arg_list); |
|
47 |
|
48 // FORWARD DECLARATIONS |
|
49 //class ?FORWARD_CLASSNAME; |
|
50 class Ctmsgget_async; |
|
51 |
|
52 // DATA TYPES |
|
53 //enum ?declaration |
|
54 //typedef ?declaration |
|
55 //extern ?data_type; |
|
56 |
|
57 // CLASS DECLARATION |
|
58 |
|
59 /** |
|
60 * Ctmsgget_async test class for STIF Test Framework TestScripter. |
|
61 * ?other_description_lines |
|
62 * |
|
63 * @lib ?library |
|
64 * @since ?Series60_version |
|
65 */ |
|
66 NONSHARABLE_CLASS(Ctmsgget_async) : public CScriptBase,public MLiwNotifyCallback |
|
67 { |
|
68 public: // Constructors and destructor |
|
69 |
|
70 enum AsyncTestID |
|
71 { |
|
72 ESMS, |
|
73 EMMS, |
|
74 }; |
|
75 /** |
|
76 * Two-phased constructor. |
|
77 */ |
|
78 static Ctmsgget_async* NewL( CTestModuleIf& aTestModuleIf ); |
|
79 |
|
80 /** |
|
81 * Destructor. |
|
82 */ |
|
83 virtual ~Ctmsgget_async(); |
|
84 |
|
85 public: // New functions |
|
86 |
|
87 /** |
|
88 * ?member_description. |
|
89 * @since ?Series60_version |
|
90 * @param ?arg1 ?description |
|
91 * @return ?description |
|
92 */ |
|
93 //?type ?member_function( ?type ?arg1 ); |
|
94 |
|
95 public: // Functions from base classes |
|
96 |
|
97 /** |
|
98 * From CScriptBase Runs a script line. |
|
99 * @since ?Series60_version |
|
100 * @param aItem Script line containing method name and parameters |
|
101 * @return Symbian OS error code |
|
102 */ |
|
103 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
104 |
|
105 protected: // New functions |
|
106 |
|
107 /** |
|
108 * ?member_description. |
|
109 * @since ?Series60_version |
|
110 * @param ?arg1 ?description |
|
111 * @return ?description |
|
112 */ |
|
113 //?type ?member_function( ?type ?arg1 ); |
|
114 |
|
115 protected: // Functions from base classes |
|
116 |
|
117 /** |
|
118 * From ?base_class ?member_description |
|
119 */ |
|
120 //?type ?member_function(); |
|
121 |
|
122 private: |
|
123 |
|
124 /** |
|
125 * C++ default constructor. |
|
126 */ |
|
127 Ctmsgget_async( CTestModuleIf& aTestModuleIf ); |
|
128 |
|
129 /** |
|
130 * By default Symbian 2nd phase constructor is private. |
|
131 */ |
|
132 void ConstructL(); |
|
133 |
|
134 // Prohibit copy constructor if not deriving from CBase. |
|
135 // ?classname( const ?classname& ); |
|
136 // Prohibit assigment operator if not deriving from CBase. |
|
137 // ?classname& operator=( const ?classname& ); |
|
138 |
|
139 /** |
|
140 * Frees all resources allocated from test methods. |
|
141 * @since ?Series60_version |
|
142 */ |
|
143 void Delete(); |
|
144 |
|
145 /** |
|
146 * Test methods are listed below. |
|
147 */ |
|
148 |
|
149 /** |
|
150 * Example test method. |
|
151 * @since ?Series60_version |
|
152 * @param aItem Script line containing parameters. |
|
153 * @return Symbian OS error code. |
|
154 */ |
|
155 virtual TInt ExampleL( CStifItemParser& aItem ); |
|
156 virtual TInt getlist_asyncsmsL( CStifItemParser& aItem ); |
|
157 virtual TInt getlist_asyncmmsL( CStifItemParser& aItem ); |
|
158 virtual TInt getlist_asyncstressL( CStifItemParser& aItem ); |
|
159 //void CreateInterfaceL(CLiwServiceHandler*& aHandler, |
|
160 // MLiwInterface*& aInterface); |
|
161 /** |
|
162 * Method used to log version of test class |
|
163 */ |
|
164 void SendTestClassVersion(); |
|
165 |
|
166 //ADD NEW METHOD DEC HERE |
|
167 //[TestMethods] - Do not remove |
|
168 |
|
169 public: // Data |
|
170 // ?one_line_short_description_of_data |
|
171 //?data_declaration; |
|
172 |
|
173 protected: // Data |
|
174 // ?one_line_short_description_of_data |
|
175 //?data_declaration; |
|
176 |
|
177 private:// Data |
|
178 // CLiwServiceHandler* iServiceHandler; |
|
179 // MLiwInterface* interface; |
|
180 TInt iResult; |
|
181 AsyncTestID iTestid; |
|
182 // ?one_line_short_description_of_data |
|
183 //?data_declaration; |
|
184 |
|
185 // Reserved pointer for future extension |
|
186 //TAny* iReserved; |
|
187 |
|
188 public: // Friend classes |
|
189 //?friend_class_declaration; |
|
190 protected: // Friend classes |
|
191 //?friend_class_declaration; |
|
192 TInt HandleNotifyL( |
|
193 TInt aCmdId, |
|
194 TInt aEventId, |
|
195 CLiwGenericParamList& aEventParamList, |
|
196 const CLiwGenericParamList& aInputParam); |
|
197 private: // Friend classes |
|
198 //?friend_class_declaration; |
|
199 |
|
200 }; |
|
201 |
|
202 #endif // TMSGGET_ASYNC_H |
|
203 |
|
204 // End of File |