2 * Copyright (c) 2002-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: Virtual Phonebook interface for field ordering.
15 * Compares two fields.
20 #ifndef MVPBKCONTACTFIELDORDERING_H
21 #define MVPBKCONTACTFIELDORDERING_H
26 // FORWARD DECLARATIONS
27 class MVPbkBaseContactField;
32 * Virtual Phonebook Contact field ordering interface.
33 * This inteface is used for comparing two contact fields, when setting up
36 class MVPbkContactFieldOrdering
40 * Returns the relative ordering of two fields.
42 * @param aLhs Left-hand side of the compare.
43 * @param aRhs Right-hand side of the compare.
44 * @return <0 if aLhs < aRhs, >0 if aLhs > aRhs or 0 if aLhs==aRhs.
46 virtual TInt CompareFields(
47 const MVPbkBaseContactField& aLhs,
48 const MVPbkBaseContactField& aRhs) const =0;
51 * Returns an extension point for this interface or NULL.
52 * @param aExtensionUid Uid of extension.
53 * @return Extension point or NULL.
55 virtual TAny* ContactFieldOrderingExtension(
56 TUid /*aExtensionUid*/) { return NULL; }
62 virtual ~MVPbkContactFieldOrdering() { }
66 #endif // MVPBKCONTACTFIELDORDERING_H