111 const std::shared_ptr<CardSelectorBase> cardSelector,
112 const std::shared_ptr<CardSelectionExtension> cardSelectionExtension)
172 virtual const std::shared_ptr<CardSelectionResult>
193 std::shared_ptr<ObservableCardReader> observableCardReader,
210 virtual const std::shared_ptr<CardSelectionResult>
212 const std::shared_ptr<ScheduledCardSelectionsResponse>
213 scheduledCardSelectionsResponse) = 0;
275 virtual const std::shared_ptr<CardSelectionResult>
277 const std::string& processedCardSelectionScenario)
const = 0;
Card reader driving the underlying hardware to manage the card detection.
Card reader able to observe the insertion/removal of cards.
NotificationMode
The options that apply when a card is detected.
Service dedicated to card selection, based on the preparation of a card selection scenario.
virtual int importCardSelectionScenario(const std::string &cardSelectionScenario)=0
Imports a card selection scenario provided as a string in string format.
virtual int prepareSelection(const std::shared_ptr< CardSelectorBase > cardSelector, const std::shared_ptr< CardSelectionExtension > cardSelectionExtension)=0
Appends a card selection case to the card selection scenario.
virtual const std::shared_ptr< CardSelectionResult > importProcessedCardSelectionScenario(const std::string &processedCardSelectionScenario) const =0
Imports a previously exported processed card selection scenario in string format and returns the card...
virtual void scheduleCardSelectionScenario(std::shared_ptr< ObservableCardReader > observableCardReader, const ObservableCardReader::NotificationMode notificationMode)=0
Schedules the execution of the prepared card selection scenario as soon as a card is presented to the...
virtual ~CardSelectionManager()=default
Virtual destructor.
virtual void prepareReleaseChannel()=0
Requests the closing of the physical channel at the end of the execution of the card selection reques...
virtual const std::shared_ptr< CardSelectionResult > parseScheduledCardSelectionsResponse(const std::shared_ptr< ScheduledCardSelectionsResponse > scheduledCardSelectionsResponse)=0
Analyzes the responses provided by a calypsonet::terminal::reader::CardReaderEvent following the inse...
virtual const std::shared_ptr< CardSelectionResult > processCardSelectionScenario(std::shared_ptr< CardReader > reader)=0
Explicitely executes a previously prepared card selection scenario and returns the card selection res...
virtual void setMultipleSelectionMode()=0
Sets the multiple selection mode to process all selection cases even in case of a successful selectio...
virtual const std::string exportCardSelectionScenario() const =0
Exports the current prepared card selection scenario to a string in string format.
virtual const std::string exportProcessedCardSelectionScenario() const =0
Exports the content of the previously processed card selection scenario in string format.
SPI provided by a card extension, allowing to enrich a selection case with additional commands if req...