author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 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 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 CLMLANDMARKSTEST_H |
|
22 |
#define CLMLANDMARKSTEST_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
28 |
#include <EPos_HPosLmDatabaseInfo.h> |
|
29 |
#include <EPos_CPosLmDatabaseManager.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
30 |
#include <EPos_Landmarks.h> |
19 | 31 |
#include <EPos_CPosLandmarkCategory.h> |
32 |
#include <EPos_CPosLmSearchCriteria.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
33 |
#include <EPos_CPosLandmarkDatabase.h> |
19 | 34 |
#include "mlandmarkobserver.h" |
35 |
#include "landmarkservice.h" |
|
36 |
||
37 |
// CONSTANTS |
|
38 |
//const ?type ?constant_var = ?constant; |
|
39 |
||
40 |
// MACROS |
|
41 |
//#define ?macro ?macro_def |
|
42 |
// Logging path |
|
43 |
_LIT( KClmlandmarkstestLogPath, "\\logs\\testframework\\Clmlandmarkstest\\" ); |
|
44 |
// Log file |
|
45 |
_LIT( KClmlandmarkstestLogFile, "Clmlandmarkstest.txt" ); |
|
46 |
||
47 |
// FUNCTION PROTOTYPES |
|
48 |
//?type ?function_name(?arg_list); |
|
49 |
||
50 |
// FORWARD DECLARATIONS |
|
51 |
//class ?FORWARD_CLASSNAME; |
|
52 |
class CClmlandmarkstest; |
|
53 |
||
54 |
// DATA TYPES |
|
55 |
//enum ?declaration |
|
56 |
//typedef ?declaration |
|
57 |
//extern ?data_type; |
|
58 |
||
59 |
// CLASS DECLARATION |
|
60 |
||
61 |
/** |
|
62 |
* CClmlandmarkstest test class for STIF Test Framework TestScripter. |
|
63 |
* ?other_description_lines |
|
64 |
* |
|
65 |
* @lib ?library |
|
66 |
* @since ?Series60_version |
|
67 |
*/ |
|
68 |
NONSHARABLE_CLASS(CClmlandmarkstest) : public CScriptBase |
|
69 |
{ |
|
70 |
public: // Constructors and destructor |
|
71 |
||
72 |
/** |
|
73 |
* Two-phased constructor. |
|
74 |
*/ |
|
75 |
static CClmlandmarkstest* NewL( CTestModuleIf& aTestModuleIf ); |
|
76 |
||
77 |
/** |
|
78 |
* Destructor. |
|
79 |
*/ |
|
80 |
virtual ~CClmlandmarkstest(); |
|
81 |
||
82 |
public: // New functions |
|
83 |
||
84 |
/** |
|
85 |
* ?member_description. |
|
86 |
* @since ?Series60_version |
|
87 |
* @param ?arg1 ?description |
|
88 |
* @return ?description |
|
89 |
*/ |
|
90 |
//?type ?member_function( ?type ?arg1 ); |
|
91 |
||
92 |
public: // Functions from base classes |
|
93 |
||
94 |
/** |
|
95 |
* From CScriptBase Runs a script line. |
|
96 |
* @since ?Series60_version |
|
97 |
* @param aItem Script line containing method name and parameters |
|
98 |
* @return Symbian OS error code |
|
99 |
*/ |
|
100 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
101 |
||
102 |
protected: // New functions |
|
103 |
||
104 |
/** |
|
105 |
* ?member_description. |
|
106 |
* @since ?Series60_version |
|
107 |
* @param ?arg1 ?description |
|
108 |
* @return ?description |
|
109 |
*/ |
|
110 |
//?type ?member_function( ?type ?arg1 ); |
|
111 |
||
112 |
protected: // Functions from base classes |
|
113 |
||
114 |
/** |
|
115 |
* From ?base_class ?member_description |
|
116 |
*/ |
|
117 |
//?type ?member_function(); |
|
118 |
||
119 |
private: |
|
120 |
||
121 |
/** |
|
122 |
* C++ default constructor. |
|
123 |
*/ |
|
124 |
CClmlandmarkstest( CTestModuleIf& aTestModuleIf ); |
|
125 |
||
126 |
/** |
|
127 |
* By default Symbian 2nd phase constructor is private. |
|
128 |
*/ |
|
129 |
void ConstructL(); |
|
130 |
||
131 |
// Prohibit copy constructor if not deriving from CBase. |
|
132 |
// ?classname( const ?classname& ); |
|
133 |
// Prohibit assigment operator if not deriving from CBase. |
|
134 |
// ?classname& operator=( const ?classname& ); |
|
135 |
||
136 |
/** |
|
137 |
* Frees all resources allocated from test methods. |
|
138 |
* @since ?Series60_version |
|
139 |
*/ |
|
140 |
void Delete(); |
|
141 |
||
142 |
/** |
|
143 |
* Test methods are listed below. |
|
144 |
*/ |
|
145 |
||
146 |
/** |
|
147 |
* Example test method. |
|
148 |
* @since ?Series60_version |
|
149 |
* @param aItem Script line containing parameters. |
|
150 |
* @return Symbian OS error code. |
|
151 |
*/ |
|
152 |
//virtual TInt ExampleL( CStifItemParser& aItem ); |
|
153 |
virtual TInt AddLandmarkL(CStifItemParser &aItem ); |
|
154 |
virtual TInt UpdateLandmarkL(CStifItemParser &aItem ); |
|
155 |
virtual TInt RemoveLandmarkL(CStifItemParser &aItem ); |
|
156 |
virtual TInt ImportLandmarkL(CStifItemParser &aItem ); |
|
157 |
virtual TInt ExportLandmarkL(CStifItemParser &aItem ); |
|
158 |
virtual TInt GetlistAsyncTest1(CStifItemParser &aItem ); |
|
159 |
virtual TInt GetlistAsyncTest2(CStifItemParser &aItem ); |
|
160 |
virtual TInt LandmarkGetlistSync( CStifItemParser &aItem ); |
|
161 |
virtual TInt LandmarkGetlistGtk( CStifItemParser &aItem ); |
|
162 |
enum TestCaseId |
|
163 |
{ |
|
164 |
ELandmarksGetlist=0, |
|
165 |
ECategoryGetlist, |
|
166 |
}; |
|
167 |
||
168 |
void RemoveAllLandmarks ( CPosLandmarkDatabase* aLandmarkHandle ); |
|
169 |
||
170 |
public: // Data |
|
171 |
// ?one_line_short_description_of_data |
|
172 |
//?data_declaration; |
|
173 |
||
174 |
protected: // Data |
|
175 |
// ?one_line_short_description_of_data |
|
176 |
//?data_declaration; |
|
177 |
||
178 |
private: // Data |
|
179 |
CPosLmDatabaseManager* iDatabaseManager; |
|
180 |
CPosLandmarkDatabase* iDefaultLmHandle; |
|
181 |
TInt iTestCaseId; |
|
182 |
}; |
|
183 |
||
184 |
#endif // CLMLANDMARKSTEST_H |
|
185 |
||
186 |
// End of File |