williamr@4: /* williamr@4: * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). williamr@4: * All rights reserved. williamr@4: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@4: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: * williamr@4: * Initial Contributors: williamr@4: * Nokia Corporation - initial contribution. williamr@4: * williamr@4: * Contributors: williamr@4: * williamr@4: * Description: Virtual Phonebook contact selector interface for a williamr@4: * filtered view, CVPbkFilteredContactView . williamr@4: * williamr@4: */ williamr@4: williamr@4: williamr@4: #ifndef MVPBKCONTACTSELECTOR_H williamr@4: #define MVPBKCONTACTSELECTOR_H williamr@4: williamr@4: // INCLUDES williamr@4: #include williamr@4: williamr@4: // FORWARD DECLARATIONS williamr@4: class MVPbkBaseContact; williamr@4: williamr@4: // CLASS DECLARATIONS williamr@4: williamr@4: /** williamr@4: * Virtual Phonebook contact selector interface. williamr@4: * This inteface is used to create a contact selector object, williamr@4: */ williamr@4: class MVPbkContactSelector williamr@4: { williamr@4: public: // Interface williamr@4: /** williamr@4: * Returns true if aContact belongs to the set defined williamr@4: * by this contact selector. williamr@4: * williamr@4: * @param aContact The contact to check. williamr@4: * @return ETrue if contact is included. williamr@4: */ williamr@4: virtual TBool IsContactIncluded( williamr@4: const MVPbkBaseContact& aContact ) = 0; williamr@4: williamr@4: /** williamr@4: * Returns an extension point for this interface or NULL. williamr@4: * @param aExtensionUid Uid of extension. williamr@4: * @return Extension point or NULL. williamr@4: */ williamr@4: virtual TAny* ContactSelectorExtension( williamr@4: TUid /*aExtensionUid*/) { return NULL; } williamr@4: williamr@4: protected: williamr@4: virtual ~MVPbkContactSelector() { } williamr@4: williamr@4: }; williamr@4: williamr@4: #endif // MVPBKCONTACTSELECTOR_H williamr@4: williamr@4: //End of file