wim/Scard/src/ScardConnector.cpp
branchRCL_3
changeset 20 63339781d179
parent 0 164170e6151a
equal deleted inserted replaced
19:94b923fa11ed 20:63339781d179
     1 /*
     1 /*
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    87 // CScardConnector::CScardConnector
    87 // CScardConnector::CScardConnector
    88 // C++ default constructor can NOT contain any code, that
    88 // C++ default constructor can NOT contain any code, that
    89 // might leave.
    89 // might leave.
    90 // -----------------------------------------------------------------------------
    90 // -----------------------------------------------------------------------------
    91 //
    91 //
    92 CScardConnector::CScardConnector(
    92 CScardConnector::CScardConnector( CScardConnectionRegistry* aConnRegistry ) :
    93     CScardConnectionRegistry* aConnRegistry, 
    93         CScardSession(), iConnectionRegistry( aConnRegistry ), iState( EActive )
    94     RThread& /*aClient*/ )
       
    95     : CScardSession(),
       
    96       iConnectionRegistry( aConnRegistry ),
       
    97       iState( EActive )
       
    98     {
    94     {
    99     _WIMTRACE(_L("WIM|Scard|CScardConnector::CScardConnector|Begin"));
    95     _WIMTRACE(_L("WIM|Scard|CScardConnector::CScardConnector|Begin"));
   100     }
    96     }
   101 
       
   102 
    97 
   103 // -----------------------------------------------------------------------------
    98 // -----------------------------------------------------------------------------
   104 // CScardConnector::ConstructL
    99 // CScardConnector::ConstructL
   105 // Symbian 2nd phase constructor can leave.
   100 // Symbian 2nd phase constructor can leave.
   106 // -----------------------------------------------------------------------------
   101 // -----------------------------------------------------------------------------
   118 // CScardConnector::NewL
   113 // CScardConnector::NewL
   119 // Two-phased constructor.
   114 // Two-phased constructor.
   120 // -----------------------------------------------------------------------------
   115 // -----------------------------------------------------------------------------
   121 //
   116 //
   122 CScardConnector* CScardConnector::NewL(
   117 CScardConnector* CScardConnector::NewL(
   123     CScardConnectionRegistry* aConnRegistry, 
   118     CScardConnectionRegistry* aConnRegistry,
   124     RThread& aClient, 
       
   125     const RMessage2& aMessage )
   119     const RMessage2& aMessage )
   126     {
   120     {
   127     _WIMTRACE(_L("WIM|Scard|CScardConnector::NewL|Begin"));
   121     _WIMTRACE(_L("WIM|Scard|CScardConnector::NewL|Begin"));
   128     CScardConnector* self = new( ELeave ) CScardConnector( aConnRegistry, 
   122     CScardConnector* self = new( ELeave ) CScardConnector( aConnRegistry );
   129         aClient );
   123 
   130     
       
   131     CleanupStack::PushL( self );
   124     CleanupStack::PushL( self );
   132     self->ConstructL( aMessage );
   125     self->ConstructL( aMessage );
   133     CleanupStack::Pop( self );
   126     CleanupStack::Pop( self );
   134 
   127 
   135     return self;
   128     return self;