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

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

Constructor & Destructor Documentation

◆ SmartRemovalMonitoringJob()

keyple::core::seproxy::plugin::SmartRemovalMonitoringJob::SmartRemovalMonitoringJob ( SmartRemovalReader reader)

Member Function Documentation

◆ monitoringJob()

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

◆ startMonitoring()

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

◆ stop()

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

(package-private)

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


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