equal
deleted
inserted
replaced
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". |
103 _L( "CScardConnectionRegistry::ConnectToReaderL entered.\n" ) ); |
103 _L( "CScardConnectionRegistry::ConnectToReaderL entered.\n" ) ); |
104 #endif |
104 #endif |
105 TConnectionHandle handle; |
105 TConnectionHandle handle; |
106 handle.iClient = aClient; |
106 handle.iClient = aClient; |
107 CScardConnector* conn = NULL; |
107 CScardConnector* conn = NULL; |
108 RThread thread; |
108 |
109 |
109 TRAPD( err, conn = CScardConnector::NewL( this, aMessage ) ); |
110 TInt err1 = thread.Open( KScardServerName ); |
|
111 |
|
112 if ( err1 != KErrNone ) |
|
113 { |
|
114 _WIMTRACE(_L("WIM|Scard|CScardConnectionRegistry::ConnectToReaderL|Thread open failed")); |
|
115 } |
|
116 |
|
117 TRAPD( err, conn = CScardConnector::NewL( this, thread, aMessage ) ); |
|
118 if ( err ) |
110 if ( err ) |
119 { |
111 { |
120 #ifdef _DEBUG |
112 #ifdef _DEBUG |
121 RFileLogger::WriteFormat( KScardLogDir, KScardLogFileName, |
113 RFileLogger::WriteFormat( KScardLogDir, KScardLogFileName, |
122 EFileLoggingModeAppend, |
114 EFileLoggingModeAppend, |