|
1 // Copyright (c) 2010 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 // Header file of the ECom impletementation of for testing contact matching. |
|
15 // |
|
16 |
|
17 #ifndef __CNTMATCHLOG_H__ |
|
18 #define __CNTMATCHLOG_H__ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <logcntmodel.h> |
|
22 #include <badesca.h> |
|
23 #include <e32des16.h> |
|
24 |
|
25 //The contact items |
|
26 const TInt KNumberOfItems = 7; |
|
27 |
|
28 _LIT(KNumber1, "447700900000"); |
|
29 _LIT(KNumber2, "+441632960000"); |
|
30 _LIT(KNumber3, "07700900001"); |
|
31 _LIT(KNumber4, "447756900111"); |
|
32 _LIT(KNumber5, "447756900111"); |
|
33 _LIT(KNumber6, "1234567890"); |
|
34 _LIT(KNumber7, "0123456789"); |
|
35 |
|
36 _LIT(KFirstName1, "Barney"); |
|
37 _LIT(KFirstName2, "Elma"); |
|
38 _LIT(KFirstName3, "Peter"); |
|
39 _LIT(KFirstName4, "Abc"); |
|
40 _LIT(KFirstName5, "Rtyu"); |
|
41 _LIT(KFirstName6, "Zxcvb"); |
|
42 _LIT(KFirstName7, "AAA"); |
|
43 |
|
44 _LIT(KLastName1, "Rubble"); |
|
45 _LIT(KLastName2, "Fudd"); |
|
46 _LIT(KLastName3, "Harper"); |
|
47 _LIT(KLastName4, "Lkjhgf"); |
|
48 _LIT(KLastName5, "Poiuytqwe"); |
|
49 _LIT(KLastName6, "Mnbvcxz"); |
|
50 _LIT(KLastName7, "BBB"); |
|
51 |
|
52 /** Plugin implementation that provide contacts matching functionality. |
|
53 |
|
54 @internalAll |
|
55 */ |
|
56 class CLogTestCntMatch : public CLogCntModel |
|
57 { |
|
58 public: |
|
59 static CLogTestCntMatch* NewL(); |
|
60 virtual void OpenContactsL(); |
|
61 virtual void CloseContacts(); |
|
62 virtual TLogContactItemId MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight); |
|
63 virtual void ReadContactNameL(TLogContactItemId aContactId, TDes &aName, TLogContactNameFormat aNameFormat); |
|
64 |
|
65 private: |
|
66 ~CLogTestCntMatch(); |
|
67 CLogTestCntMatch(); |
|
68 |
|
69 void ConstructL(); |
|
70 CDesCArray* iTelNumbers; |
|
71 CDesCArray* iContactFirstNames; |
|
72 CDesCArray* iContactLastNames; |
|
73 }; |
|
74 |
|
75 #endif |