2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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.
27 #ifndef __TCTFINDTOKENTYPESBYINTERFACE_H__
28 #define __TCTFINDTOKENTYPESBYINTERFACE_H__
30 #include <ct/mcttokentypefilter.h>
34 * A filter that returns only those token types that match the required set of
37 * On construction, an array containing the required interfaces is passed in.
39 * Token types will be matched if every interface in the supplied array is supported
44 class TCTFindTokenTypesByInterface : public MCTTokenTypeFilter
50 * @param aInterfaces An array of Uids corresponding to the interfaces that the
51 * token type must support. */
52 IMPORT_C TCTFindTokenTypesByInterface(const TArray<TUid> aInterfaces);
55 * Tests whether all the interfaces associated with the filter are supported by
58 * @param aTokenType The token type to be tested.
59 * @return ETrue if all the interfaces associated with the filter are supported
60 * by the token type; EFalse, otherwise.
62 virtual TBool Accept(const CCTTokenTypeInfo& aTokenType) const;
65 const TArray<TUid> iInterfaces;
68 #endif // __TCTFINDTOKENTYPESBYINTERFACE_H__