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.
williamr@4
     1
/*
williamr@4
     2
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     3
* All rights reserved.
williamr@4
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@4
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     8
*
williamr@4
     9
* Initial Contributors:
williamr@4
    10
* Nokia Corporation - initial contribution.
williamr@4
    11
*
williamr@4
    12
* Contributors:
williamr@4
    13
*
williamr@4
    14
* Description:  A factory for creating contact view filters.
williamr@4
    15
*
williamr@4
    16
*/
williamr@4
    17
williamr@4
    18
williamr@4
    19
#ifndef VPBKCONTACTVIEWFILTERBUILDER_H
williamr@4
    20
#define VPBKCONTACTVIEWFILTERBUILDER_H
williamr@4
    21
williamr@4
    22
//  INCLUDES
williamr@4
    23
#include <e32base.h>
williamr@4
    24
#include <vpbkcontactview.hrh>
williamr@4
    25
williamr@4
    26
// FORWARD DECLARATIONS
williamr@4
    27
class CVPbkFieldTypeSelector;
williamr@4
    28
class CVPbkContactManager;
williamr@4
    29
williamr@4
    30
// CLASS DECLARATION
williamr@4
    31
williamr@4
    32
/**
williamr@4
    33
 * A factory for creating contact view filters.
williamr@4
    34
 *
williamr@4
    35
 * A contact view filter can be used in a contact view definition
williamr@4
    36
 * when the client wants to create a view that is filtered by
williamr@4
    37
 * field types i.e. only contacts that have a certain fields
williamr@4
    38
 * are included in the view.
williamr@4
    39
 *
williamr@4
    40
 * @see CVPbkContactViewDefinition::SetFieldTypeFilterL
williamr@4
    41
 * @lib VPbkEng.lib
williamr@4
    42
 */
williamr@4
    43
class VPbkContactViewFilterBuilder
williamr@4
    44
    {
williamr@4
    45
    public: // Interface
williamr@4
    46
        /**
williamr@4
    47
         * Appends a filter for the given field type selector.
williamr@4
    48
         *
williamr@4
    49
         * @param aFieldTypeSelector The selector object to that is modified.
williamr@4
    50
         * @param aFilter Defines the field types that are added to the
williamr@4
    51
         *                selector.
williamr@4
    52
         * @param aContactManager The contact manager.
williamr@4
    53
         * @return A reference to the passed selector object for enabling
williamr@4
    54
         *         chained calls.
williamr@4
    55
         */
williamr@4
    56
        IMPORT_C static CVPbkFieldTypeSelector& BuildContactViewFilterL(
williamr@4
    57
                CVPbkFieldTypeSelector& aFieldTypeSelector,
williamr@4
    58
                TVPbkContactViewFilter aFilter,
williamr@4
    59
                CVPbkContactManager& aContactManager );
williamr@4
    60
    };
williamr@4
    61
williamr@4
    62
#endif // VPBKCONTACTVIEWFILTERBUILDER_H
williamr@4
    63
williamr@4
    64
// End of File