2 * Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: An interface for contact view base extension.
19 #ifndef MVPBKCONTACTVIEWBASECHILDACCESSEXT_H
20 #define MVPBKCONTACTVIEWBASECHILDACCESSEXT_H
24 #include <vpbkcontactview.hrh>
27 // FORWARD DECLARATIONS
31 /// This is the UID that identifies this interface.
32 const TUint KVPbkViewBaseExtChildAccess = 123; // TODO Allocate UID.
35 * This is an extension to MVPbkContactViewBase for accessing child views
38 class MVPbkContactViewBaseChildAccessExtension
47 virtual ~MVPbkContactViewBaseChildAccessExtension() { }
49 public: // New functions
52 * Tells the number of child views.
54 virtual TInt ChildViewCount() const = 0;
57 * Gives reference to a specific child view.
58 * @param aIndex Index of child view.
60 virtual MVPbkContactViewBase& ChildViewAt(TInt aIndex) = 0;
63 * Gives pointer to a specific child view.
64 * @param aId Id of child view.
66 virtual MVPbkContactViewBase* GetChildViewById(TInt aId) = 0;
69 * Gives a current view id.
71 virtual TInt GetViewId() = 0;
73 * Returns an extension point for this interface or NULL.
75 * @param aExtensionUid no extensions defined currently.
76 * @return an extension point for this interface or NULL.
78 virtual TAny* MVPbkContactViewBaseChildAccessExtensionExtension(TUid /*aExtensionUid*/)
83 #endif // MVPBKCONTACTVIEWBASECHILDACCESSEXT_H