epoc32/include/ct/tcttokentypeattribute.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100 (2010-03-31)
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 __TCTTOKENTYPEATTRIBUTE_H__
    26 #define __TCTTOKENTYPEATTRIBUTE_H__
    27 
    28 /** 
    29  * Attribute UIDs 
    30  * @since v7.0 
    31  */
    32 
    33 /** 
    34  * A UID representing an attribute type. 
    35  *
    36  * It has a corresponding TCTTokenTypeAttribute value, which is a boolean,
    37  * that indicates whether the token is implemented in software. 
    38  */
    39 const TUid KCTSoftware = {0x101F527B};
    40 
    41 /** 
    42  * A UID representing an attribute type. 
    43  * 
    44  * It has a corresponding TCTTokenTypeAttribute value, which is boolean,
    45  * that indicates whether the token is removable. 
    46  */
    47 const TUid KCTRemovable = {0x101F527C};
    48 
    49 /** 
    50  * A UID representing an attribute type. 
    51  * 
    52  * It has a corresponding TCTTokenTypeAttribute value, which is boolean,
    53  * that indicates whether the token type provides its own access control. 
    54  */
    55 const TUid KCTAccessControlled = {0x101F527D};
    56 
    57 /** 
    58  * A UID representing an attribute type. 
    59  * 
    60  * It has a corresponding TCTTokenTypeAttribute value, which is an integer, 
    61  * that represents the maximum number of tokens of this type.
    62  *
    63  * For example, if the token type is a WIM-card-hardware token and the device has two 
    64  * card readers, the maximum number of tokens of this type is 2. 
    65  */
    66 const TUid KCTMaxTokenCount = {0x101F527E};
    67 
    68 /** 
    69  * A UID representing an attribute type. 
    70  *
    71  * It has a corresponding TCTTokenTypeAttribute value, which is an integer, 
    72  * that represents the minimum number of tokens of this type.
    73  *
    74  * For example, if the token type is a WIM-card-hardware token, the minimum number of 
    75  * tokens of this type is 0).
    76  */
    77 const TUid KCTMinTokenCount = {0x101F527F};
    78 
    79 /** 
    80  * Arbitrary attributes can be stored as UID/Value pairs.
    81  * 
    82  * This allows any attributes that can be represented as 32 bit integers to be
    83  * associated with token types.
    84  * 
    85  * It consists of a UID to identify the type of the attribute and an unsigned 
    86  * integer to hold the data. For Boolean attributes, 0 means false and a 
    87  * positive integer means true.
    88  *
    89  * @since v7.0 
    90  */
    91 struct TCTTokenTypeAttribute
    92 	{
    93 	/** The UID representing the attribute type. */
    94 	TUid iUID;
    95 	/** The value of the attribute. */
    96 	TInt iVal;
    97 	};
    98 
    99 #endif // __TCTTOKENTYPEATTRIBUTE_H__