TCTFindTokenTypesByInterfaceAndAttribute Class Reference

#include <ct/tctfindtokentypesbyinterfaceandattribute.h>

Link against: ctfinder.lib

class TCTFindTokenTypesByInterfaceAndAttribute : public MCTTokenTypeFilter

Inherits from

Detailed Description

A filter that returns only those token types that match the required set of interfaces and attributes.

On construction, an array containing the required interfaces and an array of required attributes/values is passed in.

Token types will be matched if every interface in the supplied array is supported by the token type, and every attribute is defined and has the same value.

Since
v7.0

Constructor & Destructor Documentation

TCTFindTokenTypesByInterfaceAndAttribute ( const TArray< TUid >, const TArray< TCTTokenTypeAttribute > )

IMPORT_CTCTFindTokenTypesByInterfaceAndAttribute(const TArray< TUid >aInterfaces,
const TArray< TCTTokenTypeAttribute >aAttributes
)

Constructor.

Parameters
aInterfacesAn array of Uids corresponding to the interfaces that the token type must support.
aAttributesAn array of the attributes and values that must be defined for the token type.

Member Function Documentation

Accept ( const CCTTokenTypeInfo & )

TBool Accept(const CCTTokenTypeInfo &aTokenType)const [virtual]

Reimplemented from MCTTokenTypeFilter::Accept(const CCTTokenTypeInfo &)const

Tests whether all the interfaces and attributes associated with the filter are supported by the token type.

Parameters
aTokenTypeThe token type to be tested.
Return Value
ETrue if all the interfaces and attributes associated with the filter are supported by the token type; EFalse, otherwise.