diff -r 5f000ab63145 -r 838b0a10d15b phoneengine/callhandling/inc/tpematcher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/callhandling/inc/tpematcher.h Tue Jan 26 11:57:27 2010 +0200 @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This file contains the header file of the class TPEMatcher. +* +*/ + +#ifndef TPEMATCHER_H_ +#define TPEMATCHER_H_ + +#include +#include + +class TPEMatcher + { +public: + + /** + * C++ default constructor. + */ + TPEMatcher(); + + /** + * Destructor. + */ + ~TPEMatcher(); + + /** + * Finds if the two numbers match. Numbers are matched from + * right to left. If either or both of the numbers passed as a parameter + * are shorter than aCount the shortes number count is used in + * matching. + * + * @since S60 v5.2 + * @param aNumber1 phone number. + * @param aNumber2 phone number. + * @param aCount Digit count used to match numbers. + * @return Found match. + */ + TBool numbersMatch( const TDesC& aNumber1, const TDesC& aNumber2, TInt aCount ); + + }; + + +#endif /* TPEMATCHER_H_ */