sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: // Header file of the ECom impletementation of  for testing contact matching.
sl@0: //
sl@0: 
sl@0: #ifndef __CNTMATCHLOG_H__
sl@0: #define __CNTMATCHLOG_H__
sl@0: 
sl@0: #include <e32base.h>
sl@0: #include <logcntmodel.h>
sl@0: #include <badesca.h>
sl@0: #include <e32des16.h>
sl@0: 
sl@0: //The contact items
sl@0: const TInt KNumberOfItems = 7; 
sl@0: 
sl@0: _LIT(KNumber1, "447700900000");
sl@0: _LIT(KNumber2, "+441632960000");
sl@0: _LIT(KNumber3, "07700900001");
sl@0: _LIT(KNumber4, "447756900111");
sl@0: _LIT(KNumber5, "447756900111");
sl@0: _LIT(KNumber6, "1234567890");
sl@0: _LIT(KNumber7, "0123456789");
sl@0: 
sl@0: _LIT(KFirstName1, "Barney");
sl@0: _LIT(KFirstName2, "Elma");
sl@0: _LIT(KFirstName3, "Peter");
sl@0: _LIT(KFirstName4, "Abc");
sl@0: _LIT(KFirstName5, "Rtyu");
sl@0: _LIT(KFirstName6, "Zxcvb");
sl@0: _LIT(KFirstName7, "AAA");
sl@0: 
sl@0: _LIT(KLastName1, "Rubble");
sl@0: _LIT(KLastName2, "Fudd");
sl@0: _LIT(KLastName3, "Harper");
sl@0: _LIT(KLastName4, "Lkjhgf");
sl@0: _LIT(KLastName5, "Poiuytqwe");
sl@0: _LIT(KLastName6, "Mnbvcxz");
sl@0: _LIT(KLastName7, "BBB");
sl@0: 
sl@0: /** Plugin implementation that provide contacts matching functionality. 
sl@0:  
sl@0: @internalAll
sl@0: */
sl@0: class CLogTestCntMatch : public CLogCntModel
sl@0:     {
sl@0: public:
sl@0:     static CLogTestCntMatch* NewL();
sl@0:     virtual void OpenContactsL();
sl@0:     virtual void CloseContacts();
sl@0:     virtual TLogContactItemId MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight);
sl@0:     virtual void ReadContactNameL(TLogContactItemId aContactId, TDes &aName, TLogContactNameFormat aNameFormat);
sl@0: 
sl@0: private:
sl@0:     ~CLogTestCntMatch();
sl@0:     CLogTestCntMatch();
sl@0:     
sl@0:     void ConstructL();
sl@0:     CDesCArray* iTelNumbers;
sl@0:     CDesCArray* iContactFirstNames;
sl@0:     CDesCArray* iContactLastNames;
sl@0:     };
sl@0: 	
sl@0: #endif