Keypop Reader C++ API 2.0.0
Reference Reader API for C++
CardSelectionManager.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <memory>
14#include <string>
15
21
22namespace keypop {
23namespace reader {
24namespace selection {
25
30
74public:
78 virtual ~CardSelectionManager() = default;
79
88 virtual void setMultipleSelectionMode() = 0;
89
107 virtual int prepareSelection(
108 const std::shared_ptr<CardSelectorBase> cardSelector,
109 const std::shared_ptr<CardSelectionExtension> cardSelectionExtension)
110 = 0;
111
121 virtual void prepareReleaseChannel() = 0;
122
134 virtual const std::string exportCardSelectionScenario() const = 0;
135
150 virtual int
151 importCardSelectionScenario(const std::string& cardSelectionScenario)
152 = 0;
153
170 virtual const std::shared_ptr<CardSelectionResult>
171 processCardSelectionScenario(std::shared_ptr<CardReader> reader) = 0;
172
191 std::shared_ptr<ObservableCardReader> observableCardReader,
192 const ObservableCardReader::NotificationMode notificationMode)
193 = 0;
194
209 virtual const std::shared_ptr<CardSelectionResult>
211 const std::shared_ptr<ScheduledCardSelectionsResponse>
212 scheduledCardSelectionsResponse)
213 = 0;
214
246 virtual const std::string exportProcessedCardSelectionScenario() const = 0;
247
275 virtual const std::shared_ptr<CardSelectionResult>
277 const std::string& processedCardSelectionScenario) const = 0;
278};
279
280} /* namespace selection */
281} /* namespace reader */
282} /* namespace keypop */
virtual int importCardSelectionScenario(const std::string &cardSelectionScenario)=0
virtual int prepareSelection(const std::shared_ptr< CardSelectorBase > cardSelector, const std::shared_ptr< CardSelectionExtension > cardSelectionExtension)=0
virtual const std::shared_ptr< CardSelectionResult > importProcessedCardSelectionScenario(const std::string &processedCardSelectionScenario) const =0
virtual void scheduleCardSelectionScenario(std::shared_ptr< ObservableCardReader > observableCardReader, const ObservableCardReader::NotificationMode notificationMode)=0
virtual const std::shared_ptr< CardSelectionResult > parseScheduledCardSelectionsResponse(const std::shared_ptr< ScheduledCardSelectionsResponse > scheduledCardSelectionsResponse)=0
virtual const std::shared_ptr< CardSelectionResult > processCardSelectionScenario(std::shared_ptr< CardReader > reader)=0
virtual const std::string exportCardSelectionScenario() const =0
virtual const std::string exportProcessedCardSelectionScenario() const =0