Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SmartRemovalMonitoringJob.h>
Inherits keyple::core::seproxy::plugin::AbstractMonitoringJob.
Public Member Functions | |
SmartRemovalMonitoringJob (SmartRemovalReader *reader) | |
std::future< void > | startMonitoring (AbstractObservableState *state, std::atomic< bool > &cancellationFlag) override |
void | monitoringJob (AbstractObservableState *state, std::atomic< bool > &cancellationFlag) |
void | stop () override |
![]() | |
AbstractMonitoringJob () | |
virtual | ~AbstractMonitoringJob () |
bool | isRunning () const |
Additional Inherited Members | |
![]() | |
std::atomic< bool > | mRunning |
Detect the SE removal thanks to the method SmartRemovalReader#waitForCardAbsentNative(). This method is invoked in another thread
This job should be used by readers who have the ability to natively detect the disappearance of the SE during a communication session with an ES (between two APDU exchanges).
PC/SC readers have this capability.
If the SE is removed during processing, then an internal SE_REMOVED event is triggered.
If a communication problem with the reader occurs (KeypleReaderIOException) an internal STOP_DETECT event is fired.
keyple::core::seproxy::plugin::SmartRemovalMonitoringJob::SmartRemovalMonitoringJob | ( | SmartRemovalReader * | reader | ) |
void keyple::core::seproxy::plugin::SmartRemovalMonitoringJob::monitoringJob | ( | AbstractObservableState * | state, |
std::atomic< bool > & | cancellationFlag | ||
) |
|
overridevirtual |
|
overridevirtual |
(package-private)
Reimplemented from keyple::core::seproxy::plugin::AbstractMonitoringJob.