43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
// ---------------------------------------------------------------------------
|
|
// Name: actSCardTokenReg.h
|
|
// Product: cv act library
|
|
// Purpose: factory functions registry to create SCardToken objects.
|
|
//
|
|
// Copyright: (c) 2002 cv cryptovision GmbH
|
|
// all rights reserved
|
|
// Licence: The conditions for the use of this software are regulated
|
|
// in the cv act library licence agreement.
|
|
//
|
|
// Autor: Dr. Xiangdong Wang (XWG)
|
|
// Date: 05/13/2002
|
|
// ---------------------------------------------------------------------------
|
|
|
|
#ifndef ACT_SCardTokenReg_h
|
|
#define ACT_SCardTokenReg_h
|
|
|
|
namespace act
|
|
{
|
|
class ISCardOS;
|
|
class SCardToken;
|
|
|
|
typedef bool (*CheckSCardTokenPtr)(ISCardOS*);
|
|
typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*);
|
|
|
|
struct SCardTokenMapEntry
|
|
{
|
|
CheckSCardTokenPtr CheckPtr;
|
|
CreateSCardTokenPtr CreatePtr;
|
|
};
|
|
|
|
class SCardTokenReg
|
|
{
|
|
public:
|
|
static SCardToken* CreateSCardToken(ISCardOS* os);
|
|
static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr);
|
|
static void Insert(const SCardTokenMapEntry* entry);
|
|
};
|
|
|
|
} // namespace act
|
|
|
|
#endif // ACT_SCardTokenReg_h
|