phonebookengines/contactsmodel/cntmatchlog/inc/CntMatchLog.h
changeset 0 e686773b3f54
child 24 0ba2181d7c28
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2006-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 #ifndef __CNTMATCHLOG_H__
       
    17 #define __CNTMATCHLOG_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <logcntmodel.h>
       
    21 #include <cntdb.h>
       
    22 
       
    23 class CCntMatchLog : public CLogCntModel
       
    24 /** Plugin implementation that provide contacts matching functionality. 
       
    25  
       
    26 @internalAll */
       
    27 	{
       
    28 public:
       
    29 	static CCntMatchLog* NewL();
       
    30 	virtual void OpenContactsL();
       
    31 	virtual	void CloseContacts();
       
    32 	virtual TLogContactItemId MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight);
       
    33 	virtual void ReadContactNameL(TLogContactItemId aContactId, TDes &aName, TLogContactNameFormat aNameFormat);
       
    34 
       
    35 private:
       
    36 	~CCntMatchLog();
       
    37 	CCntMatchLog();
       
    38 	CContactDatabase* iContactDb;
       
    39 	};
       
    40 	
       
    41 #endif