#include <ctcardbase.h>
Inheritance diagram for CTCardBase:
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_READERDESCR & | readerDescription () const |
void | setTimeout (int t) |
int | timeout () const |
CTError | sendAPDU (const string &apdu, string &response) |
|
|
|
|
|
|
|
|
|
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.
|
|
Reimplemented in CTCard. |
|
|
|
|
|
|
|
|
|
Returns the reader flags of the currently used reader Possible flags are (bits can be ORed):
|
|
|
|
This method sends a raw APDU to the card reader and returns the answer. |
|
Set the timeout when waiting for a server response (default is 30 seconds).
|
|
Get the timeout when waiting for a server response (default is 30 seconds). |