Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SmartRemovalReader.h>
Inherits keyple::core::seproxy::plugin::ObservableReaderNotifier.
Inherited by keyple::plugin::pcsc::PcscReaderImpl, and keyple::plugin::stub::StubReaderImpl.
Public Member Functions | |
virtual | ~SmartRemovalReader () |
virtual bool | waitForCardAbsentNative ()=0 |
virtual void | stopWaitForCardRemoval () |
![]() | |
ObservableReaderNotifier () | |
virtual | ~ObservableReaderNotifier () |
virtual void | notifyObservers (const std::shared_ptr< ReaderEvent > event)=0 |
![]() | |
virtual | ~ObservableReader ()=default |
virtual void | addObserver (const std::shared_ptr< ReaderObserver > observer)=0 |
virtual void | removeObserver (const std::shared_ptr< ReaderObserver > observer)=0 |
virtual void | clearObservers ()=0 |
virtual int | countObservers () const =0 |
virtual void | startSeDetection (const PollingMode pollingMode)=0 |
virtual void | stopSeDetection ()=0 |
virtual void | setDefaultSelectionRequest (std::shared_ptr< AbstractDefaultSelectionsRequest > defaultSelectionsRequest, const NotificationMode ¬ificationMode)=0 |
virtual void | setDefaultSelectionRequest (std::shared_ptr< AbstractDefaultSelectionsRequest >defaultSelectionsRequest, const NotificationMode ¬ificationMode, const PollingMode pollingMode)=0 |
virtual void | finalizeSeProcessing ()=0 |
![]() | |
virtual | ~SeReader () |
virtual bool | isSePresent ()=0 |
virtual void | addSeProtocolSetting (std::shared_ptr< SeProtocol > seProtocol, const std::string &protocolRule)=0 |
virtual void | setSeProtocolSetting (const std::map< std::shared_ptr< SeProtocol >, std::string > &protocolSetting)=0 |
virtual const TransmissionMode & | getTransmissionMode () const =0 |
virtual bool | operator== (const SeReader &o) const |
![]() | |
virtual | ~ProxyElement ()=default |
virtual const std::string & | getName () const =0 |
virtual const std::map< const std::string, const std::string > & | getParameters () const =0 |
virtual void | setParameter (const std::string &key, const std::string &value)=0 |
virtual void | setParameters (const std::map< const std::string, const std::string > ¶meters) |
Additional Inherited Members | |
![]() | |
enum | PollingMode { PollingMode::REPEATING, PollingMode::SINGLESHOT } |
![]() | |
std::atomic< bool > | mShuttingDown |
Interface implemented by the readers able to handle natively the SE removal process.
|
inlinevirtual |
|
inlinevirtual |
Interrupts the waiting of the removal of the SE
Reimplemented in keyple::plugin::stub::StubReaderImpl, and keyple::plugin::pcsc::PcscReaderImpl.
|
pure virtual |
Wait until the SE disappears.
This method must be implemented by the plugin's reader class when it implements the SmartRemovalReader interface. The reader implementation must manage the SE removal process itself. (for example by using the analogous waitForCardAbsent method in the case of a plugin based on smartcard.io [PC/SC]).
In the case where the reader plugin is not able to handle the SE removal process itself (not implementing the SmartRemovalReader interface, then it is managed by the isSePresentPing method defined in this class.
Returns true if the SE has disappeared.
KeypleReaderIOException | if the communication with the reader or the SE has failed |
Implemented in keyple::plugin::stub::StubReaderImpl, and keyple::plugin::pcsc::PcscReaderImpl.