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

#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
 
- 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

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.

Constructor & Destructor Documentation

◆ SmartInsertionMonitoringJob()

keyple::core::seproxy::plugin::SmartInsertionMonitoringJob::SmartInsertionMonitoringJob ( SmartInsertionReader reader)

Member Function Documentation

◆ monitoringJob()

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

◆ startMonitoring()

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

◆ stop()

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

(package-private)

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


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