2 * Copyright (c) 2006-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: Virtual Phonebook interface for contact bookmark collections.
19 #ifndef MVPBKCONTACTBOOKMARKCOLLECTION_H
20 #define MVPBKCONTACTBOOKMARKCOLLECTION_H
24 // FORWARD DECLARATIONS
25 class MVPbkContactBookmark;
28 * Virtual Phonebook interface for contact bookmark collections.
30 * A bookmark collection owns its bookmarks and the destructor
31 * will delete all the bookmarks in the array.
33 class MVPbkContactBookmarkCollection
39 virtual ~MVPbkContactBookmarkCollection() {}
42 * Returns the number of bookmarks in the collections.
44 * @return The number of bookmarks in the collections.
46 virtual TInt Count() const = 0;
49 * Returns a bookmark at given position.
51 * @param aIndex Position of the bookmark in the collection.
52 * @return A bookmark at given position.
54 virtual const MVPbkContactBookmark& At( TInt aIndex ) const = 0;
57 * Returns an extension point for this interface or NULL.
58 * @param aExtensionUid Extension identifier.
59 * @return Extension object.
61 virtual TAny* ContactBookmarkCollectionExtension(
62 TUid /*aExtensionUid*/) { return NULL; }
66 #endif // MVPBKCONTACTBOOKMARKCOLLECTION_H