wim/Scard/src/ScardConnector.cpp
branchRCL_3
changeset 67 79bd6bd83ec3
parent 47 63339781d179
equal deleted inserted replaced
57:ead42e28e519 67:79bd6bd83ec3
     1 /*
     1 /*
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2003 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( CScardConnectionRegistry* aConnRegistry ) :
    92 CScardConnector::CScardConnector(
    93         CScardSession(), iConnectionRegistry( aConnRegistry ), iState( EActive )
    93     CScardConnectionRegistry* aConnRegistry, 
       
    94     RThread& /*aClient*/ )
       
    95     : CScardSession(),
       
    96       iConnectionRegistry( aConnRegistry ),
       
    97       iState( EActive )
    94     {
    98     {
    95     _WIMTRACE(_L("WIM|Scard|CScardConnector::CScardConnector|Begin"));
    99     _WIMTRACE(_L("WIM|Scard|CScardConnector::CScardConnector|Begin"));
    96     }
   100     }
       
   101 
    97 
   102 
    98 // -----------------------------------------------------------------------------
   103 // -----------------------------------------------------------------------------
    99 // CScardConnector::ConstructL
   104 // CScardConnector::ConstructL
   100 // Symbian 2nd phase constructor can leave.
   105 // Symbian 2nd phase constructor can leave.
   101 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
   113 // CScardConnector::NewL
   118 // CScardConnector::NewL
   114 // Two-phased constructor.
   119 // Two-phased constructor.
   115 // -----------------------------------------------------------------------------
   120 // -----------------------------------------------------------------------------
   116 //
   121 //
   117 CScardConnector* CScardConnector::NewL(
   122 CScardConnector* CScardConnector::NewL(
   118     CScardConnectionRegistry* aConnRegistry,
   123     CScardConnectionRegistry* aConnRegistry, 
       
   124     RThread& aClient, 
   119     const RMessage2& aMessage )
   125     const RMessage2& aMessage )
   120     {
   126     {
   121     _WIMTRACE(_L("WIM|Scard|CScardConnector::NewL|Begin"));
   127     _WIMTRACE(_L("WIM|Scard|CScardConnector::NewL|Begin"));
   122     CScardConnector* self = new( ELeave ) CScardConnector( aConnRegistry );
   128     CScardConnector* self = new( ELeave ) CScardConnector( aConnRegistry, 
   123 
   129         aClient );
       
   130     
   124     CleanupStack::PushL( self );
   131     CleanupStack::PushL( self );
   125     self->ConstructL( aMessage );
   132     self->ConstructL( aMessage );
   126     CleanupStack::Pop( self );
   133     CleanupStack::Pop( self );
   127 
   134 
   128     return self;
   135     return self;