2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Phonebook 2 contact name formatter interface.
19 #ifndef MPBK2CONTACTNAMEFORMATTER2_H
20 #define MPBK2CONTACTNAMEFORMATTER2_H
24 * This class is an extension to MPbk2ContactNameFormatter.
25 * See documentation of MPbk2ContactNameFormatter from header
26 * MPbk2ContactNameFormatter.h
28 * you can access this extension by calling
29 * MPbk2ContactNameFormatter->ContactNameFormatterExtension()
31 class MPbk2ContactNameFormatter2
36 * Returns the title text for a contact.
38 * @param aContactFields Field collection representing
39 * the data in a contact.
40 * @param aFormattingFlags Formatting flags,
41 * see TPbk2ContactTitleFormattingFlags.
42 * @return A buffer containing the formatted title,
43 * or the UnnamedText() method's result if no title
46 virtual HBufC* GetContactTitleWithCompanyNameL(
47 const MVPbkBaseContactFieldCollection& aContactFields,
48 TUint32 aFormattingFlags ) = 0;
52 virtual ~MPbk2ContactNameFormatter2()
59 #endif // MPBK2CONTACTNAMEFORMATTER2_H