Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::core::seproxy::plugin::CardPresentMonitoringJob Class Referencefinal

#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
 
- Public Member Functions inherited from keyple::core::seproxy::plugin::AbstractMonitoringJob
 AbstractMonitoringJob ()
 
virtual ~AbstractMonitoringJob ()
 
bool isRunning () const
 

Additional Inherited Members

- Protected Attributes inherited from keyple::core::seproxy::plugin::AbstractMonitoringJob
std::atomic< bool > mRunning
 

Detailed Description

This monitoring job polls the SeReader#isSePresent() method to detect SE_INSERTED/SE_REMOVED

Constructor & Destructor Documentation

◆ CardPresentMonitoringJob()

keyple::core::seproxy::plugin::CardPresentMonitoringJob::CardPresentMonitoringJob ( SeReader reader,
long  waitTimeout,
bool  monitorInsertion 
)

Build a monitoring job to detect the card insertion

Parameters
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

Member Function Documentation

◆ monitoringJob()

void keyple::core::seproxy::plugin::CardPresentMonitoringJob::monitoringJob ( AbstractObservableState state,
std::atomic< bool > &  cancellationFlag 
)

◆ startMonitoring()

std::future< void > keyple::core::seproxy::plugin::CardPresentMonitoringJob::startMonitoring ( AbstractObservableState state,
std::atomic< bool > &  cancellationFlag 
)
overridevirtual

(package-private)<br

Implements keyple::core::seproxy::plugin::AbstractMonitoringJob.

◆ stop()

void keyple::core::seproxy::plugin::CardPresentMonitoringJob::stop ( )
overridevirtual

(package-private)<br

Reimplemented from keyple::core::seproxy::plugin::AbstractMonitoringJob.


The documentation for this class was generated from the following files: