author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 27 Aug 2009 07:43:07 +0300 | |
changeset 22 | fc9cf246af83 |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 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 TCAL_GETLIST_H |
|
22 |
#define TCAL_GETLIST_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
28 |
||
29 |
||
30 |
// CONSTANTS |
|
31 |
//const ?type ?constant_var = ?constant; |
|
32 |
||
33 |
// MACROS |
|
34 |
//#define ?macro ?macro_def |
|
35 |
||
36 |
||
37 |
// FUNCTION PROTOTYPES |
|
38 |
//?type ?function_name(?arg_list); |
|
39 |
||
40 |
// FORWARD DECLARATIONS |
|
41 |
//class ?FORWARD_CLASSNAME; |
|
42 |
class Ctcal_getlist; |
|
43 |
||
44 |
// DATA TYPES |
|
45 |
//enum ?declaration |
|
46 |
//typedef ?declaration |
|
47 |
//extern ?data_type; |
|
48 |
||
49 |
// CLASS DECLARATION |
|
50 |
||
51 |
/** |
|
52 |
* Ctcal_getlist test class for STIF Test Framework TestScripter. |
|
53 |
* ?other_description_lines |
|
54 |
* |
|
55 |
* @lib ?library |
|
56 |
* @since ?Series60_version |
|
57 |
*/ |
|
58 |
NONSHARABLE_CLASS(Ctcal_getlist) : public CScriptBase |
|
59 |
{ |
|
60 |
public: // Constructors and destructor |
|
61 |
||
62 |
/** |
|
63 |
* Two-phased constructor. |
|
64 |
*/ |
|
65 |
static Ctcal_getlist* NewL( CTestModuleIf& aTestModuleIf ); |
|
66 |
||
67 |
/** |
|
68 |
* Destructor. |
|
69 |
*/ |
|
70 |
virtual ~Ctcal_getlist(); |
|
71 |
||
72 |
public: // New functions |
|
73 |
||
74 |
/** |
|
75 |
* ?member_description. |
|
76 |
* @since ?Series60_version |
|
77 |
* @param ?arg1 ?description |
|
78 |
* @return ?description |
|
79 |
*/ |
|
80 |
//?type ?member_function( ?type ?arg1 ); |
|
81 |
||
82 |
public: // Functions from base classes |
|
83 |
||
84 |
/** |
|
85 |
* From CScriptBase Runs a script line. |
|
86 |
* @since ?Series60_version |
|
87 |
* @param aItem Script line containing method name and parameters |
|
88 |
* @return Symbian OS error code |
|
89 |
*/ |
|
90 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
91 |
||
92 |
protected: // New functions |
|
93 |
||
94 |
/** |
|
95 |
* ?member_description. |
|
96 |
* @since ?Series60_version |
|
97 |
* @param ?arg1 ?description |
|
98 |
* @return ?description |
|
99 |
*/ |
|
100 |
//?type ?member_function( ?type ?arg1 ); |
|
101 |
||
102 |
protected: // Functions from base classes |
|
103 |
||
104 |
/** |
|
105 |
* From ?base_class ?member_description |
|
106 |
*/ |
|
107 |
//?type ?member_function(); |
|
108 |
||
109 |
private: |
|
110 |
||
111 |
/** |
|
112 |
* C++ default constructor. |
|
113 |
*/ |
|
114 |
Ctcal_getlist( CTestModuleIf& aTestModuleIf ); |
|
115 |
||
116 |
/** |
|
117 |
* By default Symbian 2nd phase constructor is private. |
|
118 |
*/ |
|
119 |
void ConstructL(); |
|
120 |
||
121 |
// Prohibit copy constructor if not deriving from CBase. |
|
122 |
// ?classname( const ?classname& ); |
|
123 |
// Prohibit assigment operator if not deriving from CBase. |
|
124 |
// ?classname& operator=( const ?classname& ); |
|
125 |
||
126 |
/** |
|
127 |
* Frees all resources allocated from test methods. |
|
128 |
* @since ?Series60_version |
|
129 |
*/ |
|
130 |
void Delete(); |
|
131 |
void printUid(const TDesC8& aGuid); |
|
132 |
||
133 |
/** |
|
134 |
* Test methods are listed below. |
|
135 |
*/ |
|
136 |
||
137 |
/** |
|
138 |
* Example test method. |
|
139 |
* @since ?Series60_version |
|
140 |
* @param aItem Script line containing parameters. |
|
141 |
* @return Symbian OS error code. |
|
142 |
*/ |
|
143 |
virtual TInt EmptyGetList( CStifItemParser& aItem ); |
|
144 |
virtual TInt AddGetList( CStifItemParser& aItem ); |
|
145 |
virtual TInt DeleteDefaultCalendar( CStifItemParser& aItem ); |
|
146 |
virtual TInt GetDefaultCalendar( CStifItemParser& aItem ); |
|
147 |
virtual TInt DefaultArgTest( CStifItemParser& aItem ); |
|
148 |
virtual TInt InvalidArgTest( CStifItemParser& aItem ); |
|
149 |
virtual TInt GetCalByGUid( CStifItemParser& aItem ); |
|
150 |
virtual TInt GetUpdatedEntByGuid( CStifItemParser& aItem ); |
|
151 |
virtual TInt GetUpdatedEntByLuid( CStifItemParser& aItem ); |
|
152 |
virtual TInt GetCalByLuid( CStifItemParser& aItem ); |
|
153 |
virtual TInt GetCalEntBySearchFilter( CStifItemParser& aItem ); |
|
154 |
virtual TInt GetCalEntByTimeFilter( CStifItemParser& aItem ); |
|
155 |
virtual TInt GetCalEntByTypeFilter( CStifItemParser& aItem ); |
|
156 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
157 |
virtual TInt GetListTimeRangeFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
158 |
virtual TInt GetListGuidFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
159 |
virtual TInt GetListLuidFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
160 |
virtual TInt GetListTextFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
161 |
virtual TInt GetListTypeFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
162 |
virtual TInt GetListInvalidGuidFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
163 |
virtual TInt GetListInvalidLuidFilterAsync(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
164 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
165 |
|
19 | 166 |
//ADD NEW METHOD DEC HERE |
167 |
||
168 |
public: // Data |
|
169 |
// ?one_line_short_description_of_data |
|
170 |
//?data_declaration; |
|
171 |
||
172 |
protected: // Data |
|
173 |
// ?one_line_short_description_of_data |
|
174 |
//?data_declaration; |
|
175 |
||
176 |
private: // Data |
|
177 |
||
178 |
// ?one_line_short_description_of_data |
|
179 |
//?data_declaration; |
|
180 |
||
181 |
// Reserved pointer for future extension |
|
182 |
//TAny* iReserved; |
|
183 |
||
184 |
public: // Friend classes |
|
185 |
//?friend_class_declaration; |
|
186 |
protected: // Friend classes |
|
187 |
//?friend_class_declaration; |
|
188 |
private: // Friend classes |
|
189 |
//?friend_class_declaration; |
|
190 |
||
191 |
}; |
|
192 |
||
193 |
#endif // TCAL_GETLIST_H |
|
194 |
||
195 |
// End of File |