wim/Scard/inc/ScardResourceRegistry.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:  Registry of smart card resources.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSCARDRESOURCEREGISTRY_H
       
    21 #define CSCARDRESOURCEREGISTRY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "ScardDefs.h"
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class CScardServer;
       
    28 class MScardReader;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Manages resources (e.g. cards and service providers).
       
    34 *
       
    35 *  @lib Scard.lib
       
    36 *  @since Series60 2.1
       
    37 */
       
    38 class CScardResourceRegistry : public CBase
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @param aServer Pointer to CScardServer object
       
    45         */
       
    46         static CScardResourceRegistry* NewL( CScardServer* aServer ); 
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CScardResourceRegistry();
       
    52 
       
    53     public: // New functions
       
    54 
       
    55         /**
       
    56         * Handle card event
       
    57         * @param aEvent Card event
       
    58         * @param aReaderID Reader ID
       
    59         * @return void
       
    60         */
       
    61         void CardEvent( const TScardServiceStatus aEvent, 
       
    62                         const TReaderID aReaderID );
       
    63 
       
    64     private:
       
    65         
       
    66         /**
       
    67         * C++ default constructor.
       
    68         */
       
    69         CScardResourceRegistry();
       
    70 
       
    71         /**
       
    72         * By default Symbian 2nd phase constructor is private.
       
    73         * @param aServer Pointer to CScardServer object
       
    74         */
       
    75         void ConstructL( CScardServer* aServer );
       
    76  
       
    77     private:    // Data
       
    78         // Pointer to server object. Not owned.
       
    79         CScardServer* iServer;
       
    80     };
       
    81 
       
    82 #endif      // CSCARDRESOURCEREGISTRY_H
       
    83 
       
    84 // End of File