wim/inc/Scard.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:  Main smard card object, acts as client for Scard Server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef RSCARD_H
       
    21 #define RSCARD_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  The basic client class.
       
    30 *  The basic client class representing a channel of communication 
       
    31 *  with the server. The connect function starts the server, if it 
       
    32 *  is not already running. An RSessionBase sends messages to the 
       
    33 *  server with the function RSessionBase::SendReceive(); specifying 
       
    34 *  an opcode (TScardServerRqst) and and array of argument pointers. 
       
    35 *  This class is a friend to the classes Comm and Listener.
       
    36 *  All four are classes that need to communicate 
       
    37 *  directly with the server.
       
    38 *
       
    39 *  @lib Scard.lib
       
    40 *  @since Series60 2.1
       
    41 */
       
    42 class RScard : public RSessionBase
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45         
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         IMPORT_C static RScard* NewL();
       
    50         
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         IMPORT_C virtual ~RScard();
       
    55 
       
    56     private:
       
    57         
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61         RScard();
       
    62 
       
    63         /**
       
    64         * By default Symbian 2nd phase constructor is private.
       
    65         */
       
    66         void ConstructL();
       
    67 
       
    68         /**
       
    69         * Version of server
       
    70         * @return Version number
       
    71         */
       
    72         TVersion Version() const;
       
    73         
       
    74     private:    // Friend classes
       
    75         friend class CScardComm;
       
    76         friend class CScardListener;
       
    77     };
       
    78 
       
    79 #endif      // RSCARD_H
       
    80             
       
    81 // End of File