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 - 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_PROVIDERTEST_H |
|
22 |
#define TCAL_PROVIDERTEST_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
28 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
29 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
30 |
#include <liwvariant.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
31 |
#include <liwservicehandler.h> |
19 | 32 |
#include "calendarheader.h" |
33 |
#include "calendarconstants.h" |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
34 |
#include <badesca.h> |
19 | 35 |
// CONSTANTS |
36 |
//const ?type ?constant_var = ?constant; |
|
37 |
||
38 |
// MACROS |
|
39 |
//#define ?macro ?macro_def |
|
40 |
// Logging path |
|
41 |
_LIT( Ktcal_providertestLogPath, "\\logs\\testframework\\" ); |
|
42 |
// Log file |
|
43 |
_LIT( Ktcal_providertestLogFile, "tcal_providertest.txt" ); |
|
44 |
_LIT( Ktcal_providertestLogFileWithTitle, "tcal_providertest_[%S].txt" ); |
|
45 |
||
46 |
// FUNCTION PROTOTYPES |
|
47 |
TInt RemoveProvCalendar(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar); |
|
48 |
TInt AddProvCalendar(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar); |
|
49 |
TInt AddProvAppointmentDailyRepeat(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar, TUIDSet*& uidset); |
|
50 |
TInt AddProvEvent(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar, TUIDSet*& uidset); |
|
51 |
TInt AddProvToDo(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar, TUIDSet*& uidset); |
|
52 |
TInt AddAppointmentProvLocal(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar, TUIDSet*& uidset); |
|
53 |
TInt GetLocalUid( CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, MLiwInterface* interface, const TDesC& aCalendar,TCalLocalUid& aOutLocalUid ); |
|
54 |
void GetGlobalUid( const TDesC& aGlobalUid, TDes8& aOutGlobalUid ); |
|
55 |
||
56 |
// FORWARD DECLARATIONS |
|
57 |
//class ?FORWARD_CLASSNAME; |
|
58 |
class Ctcal_providertest; |
|
59 |
||
60 |
// DATA TYPES |
|
61 |
//enum ?declaration |
|
62 |
//typedef ?declaration |
|
63 |
//extern ?data_type; |
|
64 |
||
65 |
// CLASS DECLARATION |
|
66 |
||
67 |
/** |
|
68 |
* Ctcal_providertest test class for STIF Test Framework TestScripter. |
|
69 |
* ?other_description_lines |
|
70 |
* |
|
71 |
* @lib ?library |
|
72 |
* @since ?Series60_version |
|
73 |
*/ |
|
74 |
NONSHARABLE_CLASS(Ctcal_providertest) : public CScriptBase |
|
75 |
{ |
|
76 |
public: // Constructors and destructor |
|
77 |
||
78 |
/** |
|
79 |
* Two-phased constructor. |
|
80 |
*/ |
|
81 |
static Ctcal_providertest* NewL( CTestModuleIf& aTestModuleIf ); |
|
82 |
||
83 |
/** |
|
84 |
* Destructor. |
|
85 |
*/ |
|
86 |
virtual ~Ctcal_providertest(); |
|
87 |
||
88 |
public: // New functions |
|
89 |
||
90 |
/** |
|
91 |
* ?member_description. |
|
92 |
* @since ?Series60_version |
|
93 |
* @param ?arg1 ?description |
|
94 |
* @return ?description |
|
95 |
*/ |
|
96 |
//?type ?member_function( ?type ?arg1 ); |
|
97 |
||
98 |
public: // Functions from base classes |
|
99 |
||
100 |
/** |
|
101 |
* From CScriptBase Runs a script line. |
|
102 |
* @since ?Series60_version |
|
103 |
* @param aItem Script line containing method name and parameters |
|
104 |
* @return Symbian OS error code |
|
105 |
*/ |
|
106 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
107 |
||
108 |
protected: // New functions |
|
109 |
||
110 |
/** |
|
111 |
* ?member_description. |
|
112 |
* @since ?Series60_version |
|
113 |
* @param ?arg1 ?description |
|
114 |
* @return ?description |
|
115 |
*/ |
|
116 |
//?type ?member_function( ?type ?arg1 ); |
|
117 |
||
118 |
protected: // Functions from base classes |
|
119 |
||
120 |
/** |
|
121 |
* From ?base_class ?member_description |
|
122 |
*/ |
|
123 |
//?type ?member_function(); |
|
124 |
||
125 |
private: |
|
126 |
||
127 |
/** |
|
128 |
* C++ default constructor. |
|
129 |
*/ |
|
130 |
Ctcal_providertest( CTestModuleIf& aTestModuleIf ); |
|
131 |
||
132 |
/** |
|
133 |
* By default Symbian 2nd phase constructor is private. |
|
134 |
*/ |
|
135 |
void ConstructL(); |
|
136 |
||
137 |
// Prohibit copy constructor if not deriving from CBase. |
|
138 |
// ?classname( const ?classname& ); |
|
139 |
// Prohibit assigment operator if not deriving from CBase. |
|
140 |
// ?classname& operator=( const ?classname& ); |
|
141 |
||
142 |
/** |
|
143 |
* Frees all resources allocated from test methods. |
|
144 |
* @since ?Series60_version |
|
145 |
*/ |
|
146 |
void Delete(); |
|
147 |
||
148 |
/** |
|
149 |
* Test methods are listed below. |
|
150 |
*/ |
|
151 |
||
152 |
/** |
|
153 |
* Example test method. |
|
154 |
* @since ?Series60_version |
|
155 |
* @param aItem Script line containing parameters. |
|
156 |
* @return Symbian OS error code. |
|
157 |
*/ |
|
158 |
virtual TInt RemoveFile( CStifItemParser& aItem ); |
|
159 |
||
160 |
||
161 |
virtual TInt Calendar_ops1( CStifItemParser& aItem ); |
|
162 |
virtual TInt Calendar_ops2( CStifItemParser& aItem ); |
|
163 |
virtual TInt Calendar_ops3( CStifItemParser& aItem ); |
|
164 |
virtual TInt Calendar_ops4( CStifItemParser& aItem ); |
|
165 |
virtual TInt Calendar_ops5( CStifItemParser& aItem ); |
|
166 |
virtual TInt Calendar_ops6( CStifItemParser& aItem ); |
|
167 |
virtual TInt Calendar_ops7( CStifItemParser& aItem ); |
|
168 |
virtual TInt Calendar_ops8( CStifItemParser& aItem ); |
|
169 |
virtual TInt Calendar_ops9( CStifItemParser& aItem ); |
|
170 |
virtual TInt Calendar_ops10( CStifItemParser& aItem ); |
|
171 |
virtual TInt Calendar_ops11( CStifItemParser& aItem ); |
|
172 |
virtual TInt Calendar_ops12( CStifItemParser& aItem ); |
|
173 |
virtual TInt Calendar_ops13( CStifItemParser& aItem ); |
|
174 |
virtual TInt Calendar_ops14( CStifItemParser& aItem ); |
|
175 |
virtual TInt Calendar_ops15( CStifItemParser& aItem ); |
|
176 |
virtual TInt Calendar_ops16( CStifItemParser& aItem ); |
|
177 |
virtual TInt Calendar_ops17( CStifItemParser& aItem ); |
|
178 |
||
179 |
//ADD NEW METHOD DEC HERE |
|
180 |
||
181 |
public: // Data |
|
182 |
// ?one_line_short_description_of_data |
|
183 |
//?data_declaration; |
|
184 |
||
185 |
protected: // Data |
|
186 |
// ?one_line_short_description_of_data |
|
187 |
//?data_declaration; |
|
188 |
||
189 |
private: // Data |
|
190 |
||
191 |
// ?one_line_short_description_of_data |
|
192 |
//?data_declaration; |
|
193 |
||
194 |
// Reserved pointer for future extension |
|
195 |
//TAny* iReserved; |
|
196 |
||
197 |
public: // Friend classes |
|
198 |
//?friend_class_declaration; |
|
199 |
protected: // Friend classes |
|
200 |
//?friend_class_declaration; |
|
201 |
private: // Friend classes |
|
202 |
//?friend_class_declaration; |
|
203 |
||
204 |
}; |
|
205 |
||
206 |
#endif // TCAL_PROVIDERTEST_H |
|
207 |
||
208 |
// End of File |