epoc32/include/app/MVPbkObjectHierarchy.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) 2004-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:  An interface for objects that belongs to object hierarchy
    15 *
    16 */
    17 
    18 
    19 #ifndef MVPBKOBJECTHIERARCHY_H
    20 #define MVPBKOBJECTHIERARCHY_H
    21 
    22 
    23 // INCLUDES
    24 #include <e32cmn.h>
    25 
    26 // FORWARD DECLARATIONS
    27 class MVPbkContactStore;
    28 
    29 
    30 // CLASS DECLARATIONS
    31 
    32 /**
    33  * An interface for objects that belongs to object hierarchy.
    34  *
    35  * The interface can be used to get the store from an object that
    36  * belongs to the hierarchy.
    37  */
    38 class MVPbkObjectHierarchy
    39     {
    40     public:  // Destructor
    41         virtual ~MVPbkObjectHierarchy() { }
    42 
    43     public:  // New functions
    44         /**
    45          * Returns the parent object of this object. For the root of the 
    46          * hierarchy returns self.
    47          * @return The parent object.
    48          */
    49         virtual MVPbkObjectHierarchy& ParentObject() const = 0;
    50 
    51         /**
    52          * Returns the contact store where this object originates from.
    53          * @return The Contact store.
    54          */
    55         virtual MVPbkContactStore& ContactStore() const 
    56             {
    57             return ParentObject().ContactStore();
    58             }
    59 
    60         /**
    61          * Returns an extension point for this interface or NULL.
    62          *
    63          * @param aExtensionUid no extensions defined currently.
    64          * @return An extension point for this interface or NULL.
    65          */
    66         virtual TAny* ObjectHierarchyExtension(TUid /*aExtensionUid*/) 
    67                 { return NULL; }
    68     };
    69 
    70 
    71 #endif  // MVPBKOBJECTHIERARCHY_H
    72 
    73 //End of file
    74 
    75