/*
* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/




/**
 @file
 @publishedPartner
 @released
*/

#ifndef __TCTFINDTOKENTYPESBYINTERFACE_H__
#define __TCTFINDTOKENTYPESBYINTERFACE_H__

#include <ct/mcttokentypefilter.h>


/** 
 * A filter that returns only those token types that match the required set of 
 * interfaces.
 *
 * On construction, an array containing the required interfaces is passed in.
 *
 * Token types will be matched if every interface in the supplied array is supported 
 * by the token type. 
 *
 * @since v7.0 
 */
class TCTFindTokenTypesByInterface : public MCTTokenTypeFilter
	{
 public:
	/** 
	 * Constructor.
	 *
	 * @param aInterfaces	An array of Uids corresponding to the interfaces that the 
	 * 						token type must support. */
	IMPORT_C TCTFindTokenTypesByInterface(const TArray<TUid> aInterfaces);

	/** 
	 * Tests whether all the interfaces associated with the filter are supported by 
	 * the token type.
	 *
	 * @param aTokenType	The token type to be tested.
	 * @return				ETrue if all the interfaces associated with the filter are supported 
	 * 						by the token type; EFalse, otherwise. 
	 */
	virtual TBool Accept(const CCTTokenTypeInfo& aTokenType) const;

 private:
	const TArray<TUid> iInterfaces;
	};

#endif // __TCTFINDTOKENTYPESBYINTERFACE_H__
