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