|
1 // Copyright (c) 2002-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef _TE_CNTSYNCUTILS_H_ |
|
22 #define _TE_CNTSYNCUTILS_H_ |
|
23 |
|
24 #include <phbksync.h> |
|
25 |
|
26 class CPhbkIntegrationTestUtility : public CBase |
|
27 { |
|
28 public: |
|
29 static CPhbkIntegrationTestUtility* NewL(); |
|
30 ~CPhbkIntegrationTestUtility(); |
|
31 private: |
|
32 CPhbkIntegrationTestUtility(); |
|
33 public: |
|
34 void ConstructL(); |
|
35 void CheckGroupMembershipL(CContactICCEntry& aItem, TInt aExpectedMembers); |
|
36 void CheckFieldCountL(const TUid aPhonebook, CContactICCEntry* aEntry); |
|
37 void CheckMinimalFieldCountL(const TUid aPhonebook, CContactICCEntry* aEntry); |
|
38 void CheckFieldsL(CContactICCEntry& aItem, TInt aSlotNumber); |
|
39 void CheckFieldContentL(CContactItemFieldSet& aFieldset, TFieldType aFieldType, const TDesC& aExpectedContent); |
|
40 void ReadContactL(const TUid aPhonebook, TInt aExpectedCount); |
|
41 void ReadMinimalContactL(const TUid aPhonebook, TInt aExpectedCount); |
|
42 void ChangeNameFieldL(CContactItem& aItem, const TDesC& aModifiedName); |
|
43 void ChangeNumberFieldL(CContactItem& aItem, const TDesC& aModifiedNumber); |
|
44 void OpenContactL(); |
|
45 void EditContactL(); |
|
46 void FindContactsL(const TDesC& aFindString, TFieldType aFieldToSearch, TInt aExpectedMatches); |
|
47 void DeleteContactL(const TUid aPhonebook, TInt aIndex); |
|
48 void AddContactL(const TDesC& aName, const TDesC& aNumber, const TUid aPhonebook = KUidIccGlobalAdnPhonebook, const TDesC& aEmail = KNullDesC); |
|
49 void AddContactL(const TDesC& aName, const TDesC& aNumber, const TDesC& aSlotNumber, const TUid aPhonebook = KUidIccGlobalAdnPhonebook, const TDesC& aEmail = KNullDesC); |
|
50 void AddTextFieldL(TFieldType aFieldType, TUid aMapping, const TDesC& aField, CContactICCEntry& aIccEntry); |
|
51 |
|
52 public: |
|
53 CContactDatabase* iDb; |
|
54 RPhoneBookSession iSession; |
|
55 }; |
|
56 |
|
57 #endif |