epoc32/include/app/MVPbkContactAttribute.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) 2002-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:  Virtual Phonebook interface for contact attributes.
    15 *                Attributes are e.g speed dial or defaults
    16 *
    17 */
    18 
    19 
    20 #ifndef MVPBKCONTACTATTRIBUTE_H
    21 #define MVPBKCONTACTATTRIBUTE_H
    22 
    23 // INCLUDE FILES
    24 #include <e32cmn.h>
    25 #include <e32std.h>
    26 
    27 /**
    28  * Virtual Phonebook Contact attribute interface.
    29  * Base class for different kinds of attributes.
    30  * The UID returned by AttributeType uniquely identifies 
    31  * the implementation class of this interface.
    32  */
    33 class MVPbkContactAttribute
    34     {
    35     public:
    36         /**
    37          * Destructor.
    38          */
    39         virtual ~MVPbkContactAttribute() {}
    40         
    41         /**
    42          * Returns the attribute type of the object.
    43          * @return The attribute type of the object.
    44          */
    45         virtual TUid AttributeType() const =0;
    46         
    47         /**
    48          * Returns a copy of this object.
    49          * @return A copy of this object.
    50          */
    51         virtual MVPbkContactAttribute* CloneLC() const =0;
    52 
    53         /**
    54          * Returns an extension point for this interface or NULL.
    55          * @param aExtensionUid Extension identifier.
    56          * @return An extension object.
    57          */
    58         virtual TAny* ContactAttributeExtension(
    59                 TUid /*aExtensionUid*/) { return NULL; }
    60     };
    61     
    62 #endif // MVPBKCONTACTATTRIBUTE_H
    63 
    64 // End of File