Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <CardPresentMonitoringJob.h>
Inherits keyple::core::seproxy::plugin::AbstractMonitoringJob.
Public Member Functions | |
CardPresentMonitoringJob (SeReader *reader, long waitTimeout, bool monitorInsertion) | |
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 |
This monitoring job polls the SeReader#isSePresent() method to detect SE_INSERTED/SE_REMOVED
keyple::core::seproxy::plugin::CardPresentMonitoringJob::CardPresentMonitoringJob | ( | SeReader * | reader, |
long | waitTimeout, | ||
bool | monitorInsertion | ||
) |
Build a monitoring job to detect the card insertion
reader | : reader that will be polled with the method isSePresent() |
waitTimeout | : wait time during two hit of the polling |
monitorInsertion | : if true, polls for SE_INSERTED, else SE_REMOVED |
void keyple::core::seproxy::plugin::CardPresentMonitoringJob::monitoringJob | ( | AbstractObservableState * | state, |
std::atomic< bool > & | cancellationFlag | ||
) |
|
overridevirtual |
(package-private)<br
Implements keyple::core::seproxy::plugin::AbstractMonitoringJob.
|
overridevirtual |
(package-private)<br
Reimplemented from keyple::core::seproxy::plugin::AbstractMonitoringJob.