0
|
1 |
/*
|
|
2 |
* Copyright (c) 2003-2006 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef _SDK_CARDREADERLAUNCHER_H_
|
|
20 |
#define _SDK_CARDREADERLAUNCHER_H_
|
|
21 |
|
|
22 |
#include <emulator.h>
|
|
23 |
#include <winscard.h>
|
|
24 |
#include "ScardReaderLauncher.h"
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Generates Scard related notifications.
|
|
28 |
*/
|
|
29 |
class CSdkCardReader;
|
|
30 |
class SdkScardLauncher : public MScardReaderLauncher, public CBase
|
|
31 |
{
|
|
32 |
private:
|
|
33 |
MScardNotifyObserver* iObserver;
|
|
34 |
SCARDCONTEXT iServiceContext;
|
|
35 |
TText* iReaderNames;
|
|
36 |
RPointerArray<CSdkCardReader> iReaders;
|
|
37 |
|
|
38 |
public:
|
|
39 |
SdkScardLauncher();
|
|
40 |
virtual ~SdkScardLauncher();
|
|
41 |
|
|
42 |
inline SCARDCONTEXT ServiceContext() const;
|
|
43 |
void NotifyCardEvent(TScardServiceStatus aEvent, CSdkCardReader* aReader);
|
|
44 |
|
|
45 |
// MScardReaderLauncher
|
|
46 |
virtual void ConstructL(MScardReaderService* aReaderService);
|
|
47 |
virtual MScardReader* CreateReaderL(TReaderID aReaderID);
|
|
48 |
virtual void DeleteReader(TReaderID aReaderID);
|
|
49 |
};
|
|
50 |
|
|
51 |
inline SCARDCONTEXT SdkScardLauncher::ServiceContext() const
|
|
52 |
{ return iServiceContext; }
|
|
53 |
|
|
54 |
#endif // _SDK_CARDREADERLAUNCHER_H_
|