The SCardReaderList object is used to monitor a set of PC/SC readers (i.e. wait for card events) More...
Public Member Functions | |
SCardReaderList (uint Scope, string Groups) | |
SCardReaderList (string[] reader_names) | |
virtual void | Release () |
delegate void | StatusChangeCallback (string ReaderName, uint ReaderState, CardBuffer CardAtr) |
void | StartMonitor (StatusChangeCallback callback) |
void | StopMonitor () |
bool | Contains (string ReaderName) |
SCardReader | GetReader (int index) |
SCardReader | GetReader (string reader_name) |
Protected Attributes | |
string [] | _reader_names |
Properties | |
string [] | Readers [get] |
uint | LastError [get] |
string | LastErrorAsString [get] |
The SCardReaderList object is used to monitor a set of PC/SC readers (i.e. wait for card events)
void SpringCard.PCSC.SCardReaderList.StartMonitor | ( | StatusChangeCallback | callback | ) |
m* SCardReaderList/StartMonitor
NAME SCardReaderList.StartMonitor()
SYNOPSIS SCardReaderList.StartMonitor(SCardReaderList.StatusChangeCallback callback);
DESCRIPTION Create a background thread to monitor the reader associated to the object. Everytime the status of the reader is changed, the callback is invoked.
SEE ALSO SCardReaderList.StatusChangeCallback SCardReaderList.StopMonitor()
delegate void SpringCard.PCSC.SCardReaderList.StatusChangeCallback | ( | string | ReaderName, |
uint | ReaderState, | ||
CardBuffer | CardAtr | ||
) |
t* SCardReaderList/StatusChangeCallback
NAME SCardReaderList.StatusChangeCallback
SYNOPSIS delegate void StatusChangeCallback(string ReaderName, uint ReaderState, CardBuffer CardAtr);
DESCRIPTION Typedef for the callback that will be called by the background thread launched by SCardReaderList.StartMonitor(), everytime the status of one of the readers is changed.
NOTES The callback is invoked in the context of a background thread. This implies that it is not allowed to access the GUI's components directly.
void SpringCard.PCSC.SCardReaderList.StopMonitor | ( | ) |
m* SCardReaderList/StopMonitor
NAME SCardReaderList.StopMonitor()
DESCRIPTION Stop the background thread previously launched by SCardReaderList.StartMonitor().
|
get |
v* SCardReaderList/LastError
NAME uint SCardReaderList.LastError
OUTPUT Returns the last error encountered by the object when working with SCARD functions.
SEE ALSO SCardReaderList.LastErrorAsString
|
get |
v* SCardReaderList/LastErrorAsString
NAME string SCardReaderList.LastErrorAsString
OUTPUT Returns the last error encountered by the object when working with SCARD functions.
SEE ALSO SCardReaderList.LastError
|
get |
f* SCardReaderList/Readers
DESCRIPTION Provides the list of the monitored PC/SC readers
SYNOPSIS string[] SCardReaderList.Readers