1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/app/MVPbkContactViewBaseChildAccessExtension.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,85 @@
1.4 +/*
1.5 +* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: An interface for contact view base extension.
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef MVPBKCONTACTVIEWBASECHILDACCESSEXT_H
1.23 +#define MVPBKCONTACTVIEWBASECHILDACCESSEXT_H
1.24 +
1.25 +// INCLUDES
1.26 +#include <e32cmn.h>
1.27 +#include <vpbkcontactview.hrh>
1.28 +#include <bamdesca.h>
1.29 +
1.30 +// FORWARD DECLARATIONS
1.31 +
1.32 +// CLASS DECLARATIONS
1.33 +
1.34 +/// This is the UID that identifies this interface.
1.35 +const TUint KVPbkViewBaseExtChildAccess = 123; // TODO Allocate UID.
1.36 +
1.37 +/**
1.38 + * This is an extension to MVPbkContactViewBase for accessing child views
1.39 + * of a composite.
1.40 + */
1.41 +class MVPbkContactViewBaseChildAccessExtension
1.42 + {
1.43 + public: // types
1.44 +
1.45 + public: // Destructor
1.46 +
1.47 + /**
1.48 + * Destructor.
1.49 + */
1.50 + virtual ~MVPbkContactViewBaseChildAccessExtension() { }
1.51 +
1.52 + public: // New functions
1.53 +
1.54 + /**
1.55 + * Tells the number of child views.
1.56 + */
1.57 + virtual TInt ChildViewCount() const = 0;
1.58 +
1.59 + /**
1.60 + * Gives reference to a specific child view.
1.61 + * @param aIndex Index of child view.
1.62 + */
1.63 + virtual MVPbkContactViewBase& ChildViewAt(TInt aIndex) = 0;
1.64 +
1.65 + /**
1.66 + * Gives pointer to a specific child view.
1.67 + * @param aId Id of child view.
1.68 + */
1.69 + virtual MVPbkContactViewBase* GetChildViewById(TInt aId) = 0;
1.70 +
1.71 + /**
1.72 + * Gives a current view id.
1.73 + */
1.74 + virtual TInt GetViewId() = 0;
1.75 + /**
1.76 + * Returns an extension point for this interface or NULL.
1.77 + *
1.78 + * @param aExtensionUid no extensions defined currently.
1.79 + * @return an extension point for this interface or NULL.
1.80 + */
1.81 + virtual TAny* MVPbkContactViewBaseChildAccessExtensionExtension(TUid /*aExtensionUid*/)
1.82 + { return NULL; }
1.83 + };
1.84 +
1.85 +
1.86 +#endif // MVPBKCONTACTVIEWBASECHILDACCESSEXT_H
1.87 +
1.88 +// End of File