1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/ct/tcttokentypeattribute.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,101 @@
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 __TCTTOKENTYPEATTRIBUTE_H__
1.31 +#define __TCTTOKENTYPEATTRIBUTE_H__
1.32 +
1.33 +/**
1.34 + * Attribute UIDs
1.35 + * @since v7.0
1.36 + */
1.37 +
1.38 +/**
1.39 + * A UID representing an attribute type.
1.40 + *
1.41 + * It has a corresponding TCTTokenTypeAttribute value, which is a boolean,
1.42 + * that indicates whether the token is implemented in software.
1.43 + */
1.44 +const TUid KCTSoftware = {0x101F527B};
1.45 +
1.46 +/**
1.47 + * A UID representing an attribute type.
1.48 + *
1.49 + * It has a corresponding TCTTokenTypeAttribute value, which is boolean,
1.50 + * that indicates whether the token is removable.
1.51 + */
1.52 +const TUid KCTRemovable = {0x101F527C};
1.53 +
1.54 +/**
1.55 + * A UID representing an attribute type.
1.56 + *
1.57 + * It has a corresponding TCTTokenTypeAttribute value, which is boolean,
1.58 + * that indicates whether the token type provides its own access control.
1.59 + */
1.60 +const TUid KCTAccessControlled = {0x101F527D};
1.61 +
1.62 +/**
1.63 + * A UID representing an attribute type.
1.64 + *
1.65 + * It has a corresponding TCTTokenTypeAttribute value, which is an integer,
1.66 + * that represents the maximum number of tokens of this type.
1.67 + *
1.68 + * For example, if the token type is a WIM-card-hardware token and the device has two
1.69 + * card readers, the maximum number of tokens of this type is 2.
1.70 + */
1.71 +const TUid KCTMaxTokenCount = {0x101F527E};
1.72 +
1.73 +/**
1.74 + * A UID representing an attribute type.
1.75 + *
1.76 + * It has a corresponding TCTTokenTypeAttribute value, which is an integer,
1.77 + * that represents the minimum number of tokens of this type.
1.78 + *
1.79 + * For example, if the token type is a WIM-card-hardware token, the minimum number of
1.80 + * tokens of this type is 0).
1.81 + */
1.82 +const TUid KCTMinTokenCount = {0x101F527F};
1.83 +
1.84 +/**
1.85 + * Arbitrary attributes can be stored as UID/Value pairs.
1.86 + *
1.87 + * This allows any attributes that can be represented as 32 bit integers to be
1.88 + * associated with token types.
1.89 + *
1.90 + * It consists of a UID to identify the type of the attribute and an unsigned
1.91 + * integer to hold the data. For Boolean attributes, 0 means false and a
1.92 + * positive integer means true.
1.93 + *
1.94 + * @since v7.0
1.95 + */
1.96 +struct TCTTokenTypeAttribute
1.97 + {
1.98 + /** The UID representing the attribute type. */
1.99 + TUid iUID;
1.100 + /** The value of the attribute. */
1.101 + TInt iVal;
1.102 + };
1.103 +
1.104 +#endif // __TCTTOKENTYPEATTRIBUTE_H__