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 TLMDBTEST_H |
|
22 |
#define TLMDBTEST_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 |
|
32 |
// MACROS |
|
33 |
// Logging path |
|
34 |
_LIT( KTLocTestLogPath, "\\logs\\testframework\\" ); |
|
35 |
// Log file |
|
36 |
_LIT( KTLocTestLogFile, "TLmDbTest.txt" ); |
|
37 |
||
38 |
||
39 |
// FORWARD DECLARATIONS |
|
40 |
//class ?FORWARD_CLASSNAME; |
|
41 |
class CTLmDbTest; |
|
42 |
||
43 |
// CLASS DECLARATION |
|
44 |
||
45 |
/** |
|
46 |
* CTLmDbTest test class for STIF Test Framework TestScripter. |
|
47 |
* ?other_description_lines |
|
48 |
* |
|
49 |
* @lib ?library |
|
50 |
* @since ?Series60_version |
|
51 |
*/ |
|
52 |
NONSHARABLE_CLASS(CTLmDbTest) : public CScriptBase |
|
53 |
{ |
|
54 |
public: // Constructors and destructor |
|
55 |
||
56 |
/** |
|
57 |
* Two-phased constructor. |
|
58 |
*/ |
|
59 |
static CTLmDbTest* NewL( CTestModuleIf& aTestModuleIf ); |
|
60 |
||
61 |
/** |
|
62 |
* Destructor. |
|
63 |
*/ |
|
64 |
virtual ~CTLmDbTest(); |
|
65 |
||
66 |
public: // Functions from base classes |
|
67 |
||
68 |
/** |
|
69 |
* From CScriptBase Runs a script line. |
|
70 |
* @since ?Series60_version |
|
71 |
* @param aItem Script line containing method name and parameters |
|
72 |
* @return Symbian OS error code |
|
73 |
*/ |
|
74 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
75 |
||
76 |
private: |
|
77 |
||
78 |
/** |
|
79 |
* C++ default constructor. |
|
80 |
*/ |
|
81 |
CTLmDbTest( CTestModuleIf& aTestModuleIf ); |
|
82 |
||
83 |
/** |
|
84 |
* By default Symbian 2nd phase constructor is private. |
|
85 |
*/ |
|
86 |
void ConstructL(); |
|
87 |
||
88 |
/** |
|
89 |
* Frees all resources allocated from test methods. |
|
90 |
* @since ?Series60_version |
|
91 |
*/ |
|
92 |
void DeleteAllLocalDatabasesL(); |
|
93 |
||
94 |
/** |
|
95 |
* Test methods are listed below. |
|
96 |
*/ |
|
97 |
||
98 |
/** |
|
99 |
* Example test method. |
|
100 |
* @since ?Series60_version |
|
101 |
* @param aItem Script line containing parameters. |
|
102 |
* @return Symbian OS error code. |
|
103 |
*/ |
|
104 |
virtual TInt AddDatabase(CStifItemParser &aItem ); |
|
105 |
virtual TInt AddExistingDatabase(CStifItemParser &aItem ); |
|
106 |
virtual TInt DeleteDatabase(CStifItemParser &aItem ); |
|
107 |
virtual TInt AddInvalidDatabase(CStifItemParser &aItem ); |
|
108 |
virtual TInt AddRemoteDatabase(CStifItemParser &aItem ); |
|
109 |
virtual TInt UpdateDatabase(CStifItemParser &aItem ); |
|
110 |
virtual TInt SetActiveDb(CStifItemParser &aItem ); |
|
111 |
virtual TInt GetDbList(CStifItemParser &aItem ); |
|
112 |
||
113 |
public: // Data |
|
114 |
||
115 |
||
116 |
protected: // Data |
|
117 |
||
118 |
private: // Data |
|
119 |
||
120 |
CPosLmDatabaseManager* iDatabaseManager; |
|
121 |
||
122 |
public: // Friend classes |
|
123 |
//?friend_class_declaration; |
|
124 |
protected: // Friend classes |
|
125 |
//?friend_class_declaration; |
|
126 |
private: // Friend classes |
|
127 |
}; |
|
128 |
||
129 |
#endif // TLMDBTEST_H |
|
130 |
||
131 |
// End of File |