epoc32/include/app/VPbkContactViewFilterBuilder.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:  A factory for creating contact view filters.
    15 *
    16 */
    17 
    18 
    19 #ifndef VPBKCONTACTVIEWFILTERBUILDER_H
    20 #define VPBKCONTACTVIEWFILTERBUILDER_H
    21 
    22 //  INCLUDES
    23 #include <e32base.h>
    24 #include <vpbkcontactview.hrh>
    25 
    26 // FORWARD DECLARATIONS
    27 class CVPbkFieldTypeSelector;
    28 class CVPbkContactManager;
    29 
    30 // CLASS DECLARATION
    31 
    32 /**
    33  * A factory for creating contact view filters.
    34  *
    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.
    39  *
    40  * @see CVPbkContactViewDefinition::SetFieldTypeFilterL
    41  * @lib VPbkEng.lib
    42  */
    43 class VPbkContactViewFilterBuilder
    44     {
    45     public: // Interface
    46         /**
    47          * Appends a filter for the given field type selector.
    48          *
    49          * @param aFieldTypeSelector The selector object to that is modified.
    50          * @param aFilter Defines the field types that are added to the
    51          *                selector.
    52          * @param aContactManager The contact manager.
    53          * @return A reference to the passed selector object for enabling
    54          *         chained calls.
    55          */
    56         IMPORT_C static CVPbkFieldTypeSelector& BuildContactViewFilterL(
    57                 CVPbkFieldTypeSelector& aFieldTypeSelector,
    58                 TVPbkContactViewFilter aFilter,
    59                 CVPbkContactManager& aContactManager );
    60     };
    61 
    62 #endif // VPBKCONTACTVIEWFILTERBUILDER_H
    63 
    64 // End of File