pkiutilities/DeviceToken/Inc/DevTokenTypesEnum.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 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 "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:   The header file of DevTokenTypeEnum
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVTOKENTYPESENUM_H__
       
    21 #define __DEVTOKENTYPESENUM_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 enum EDevTokenEnum  //  Interchangeable between tokens & tokentypes (ie 1:1 mapping)
       
    26     {
       
    27     EDevCertKeyStore      = 0,
       
    28     EDevCertStore     = 1,
       
    29     ETruSrvCertStore        = 2,
       
    30     ETotalTokensSupported,
       
    31     ETruSitesStore
       
    32     };
       
    33 
       
    34 enum EDevTokenTypeClientPanic
       
    35     {
       
    36     EInvalidTokenType   = 1,
       
    37     EInvalidToken     = 2,
       
    38     EInvalidInterface   = 3,
       
    39     //EClientSession      = 4,
       
    40     ETokenTypeSession   = 4,
       
    41     EBadTokenHandle     = 5,
       
    42     EBadArgument      = 6,
       
    43     ENotInitialised     = 7,
       
    44     EBadTokenIFHandle   = 8,
       
    45     EInvalidRequest     = 9,
       
    46     ERequestOutstanding   = 10,
       
    47     ENoRequestOutstanding = 11,
       
    48     ENoDataMarshalled   = 12,
       
    49     EMarshalDescriptorErr = 13,
       
    50     EClientInvalidState   = 14
       
    51     };
       
    52 
       
    53 enum ETokenTypeServerPanic
       
    54     {
       
    55     EPanicBadDescriptor     = 0,
       
    56     EPanicIllegalFunction   = 1,
       
    57     EPanicInvalidRequest    = 2,
       
    58     EPanicAlreadyInitialised  = 3,
       
    59     EPanicNotInitialised    = 4,
       
    60     EPanicBadSession      = 5,
       
    61     EPanicNoToken       = 6,
       
    62     EPanicInvalidTokenRequest = 7,
       
    63     EPanicNotIndexed      = 8,
       
    64     EOutstandingIFPtr     = 9,
       
    65     EOutstandingTokenPtr    = 10,
       
    66     EOutstandingTokenTypePtr  = 11,
       
    67     EOutstanding        = 12,
       
    68     EPanicBadHandle       = 13,   
       
    69     EPanicRequestOutstanding  = 14,
       
    70     EPanicBadArgument     = 15,
       
    71     EPanicArrayCleanup      = 16,
       
    72     EPanicTokenMismatch     = 17,
       
    73     EPanicNoCert        = 18,
       
    74     EPanicNoAllocation      = 19,
       
    75     EPanicNoKeyStore      = 20,
       
    76     EPanicECreateKeyNotReady  = 21,
       
    77     EPanicNoClientData      = 22,
       
    78     EPanicInvalidKeyCreateReq = 23,
       
    79     EPanicStoreInitialised    = 24,
       
    80     EPanicRootStreamNotReady  = 25,
       
    81     EPanicSaltStreamNotReady  = 26,
       
    82     EPanicManagerStreamNotReady = 27,
       
    83     ENoCreatedKeyData     = 28,
       
    84     EPanicInvalidState      = 30,
       
    85 
       
    86     // For cert store
       
    87     EPanicCertStoreReplaceArguments      = 101,
       
    88     EPanicCertStoreRestoreState        = 103,
       
    89     EPanicCertStoreOpenState         = 104,
       
    90     EPanicCertStoreEntryConstructArguments   = 102,
       
    91     EPanicCertStoreEntryInternalizeState   = 105,
       
    92     EPanicCertStoreEntryListAppendArguments  = 106,
       
    93     EPanicCertStoreEntryListReplaceArguments = 107
       
    94     };
       
    95 
       
    96 #endif
       
    97 
       
    98 //EOF