wim/Scard/inc/ScardServerBase.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Definitions and structures for smart card server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSCARDSERVERBASE_H
       
    21 #define CSCARDSERVERBASE_H
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include <e32base.h>
       
    25 
       
    26 // ENUMERATIONS
       
    27 enum TSpecialSessionIDs 
       
    28     {
       
    29     ENoSession      = 0, //-1,
       
    30     EPollSessionID  = -2,
       
    31     EAccessMasterID = -3
       
    32     };
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 //needed for creating server thread.
       
    37 const TUint KDefaultMinHeapSize = 0x1000;
       
    38 const TUint KDefaultMaxHeapSize = 0x100000;
       
    39 
       
    40 const TInt8 KChannel0       = 0;
       
    41 const TInt8 KAllChannels    = -1;
       
    42 
       
    43 const TInt8 KMaxChannels    = 0x04;
       
    44 
       
    45 const TUint8 KManageChannel = 0x70;
       
    46 const TUint8 KOpenChannel   = 0x00;
       
    47 const TUint8 KCloseChannel  = 0x80;
       
    48 
       
    49 const TUint8 KReservation   = 0x01;
       
    50 const TUint8 KClosing       = 0x02;
       
    51 const TUint8 KConnection    = 0x80;
       
    52 
       
    53 
       
    54 // MACROS
       
    55 #define __ASSERT_MEMORY( err ) if ( ( err ) )\
       
    56     User::Panic( _L( "Not enough free memory" ), KScPanicNoMemory )
       
    57 
       
    58 #endif      // CSCARDSERVERBASE_H
       
    59 
       
    60 // End of File