94 std::shared_ptr<CardReaderObservationExceptionHandlerSpi>
95 exceptionHandler) = 0;
109 virtual void addObserver(std::shared_ptr<CardReaderObserverSpi> observer)
Card reader driving the underlying hardware to manage the card detection.
Card reader able to observe the insertion/removal of cards.
virtual void finalizeCardProcessing()=0
Notifies the observation process that the processing of the card has been completed in order to ensur...
virtual void startCardDetection(const DetectionMode detectionMode)=0
Starts the card detection.
virtual void removeObserver(const std::shared_ptr< CardReaderObserverSpi > observer)=0
Unregisters a reader observer.
NotificationMode
The options that apply when a card is detected.
@ ALWAYS
All cards presented to the readers are notified to the observers, regardless of the result of the sel...
@ MATCHED_ONLY
Only the cards that have been successfully selected will be notified to the observers.
virtual void clearObservers()=0
Unregisters all observers at once.
virtual int countObservers() const =0
Provides the current number of registered observers.
virtual void stopCardDetection()=0
Stops the card detection.
DetectionMode
Card detection management options to be applied after processing a card.
@ SINGLESHOT
Stop and wait for a restart signal.
@ REPEATING
Continue waiting for the insertion of a next card.
virtual void setReaderObservationExceptionHandler(std::shared_ptr< CardReaderObservationExceptionHandlerSpi > exceptionHandler)=0
Sets the exception handler.
virtual void addObserver(std::shared_ptr< CardReaderObserverSpi > observer)=0
Registers a new observer to be notified when a reader event occurs.
Reader observation error handler to implement in order to be notified of errors that may occur during...
Reader observer to implement in order to receive CardReaderEvent from a keypop::reader::ObservableCar...