1.1 --- a/epoc32/include/app/mpbkfetchdlgselection.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/app/mpbkfetchdlgselection.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,54 @@
1.4 -mpbkfetchdlgselection.h
1.5 +/*
1.6 +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* 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
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description:
1.19 +* Interface to allow observer accept/decline selections in
1.20 +* phonebook fetch dialog
1.21 +*
1.22 +*/
1.23 +
1.24 +
1.25 +#ifndef __MPbkFetchDlgSelection_H__
1.26 +#define __MPbkFetchDlgSelection_H__
1.27 +
1.28 +#include <cntdef.h> // TContactItemId
1.29 +
1.30 +
1.31 +// CLASS DECLARATION
1.32 +
1.33 +/**
1.34 + * Interface for accepting/refusing selections in Phonebook fetch dialog.
1.35 + * A client can use this interface to implement restrictions on fetch dialog
1.36 + * selection. For example on the maximum number of contacts selected by
1.37 + * the user.
1.38 + */
1.39 +class MPbkFetchDlgSelection
1.40 + {
1.41 +
1.42 + public: // Interface
1.43 + /**
1.44 + * Decides whether a contact selection made in fetch dialog should be
1.45 + * accepted or declined
1.46 + * @param aItemId ID of the item that is being selected.
1.47 + * @param aCurrentSelectedCount Number of already selected items BEFORE
1.48 + * current selection
1.49 + * @return ETrue if the selection is accepted. Otherwise EFalse
1.50 + */
1.51 + virtual TBool ContactSelectionAcceptedL
1.52 + (TContactItemId aItemId,
1.53 + TInt aCurrentSelectedCount) const = 0;
1.54 + };
1.55 +
1.56 +#endif // __MPbkFetchDlgSelection_H__
1.57 +
1.58 +// End of File