equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <e32std.h> |
|
17 #include <e32test.h> |
|
18 #include <cntdb.h> |
|
19 |
|
20 #ifndef __TADDBENCH_H__ |
|
21 #define __TADDBENCH_H__ |
|
22 |
|
23 // This class is designed to imitate the calls on the Contacts Model made by |
|
24 // CSmlContactsDba::ImportContactL v2. |
|
25 // Specifically it mimics the SyncML Add operation to import new contacts to the |
|
26 // Contacts model. |
|
27 class CAddBench : public CBase |
|
28 { |
|
29 public: |
|
30 ~CAddBench(); |
|
31 static CAddBench* NewLC(RTest& aTest); |
|
32 void ImportFileL(const TDesC& aFilename, TInt aNumEntries); |
|
33 void DoSyncL(TInt aEntryCount, const TDesC& aVCardLoc ); |
|
34 private: |
|
35 CAddBench(); |
|
36 static void CleanupPtrArray(TAny* aCArrayPtr); |
|
37 void ConstructL(RTest& aTest); |
|
38 void CreateEmptyDBL(); |
|
39 |
|
40 private: |
|
41 RFs iFs; |
|
42 RTest* iTest; //not owned |
|
43 CContactDatabase* iDb; |
|
44 TTime iTime; // for SML mimic calls |
|
45 TInt iNumContacts; |
|
46 }; |
|
47 |
|
48 |
|
49 |
|
50 #endif // __TADDBENCH_H__ |