Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SmartInsertionMonitoringJob.h>
Inherits keyple::core::seproxy::plugin::AbstractMonitoringJob.
Public Member Functions | |
SmartInsertionMonitoringJob (SmartInsertionReader *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 insertion thanks to the method SmartInsertionReader#waitForCardPresent(). This method is invoked in another thread.
The job waits indefinitely for the waitForCardPresent method to return.
When an SE is present, an internal SE_INSERTED event is fired.
If a communication problem with the reader occurs (KeypleReaderIOException) an internal STOP_DETECT event is fired.
keyple::core::seproxy::plugin::SmartInsertionMonitoringJob::SmartInsertionMonitoringJob | ( | SmartInsertionReader * | reader | ) |
void keyple::core::seproxy::plugin::SmartInsertionMonitoringJob::monitoringJob | ( | AbstractObservableState * | state, |
std::atomic< bool > & | cancellationFlag | ||
) |
|
overridevirtual |
|
overridevirtual |
(package-private)
Reimplemented from keyple::core::seproxy::plugin::AbstractMonitoringJob.