locking needs reader; refs #28

This commit is contained in:
Marc Wäckerlin
2014-03-05 14:56:19 +00:00
parent acb046f913
commit 9ec9bea1a0

View File

@@ -200,6 +200,15 @@ namespace suisseid {
throw slot_not_found(name()); throw slot_not_found(name());
} }
/// Get the reader, needed for example to lock a transaction
/** @begincode
pcsc::Connection::Reader::Transaction lock(card.reader());
[... do some low level stuff ...]
@endcode */
mrw::Shared<pcsc::Connection::Reader> reader() {
return _reader;
}
/// Minimum allowed PIN length for this card. /// Minimum allowed PIN length for this card.
virtual unsigned int minimalPinLength() = 0; virtual unsigned int minimalPinLength() = 0;
/// Maximum allowed PIN length for this card. /// Maximum allowed PIN length for this card.