author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 22 | fc9cf246af83 |
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 TDELETEADD_H |
|
22 |
#define TDELETEADD_H |
|
23 |
||
24 |
#include <StifLogger.h> |
|
25 |
#include <TestScripterInternal.h> |
|
26 |
#include <StifTestModule.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
27 |
#include <StringLoader.h>//for StringLoaderLC |
19 | 28 |
#include <barsread.h>//resource reader |
29 |
#include <aknnotewrappers.h>//for note |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
30 |
#include <CVPbkVCardEng.h>//for the vcard engin |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
31 |
#include <CVPbkContactManager.h>// for iContactManager |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
32 |
#include <MVPbkContactStore.h>// for iContactStore |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
33 |
#include <TVPbkContactStoreUriPtr.h>//used in SetupL |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
34 |
#include <MVPbkContactStoreList.h>//used in SetupL to get contact stores |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
35 |
#include <MVPbkStoreContactField.h>//used in AddFieldToContactL |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
36 |
#include <MVPbkStoreContact.h>// used in many function to get the store contact |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
37 |
#include <MVPbkContactFieldTextData.h>//for the field text data |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
38 |
#include <TVPbkFieldTypeMapping.h>//used in CreateFieldTypeL() |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
39 |
#include <MVPbkFieldType.h>//return type of CreateFieldTypeL() |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
40 |
#include <MVPbkContactOperationBase.h>//for observer |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
41 |
#include <MVPbkContactFieldDateTimeData.h>//Used in AddDateFieldToContactL |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
42 |
#include <MVPbkContactLink.h>//for param in ContactsSaved() |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
43 |
#include <CVPbkContactStoreUriArray.h>//used in SetupL |
19 | 44 |
#include "contactservice.h" |
45 |
#include<cntitem.h> |
|
46 |
#include<cntdb.h> |
|
47 |
||
48 |
#include <e32base.h> |
|
49 |
#include <e32cons.h> |
|
50 |
#include<cntfldst.h> |
|
51 |
#include "contactiter.h" |
|
52 |
#include "contactcallback.h" |
|
53 |
#include <MVPbkStoreContact.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
54 |
#include <MVPbkFieldType.h> |
19 | 55 |
#include <VPbkEng.rsg> |
56 |
#include <MVPbkStoreContact.h> |
|
57 |
||
58 |
||
59 |
class Ctdeleteadd; |
|
60 |
class CContactCallback : public MContactCallback |
|
61 |
{ |
|
62 |
public: |
|
63 |
||
64 |
||
65 |
||
66 |
virtual void HandleReturnValue(TOperationEvent aEventId, const TInt& aError, TInt aTransId ); |
|
67 |
||
68 |
virtual void HandleReturnIter(const TInt& aError, CContactIter* aIter, TInt aTransId ); |
|
69 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
70 |
virtual void HandleReturnId(const TInt& aError, HBufC8* acntId, TInt aTransId ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
71 |
virtual void HandleReturnArray(const TInt& aError, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
72 |
RPointerArray<HBufC8>& aArray, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
73 |
TInt aTransId ); |
19 | 74 |
TInt iError; |
75 |
||
76 |
||
77 |
}; |
|
78 |
||
79 |
||
80 |
// CONSTANTS |
|
81 |
//const ?type ?constant_var = ?constant; |
|
82 |
||
83 |
// MACROS |
|
84 |
//#define ?macro ?macro_def |
|
85 |
// Logging path |
|
86 |
_LIT( KtdeleteaddLogPath, "\\logs\\testframework\\tcontacts\\" ); |
|
87 |
// Log file |
|
88 |
_LIT( KtdeleteaddLogFile, "tadd.txt" ); |
|
89 |
||
90 |
// FUNCTION PROTOTYPES |
|
91 |
//?type ?function_name(?arg_list); |
|
92 |
||
93 |
// FORWARD DECLARATIONS |
|
94 |
//class ?FORWARD_CLASSNAME; |
|
95 |
||
96 |
||
97 |
// DATA TYPES |
|
98 |
//enum ?declaration |
|
99 |
//typedef ?declaration |
|
100 |
//extern ?data_type; |
|
101 |
||
102 |
// CLASS DECLARATION |
|
103 |
||
104 |
/** |
|
105 |
* Ctdeleteadd test class for STIF Test Framework TestScripter. |
|
106 |
* ?other_description_lines |
|
107 |
* |
|
108 |
* @lib ?library |
|
109 |
* @since ?Series60_version |
|
110 |
*/ |
|
111 |
class Ctdeleteadd : public CScriptBase |
|
112 |
{ |
|
113 |
public: // Constructors and destructor |
|
114 |
||
115 |
/** |
|
116 |
* Two-phased constructor. |
|
117 |
*/ |
|
118 |
static Ctdeleteadd* NewL( CTestModuleIf& aTestModuleIf ); |
|
119 |
||
120 |
/** |
|
121 |
* Destructor. |
|
122 |
*/ |
|
123 |
virtual ~Ctdeleteadd(); |
|
124 |
||
125 |
public: // New functions |
|
126 |
||
127 |
/** |
|
128 |
* ?member_description. |
|
129 |
* @since ?Series60_version |
|
130 |
* @param ?arg1 ?description |
|
131 |
* @return ?description |
|
132 |
*/ |
|
133 |
//?type ?member_function( ?type ?arg1 ); |
|
134 |
||
135 |
public: // Functions from base classes |
|
136 |
||
137 |
/** |
|
138 |
* From CScriptBase Runs a script line. |
|
139 |
* @since ?Series60_version |
|
140 |
* @param aItem Script line containing method name and parameters |
|
141 |
* @return Symbian OS error code |
|
142 |
*/ |
|
143 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
144 |
||
145 |
protected: // New functions |
|
146 |
||
147 |
/** |
|
148 |
* ?member_description. |
|
149 |
* @since ?Series60_version |
|
150 |
* @param ?arg1 ?description |
|
151 |
* @return ?description |
|
152 |
*/ |
|
153 |
//?type ?member_function( ?type ?arg1 ); |
|
154 |
||
155 |
protected: // Functions from base classes |
|
156 |
||
157 |
/** |
|
158 |
* From ?base_class ?member_description |
|
159 |
*/ |
|
160 |
//?type ?member_function(); |
|
161 |
||
162 |
private: |
|
163 |
||
164 |
/** |
|
165 |
* C++ default constructor. |
|
166 |
*/ |
|
167 |
Ctdeleteadd( CTestModuleIf& aTestModuleIf ); |
|
168 |
||
169 |
/** |
|
170 |
* By default Symbian 2nd phase constructor is private. |
|
171 |
*/ |
|
172 |
void ConstructL(); |
|
173 |
||
174 |
// Prohibit copy constructor if not deriving from CBase. |
|
175 |
// ?classname( const ?classname& ); |
|
176 |
// Prohibit assigment operator if not deriving from CBase. |
|
177 |
// ?classname& operator=( const ?classname& ); |
|
178 |
||
179 |
/** |
|
180 |
* Frees all resources allocated from test methods. |
|
181 |
* @since ?Series60_version |
|
182 |
*/ |
|
183 |
void Delete(); |
|
184 |
||
185 |
/** |
|
186 |
* Test methods are listed below. |
|
187 |
*/ |
|
188 |
||
189 |
/** |
|
190 |
* Example test method. |
|
191 |
* @since ?Series60_version |
|
192 |
* @param aItem Script line containing parameters. |
|
193 |
* @return Symbian OS error code. |
|
194 |
*/ |
|
195 |
||
196 |
virtual TInt Add_Test1L( CStifItemParser& aItem ); |
|
197 |
virtual TInt Add_Test2L( CStifItemParser& aItem ); |
|
198 |
virtual TInt Add_Test3L( CStifItemParser& aItem ); |
|
199 |
virtual TInt Add_Test4L( CStifItemParser& aItem ); |
|
200 |
virtual TInt Add_Test5L( CStifItemParser& aItem ); |
|
201 |
virtual TInt Add_Test6L( CStifItemParser& aItem ); |
|
202 |
virtual TInt Add_Test7L( CStifItemParser& aItem ); |
|
203 |
virtual TInt Add_Test8L( CStifItemParser& aItem ); |
|
204 |
//virtual TInt Add_Test9L( CStifItemParser& aItem ); |
|
205 |
virtual TInt Add_Test10L( CStifItemParser& aItem ); |
|
206 |
virtual TInt Add_Test11L( CStifItemParser& aItem ); |
|
207 |
virtual TInt Add_Test12L( CStifItemParser& aItem ); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
208 |
virtual TInt Add_Test13L( CStifItemParser& aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
209 |
virtual TInt Add_Test14L( CStifItemParser& aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
210 |
virtual TInt Add_Test15L( CStifItemParser& aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
211 |
virtual TInt Add_Test16L( CStifItemParser& aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
212 |
virtual TInt Add_Test17L( CStifItemParser& aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
213 |
|
19 | 214 |
|
215 |
||
216 |
//ADD NEW METHOD DEC HERE |
|
217 |
||
218 |
public: // Data |
|
219 |
// ?one_line_short_description_of_data |
|
220 |
//?data_declaration; |
|
221 |
||
222 |
protected: // Data |
|
223 |
// ?one_line_short_description_of_data |
|
224 |
//?data_declaration; |
|
225 |
||
226 |
private: // Data |
|
227 |
||
228 |
CContactService* icontactservice; |
|
229 |
CContactCallback* icallback; |
|
230 |
||
231 |
||
232 |
// ?one_line_short_description_of_data |
|
233 |
//?data_declaration; |
|
234 |
||
235 |
// Reserved pointer for future extension |
|
236 |
//TAny* iReserved; |
|
237 |
||
238 |
public: // Friend classes |
|
239 |
//?friend_class_declaration; |
|
240 |
||
241 |
protected: // Friend classes |
|
242 |
//?friend_class_declaration; |
|
243 |
private: // Friend classes |
|
244 |
//?friend_class_declaration; |
|
245 |
||
246 |
||
247 |
}; |
|
248 |
||
249 |
#endif // TDELETEADD_H |
|
250 |
||
251 |
// End of File |