epoc32/include/ct/tctfindtokentypesbyinterface.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21  @publishedAll
    22  @released
    23 */
    24 
    25 #ifndef __TCTFINDTOKENTYPESBYINTERFACE_H__
    26 #define __TCTFINDTOKENTYPESBYINTERFACE_H__
    27 
    28 #include <ct/mcttokentypefilter.h>
    29 
    30 
    31 /** 
    32  * A filter that returns only those token types that match the required set of 
    33  * interfaces.
    34  *
    35  * On construction, an array containing the required interfaces is passed in.
    36  *
    37  * Token types will be matched if every interface in the supplied array is supported 
    38  * by the token type. 
    39  *
    40  * @since v7.0 
    41  */
    42 class TCTFindTokenTypesByInterface : public MCTTokenTypeFilter
    43 	{
    44  public:
    45 	/** 
    46 	 * Constructor.
    47 	 *
    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);
    51 
    52 	/** 
    53 	 * Tests whether all the interfaces associated with the filter are supported by 
    54 	 * the token type.
    55 	 *
    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. 
    59 	 */
    60 	virtual TBool Accept(const CCTTokenTypeInfo& aTokenType) const;
    61 
    62  private:
    63 	const TArray<TUid> iInterfaces;
    64 	};
    65 
    66 #endif // __TCTFINDTOKENTYPESBYINTERFACE_H__