epoc32/include/app/mpbkfetchdlgselection.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2005 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *       Interface to allow observer accept/decline selections in 
    16 *		phonebook fetch dialog
    17 *
    18 */
    19 
    20 
    21 #ifndef __MPbkFetchDlgSelection_H__
    22 #define __MPbkFetchDlgSelection_H__
    23 
    24 #include <cntdef.h>     // TContactItemId
    25 
    26 
    27 // CLASS DECLARATION
    28 
    29 /**
    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 
    33  * the user.
    34  */
    35 class MPbkFetchDlgSelection
    36 	{
    37 
    38 	public: // Interface
    39         /**
    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
    44          *		  current selection
    45          * @return ETrue if the selection is accepted. Otherwise EFalse
    46          */	
    47         virtual TBool ContactSelectionAcceptedL
    48         	(TContactItemId aItemId, 
    49         	 TInt aCurrentSelectedCount) const = 0;
    50     };
    51 	
    52 #endif // __MPbkFetchDlgSelection_H__
    53 
    54 // End of File