#include <CTAPIManager.h>
Inheritance diagram for CTAPIManager:


Public Member Functions | |
| uint | getReaderCount () |
| number of installed readers | |
| std::string | getReaderName (uint index) |
| name of the reader at index | |
| std::string | getReaderState (uint index) |
| string form of reader status at index, EMPTY, POWERED etc | |
| std::string | getATRHex (uint index) |
| hex representation of card ATR in reader at index, empty string if no card is present | |
| CTAPIConnection * | connect (uint index, bool forceT0) |
| connects instance of card to reader at index, forceT0 is used for cards that cant speak T1 | |
| void | getDefaultLibAndPort (std::string &lib, uint &port) |
| Gets a first working CTAPI reader library and port. | |
Protected Member Functions | |
| void | makeConnection (ConnectionBase *c, uint idx) |
| void | deleteConnection (ConnectionBase *c) |
| void | beginTransaction (ConnectionBase *c) |
| void | endTransaction (ConnectionBase *c, bool forceReset=false) |
| void | execCommand (ConnectionBase *c, std::vector< byte > &cmd, std::vector< byte > &recv, unsigned int &recvLen) |
| void | execPinEntryCommand (ConnectionBase *c, std::vector< byte > &cmd) |
| void | execPinChangeCommand (ConnectionBase *c, std::vector< byte > &cmd, size_t oldPinLen, size_t newPinLen) |
| bool | isT1Protocol (ConnectionBase *c) |
| tell if given connection is using T1 (true) or T0 | |
CTAPIManager represents a collection of CTAPI libraries for smart card readers, with a few builtin known library names and ports for OmniKey and SCM libraries. The libraries are loaded at runtime, to avoid linked-in dependencies
1.5.1