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 contact selector interface for a
15 * filtered view, CVPbkFilteredContactView .
20 #ifndef MVPBKCONTACTSELECTOR_H
21 #define MVPBKCONTACTSELECTOR_H
26 // FORWARD DECLARATIONS
27 class MVPbkBaseContact;
32 * Virtual Phonebook contact selector interface.
33 * This inteface is used to create a contact selector object,
35 class MVPbkContactSelector
39 * Returns true if aContact belongs to the set defined
40 * by this contact selector.
42 * @param aContact The contact to check.
43 * @return ETrue if contact is included.
45 virtual TBool IsContactIncluded(
46 const MVPbkBaseContact& aContact ) = 0;
49 * Returns an extension point for this interface or NULL.
50 * @param aExtensionUid Uid of extension.
51 * @return Extension point or NULL.
53 virtual TAny* ContactSelectorExtension(
54 TUid /*aExtensionUid*/) { return NULL; }
57 virtual ~MVPbkContactSelector() { }
61 #endif // MVPBKCONTACTSELECTOR_H