2 * Copyright (c) 2005 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.
15 * Interface to allow observer accept/decline selections in
16 * phonebook fetch dialog
21 #ifndef __MPbkFetchDlgSelection_H__
22 #define __MPbkFetchDlgSelection_H__
24 #include <cntdef.h> // TContactItemId
30 * Interface for accepting/refusing selections in Phonebook fetch dialog.
31 * A client can use this interface to implement restrictions on fetch dialog
32 * selection. For example on the maximum number of contacts selected by
35 class MPbkFetchDlgSelection
40 * Decides whether a contact selection made in fetch dialog should be
41 * accepted or declined
42 * @param aItemId ID of the item that is being selected.
43 * @param aCurrentSelectedCount Number of already selected items BEFORE
45 * @return ETrue if the selection is accepted. Otherwise EFalse
47 virtual TBool ContactSelectionAcceptedL
48 (TContactItemId aItemId,
49 TInt aCurrentSelectedCount) const = 0;
52 #endif // __MPbkFetchDlgSelection_H__