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: LandmarkUi Content File |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef UTAPPLMKADDEDIT_H |
|
26 #define UTAPPLMKADDEDIT_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <StifLogger.h> |
|
30 #include <TestScripterInternal.h> |
|
31 #include <StifTestModule.h> |
|
32 |
|
33 #include "UTAppLmkEditorEngine.h" |
|
34 |
|
35 |
|
36 // CONSTANTS |
|
37 //const ?type ?constant_var = ?constant; |
|
38 const TInt32 MAX_EXPONENT1 = 256; |
|
39 const TInt32 DEFAULT = 0; |
|
40 const TInt32 NULL_DB = 1; |
|
41 const TInt32 NON_EXISTING_LM = 2; |
|
42 const TInt32 EDIT_MODE = 0; |
|
43 const TInt32 VIEW_MODE = 1; |
|
44 |
|
45 |
|
46 // MACROS |
|
47 //#define ?macro ?macro_def |
|
48 #define TEST_CLASS_VERSION_MAJOR 30 |
|
49 #define TEST_CLASS_VERSION_MINOR 9 |
|
50 #define TEST_CLASS_VERSION_BUILD 6 |
|
51 |
|
52 // Logging path |
|
53 _LIT( KUTAppLmkAddEditLogPath, "\\logs\\testframework\\UTAppLmkAddEdit\\" ); |
|
54 // Log file |
|
55 _LIT( KUTAppLmkAddEditLogFile, "UTAppLmkAddEdit.txt" ); |
|
56 _LIT( KUTAppLmkAddEditLogFileWithTitle, "UTAppLmkAddEdit_[%S].txt" ); |
|
57 |
|
58 // FUNCTION PROTOTYPES |
|
59 //?type ?function_name(?arg_list); |
|
60 |
|
61 // FORWARD DECLARATIONS |
|
62 //class ?FORWARD_CLASSNAME; |
|
63 class CUTAppLmkAddEdit; |
|
64 |
|
65 // DATA TYPES |
|
66 //enum ?declaration |
|
67 //typedef ?declaration |
|
68 //extern ?data_type; |
|
69 |
|
70 // CLASS DECLARATION |
|
71 |
|
72 /** |
|
73 * CUTAppLmkAddEdit test class for STIF Test Framework TestScripter. |
|
74 * ?other_description_lines |
|
75 * |
|
76 * @lib ?library |
|
77 * @since ?Series60_version |
|
78 */ |
|
79 NONSHARABLE_CLASS(CUTAppLmkAddEdit) : public CScriptBase |
|
80 { |
|
81 public: // Constructors and destructor |
|
82 |
|
83 /** |
|
84 * Two-phased constructor. |
|
85 */ |
|
86 static CUTAppLmkAddEdit* NewL( CTestModuleIf& aTestModuleIf ); |
|
87 |
|
88 /** |
|
89 * Destructor. |
|
90 */ |
|
91 virtual ~CUTAppLmkAddEdit(); |
|
92 |
|
93 public: // New functions |
|
94 |
|
95 /** |
|
96 * ?member_description. |
|
97 * @since ?Series60_version |
|
98 * @param ?arg1 ?description |
|
99 * @return ?description |
|
100 */ |
|
101 //?type ?member_function( ?type ?arg1 ); |
|
102 |
|
103 public: // Functions from base classes |
|
104 |
|
105 /** |
|
106 * From CScriptBase Runs a script line. |
|
107 * @since ?Series60_version |
|
108 * @param aItem Script line containing method name and parameters |
|
109 * @return Symbian OS error code |
|
110 */ |
|
111 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
112 |
|
113 protected: // New functions |
|
114 |
|
115 /** |
|
116 * ?member_description. |
|
117 * @since ?Series60_version |
|
118 * @param ?arg1 ?description |
|
119 * @return ?description |
|
120 */ |
|
121 //?type ?member_function( ?type ?arg1 ); |
|
122 |
|
123 protected: // Functions from base classes |
|
124 |
|
125 /** |
|
126 * From ?base_class ?member_description |
|
127 */ |
|
128 //?type ?member_function(); |
|
129 |
|
130 private: |
|
131 |
|
132 /** |
|
133 * C++ default constructor. |
|
134 */ |
|
135 CUTAppLmkAddEdit( CTestModuleIf& aTestModuleIf ); |
|
136 |
|
137 /** |
|
138 * By default Symbian 2nd phase constructor is private. |
|
139 */ |
|
140 void ConstructL(); |
|
141 |
|
142 // Prohibit copy constructor if not deriving from CBase. |
|
143 // ?classname( const ?classname& ); |
|
144 // Prohibit assigment operator if not deriving from CBase. |
|
145 // ?classname& operator=( const ?classname& ); |
|
146 |
|
147 /** |
|
148 * Frees all resources allocated from test methods. |
|
149 * @since ?Series60_version |
|
150 */ |
|
151 void Delete(); |
|
152 |
|
153 /** |
|
154 * Test methods are listed below. |
|
155 */ |
|
156 |
|
157 /** |
|
158 * Example test method. |
|
159 * @since ?Series60_version |
|
160 * @param aItem Script line containing parameters. |
|
161 * @return Symbian OS error code. |
|
162 */ |
|
163 virtual TInt ExampleL( CStifItemParser& aItem ); |
|
164 virtual TInt TestNewL( CStifItemParser& aItem ); |
|
165 virtual TInt TestNew2L( CStifItemParser& aItem ); |
|
166 virtual TInt TestExecuteLD( CStifItemParser& aItem ); |
|
167 virtual TInt TestSetMopParentL( CStifItemParser& aItem ); |
|
168 virtual TInt TestSetHelpContextL( CStifItemParser& aItem ); |
|
169 virtual TInt TestDisableMapAndNaviOptionsL( CStifItemParser& aItem ); |
|
170 |
|
171 void DrainMemory(); |
|
172 void RestoreMemory(); |
|
173 |
|
174 //virtual TInt TestSetMoParent( CStifItemParser& aItem ); |
|
175 /** |
|
176 * Method used to log version of test class |
|
177 */ |
|
178 void SendTestClassVersion(); |
|
179 |
|
180 |
|
181 //ADD NEW METHOD DEC HERE |
|
182 //[TestMethods] - Do not remove |
|
183 |
|
184 public: // Data |
|
185 // ?one_line_short_description_of_data |
|
186 //?data_declaration; |
|
187 |
|
188 protected: // Data |
|
189 // ?one_line_short_description_of_data |
|
190 //?data_declaration; |
|
191 |
|
192 private: // Data |
|
193 CLmkAddEditEngine* engine; |
|
194 TAny* cells[MAX_EXPONENT1]; |
|
195 // ?one_line_short_description_of_data |
|
196 //?data_declaration; |
|
197 |
|
198 // Reserved pointer for future extension |
|
199 //TAny* iReserved; |
|
200 |
|
201 public: // Friend classes |
|
202 //?friend_class_declaration; |
|
203 protected: // Friend classes |
|
204 //?friend_class_declaration; |
|
205 private: // Friend classes |
|
206 //?friend_class_declaration; |
|
207 |
|
208 |
|
209 }; |
|
210 |
|
211 #endif // UTAPPLMKADDEDIT_H |
|
212 |
|
213 // End of File |
|