epoc32/include/ct/tctfindtokentypesbyinterface.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/ct/tctfindtokentypesbyinterface.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +/*
     1.5 +* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +/**
    1.25 + @file
    1.26 + @publishedPartner
    1.27 + @released
    1.28 +*/
    1.29 +
    1.30 +#ifndef __TCTFINDTOKENTYPESBYINTERFACE_H__
    1.31 +#define __TCTFINDTOKENTYPESBYINTERFACE_H__
    1.32 +
    1.33 +#include <ct/mcttokentypefilter.h>
    1.34 +
    1.35 +
    1.36 +/** 
    1.37 + * A filter that returns only those token types that match the required set of 
    1.38 + * interfaces.
    1.39 + *
    1.40 + * On construction, an array containing the required interfaces is passed in.
    1.41 + *
    1.42 + * Token types will be matched if every interface in the supplied array is supported 
    1.43 + * by the token type. 
    1.44 + *
    1.45 + * @since v7.0 
    1.46 + */
    1.47 +class TCTFindTokenTypesByInterface : public MCTTokenTypeFilter
    1.48 +	{
    1.49 + public:
    1.50 +	/** 
    1.51 +	 * Constructor.
    1.52 +	 *
    1.53 +	 * @param aInterfaces	An array of Uids corresponding to the interfaces that the 
    1.54 +	 * 						token type must support. */
    1.55 +	IMPORT_C TCTFindTokenTypesByInterface(const TArray<TUid> aInterfaces);
    1.56 +
    1.57 +	/** 
    1.58 +	 * Tests whether all the interfaces associated with the filter are supported by 
    1.59 +	 * the token type.
    1.60 +	 *
    1.61 +	 * @param aTokenType	The token type to be tested.
    1.62 +	 * @return				ETrue if all the interfaces associated with the filter are supported 
    1.63 +	 * 						by the token type; EFalse, otherwise. 
    1.64 +	 */
    1.65 +	virtual TBool Accept(const CCTTokenTypeInfo& aTokenType) const;
    1.66 +
    1.67 + private:
    1.68 +	const TArray<TUid> iInterfaces;
    1.69 +	};
    1.70 +
    1.71 +#endif // __TCTFINDTOKENTYPESBYINTERFACE_H__