2 * Copyright (c) 2006-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: A factory for creating contact view filters.
19 #ifndef VPBKCONTACTVIEWFILTERBUILDER_H
20 #define VPBKCONTACTVIEWFILTERBUILDER_H
24 #include <vpbkcontactview.hrh>
26 // FORWARD DECLARATIONS
27 class CVPbkFieldTypeSelector;
28 class CVPbkContactManager;
33 * A factory for creating contact view filters.
35 * A contact view filter can be used in a contact view definition
36 * when the client wants to create a view that is filtered by
37 * field types i.e. only contacts that have a certain fields
38 * are included in the view.
40 * @see CVPbkContactViewDefinition::SetFieldTypeFilterL
43 class VPbkContactViewFilterBuilder
47 * Appends a filter for the given field type selector.
49 * @param aFieldTypeSelector The selector object to that is modified.
50 * @param aFilter Defines the field types that are added to the
52 * @param aContactManager The contact manager.
53 * @return A reference to the passed selector object for enabling
56 IMPORT_C static CVPbkFieldTypeSelector& BuildContactViewFilterL(
57 CVPbkFieldTypeSelector& aFieldTypeSelector,
58 TVPbkContactViewFilter aFilter,
59 CVPbkContactManager& aContactManager );
62 #endif // VPBKCONTACTVIEWFILTERBUILDER_H