Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CTCardBase Class Reference

#include <ctcardbase.h>

Inheritance diagram for CTCardBase:

CTCard CTMemoryCard CTProcessorCard CTKVKCard CTGeldKarte HBCICard RSACard List of all members.

Public Types

enum  CallBackResult { CallBackContinue = 0, CallBackAbort }

Public Member Functions

 CTCardBase (const CTReaderContext &ctx)
 CTCardBase (const CTCardBase &c)
virtual ~CTCardBase ()
virtual CallBackResult callback (bool first)
CTError open ()
CTError close (bool force=false)
bool isOpen () const
const string atr () const
unsigned int readerFlags () const
unsigned int readerStatus () const
const CHIPCARD_READERDESCRreaderDescription () const
void setTimeout (int t)
int timeout () const
CTError sendAPDU (const string &apdu, string &response)

Member Enumeration Documentation

enum CTCardBase::CallBackResult
 

Enumeration values:
CallBackContinue 
CallBackAbort 


Constructor & Destructor Documentation

CTCardBase::CTCardBase const CTReaderContext ctx  ) 
 

CTCardBase::CTCardBase const CTCardBase c  ) 
 

virtual CTCardBase::~CTCardBase  )  [virtual]
 


Member Function Documentation

const string CTCardBase::atr  )  const [inline]
 

Returns the ATR-String. This string is received upon reset of a chip card and holds interesting information about the card. This class itself gathers much information from this answer, but you rarely need this. This is only valid if the card is open.

Author:
Martin Preuss<martin@libchipcard.de>
Returns:
the ATR string

virtual CallBackResult CTCardBase::callback bool  first  )  [virtual]
 

Reimplemented in CTCard.

CTError CTCardBase::close bool  force = false  ) 
 

bool CTCardBase::isOpen  )  const [inline]
 

CTError CTCardBase::open  ) 
 

const CHIPCARD_READERDESCR& CTCardBase::readerDescription  )  const
 

unsigned int CTCardBase::readerFlags  )  const
 

Returns the reader flags of the currently used reader Possible flags are (bits can be ORed):

  • CHIPCARD_READERFLAGS_KEYPAD
  • CHIPCARD_READERFLAGS_DISPLAY
These flags are only valid if the card is open.

unsigned int CTCardBase::readerStatus  )  const
 

CTError CTCardBase::sendAPDU const string &  apdu,
string &  response
 

This method sends a raw APDU to the card reader and returns the answer.

void CTCardBase::setTimeout int  t  )  [inline]
 

Set the timeout when waiting for a server response (default is 30 seconds).

Parameters:
t timeout in seconds

int CTCardBase::timeout  )  const [inline]
 

Get the timeout when waiting for a server response (default is 30 seconds).


The documentation for this class was generated from the following file:
Generated on Fri Dec 3 23:10:25 2004 for libchipcard by  doxygen 1.3.9.1