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.
25 #ifndef __TCTFINDTOKENTYPESBYINTERFACE_H__
26 #define __TCTFINDTOKENTYPESBYINTERFACE_H__
28 #include <ct/mcttokentypefilter.h>
32 * A filter that returns only those token types that match the required set of
35 * On construction, an array containing the required interfaces is passed in.
37 * Token types will be matched if every interface in the supplied array is supported
42 class TCTFindTokenTypesByInterface : public MCTTokenTypeFilter
48 * @param aInterfaces An array of Uids corresponding to the interfaces that the
49 * token type must support. */
50 IMPORT_C TCTFindTokenTypesByInterface(const TArray<TUid> aInterfaces);
53 * Tests whether all the interfaces associated with the filter are supported by
56 * @param aTokenType The token type to be tested.
57 * @return ETrue if all the interfaces associated with the filter are supported
58 * by the token type; EFalse, otherwise.
60 virtual TBool Accept(const CCTTokenTypeInfo& aTokenType) const;
63 const TArray<TUid> iInterfaces;
66 #endif // __TCTFINDTOKENTYPESBYINTERFACE_H__