epoc32/include/app/MVPbkContactGroup.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) 2002-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:  Virtual Phonebook interface for contact groups.
williamr@4
    15
*
williamr@4
    16
*/
williamr@4
    17
williamr@4
    18
williamr@4
    19
#ifndef MVPBKCONTACTGROUP_H
williamr@4
    20
#define MVPBKCONTACTGROUP_H
williamr@4
    21
williamr@4
    22
williamr@4
    23
// INCLUDES
williamr@4
    24
#include <e32base.h>
williamr@4
    25
#include <mvpbkstorecontact.h>
williamr@4
    26
#include <mvpbkstorecontact2.h>
williamr@4
    27
williamr@4
    28
// FORWARD DECLARATIONS
williamr@4
    29
class MVPbkContactLinkArray;
williamr@4
    30
williamr@4
    31
williamr@4
    32
// CLASS DECLARATIONS
williamr@4
    33
williamr@4
    34
/**
williamr@4
    35
 * An interface for Virtual Phonebook contact groups.
williamr@4
    36
 * This interface can be used to manipulate contact groups.
williamr@4
    37
 *
williamr@4
    38
 * @see MVPbkContactStore
williamr@4
    39
 */
williamr@4
    40
class MVPbkContactGroup : public MVPbkStoreContact,
williamr@4
    41
                          public MVPbkStoreContact2
williamr@4
    42
    {
williamr@4
    43
    public:  // Destructor
williamr@4
    44
        /**
williamr@4
    45
         * Destructor.
williamr@4
    46
         */
williamr@4
    47
        virtual ~MVPbkContactGroup() { }
williamr@4
    48
williamr@4
    49
    public:  // Interface
williamr@4
    50
        /**
williamr@4
    51
         * Sets the group label.
williamr@4
    52
         * @param aLabel    New label to set for the group.
williamr@4
    53
         */
williamr@4
    54
        virtual void SetGroupLabelL(const TDesC& aLabel) =0;
williamr@4
    55
        
williamr@4
    56
        /**
williamr@4
    57
         * Returns the group label.
williamr@4
    58
         * @return The group label.
williamr@4
    59
         */
williamr@4
    60
        virtual TPtrC GroupLabel() const =0;
williamr@4
    61
        
williamr@4
    62
        /**
williamr@4
    63
         * Adds new contact to this group.
williamr@4
    64
         *
williamr@4
    65
         * @param aContact  Contact to add to this group.
williamr@4
    66
         */
williamr@4
    67
        virtual void AddContactL(const MVPbkContactLink& aContactLink) =0;
williamr@4
    68
        
williamr@4
    69
        /**
williamr@4
    70
         * Removes a contact from this group.
williamr@4
    71
         *
williamr@4
    72
         * @param aContact  Contact to remove from this group.
williamr@4
    73
         */
williamr@4
    74
        virtual void RemoveContactL(const MVPbkContactLink& aContactLink) =0;
williamr@4
    75
        
williamr@4
    76
        /**
williamr@4
    77
         * Returns links to the items in this group.
williamr@4
    78
         * @return Links to the items in this group.
williamr@4
    79
         */
williamr@4
    80
        virtual MVPbkContactLinkArray* ItemsContainedLC() const =0;
williamr@4
    81
        
williamr@4
    82
        /**
williamr@4
    83
         * Returns an extension point for this interface or NULL.
williamr@4
    84
         * @param aExtensionUid Uid of extension.
williamr@4
    85
         * @return Extension point or NULL.
williamr@4
    86
         */
williamr@4
    87
        virtual TAny* ContactGroupExtension(
williamr@4
    88
                TUid /*aExtensionUid*/) { return NULL; }
williamr@4
    89
    };
williamr@4
    90
williamr@4
    91
#endif  // MVPBKCONTACTGROUP_H
williamr@4
    92
williamr@4
    93
// End of File