14#include "keyple/core/service/WaitForStartDetectStateAdapter.hpp"
22WaitForStartDetectStateAdapter::WaitForStartDetectStateAdapter(
23 ObservableLocalReaderAdapter* reader,
24 std::shared_ptr<AbstractMonitoringJobAdapter> monitoringJob,
25 std::shared_ptr<ExecutorService> executorService)
26: AbstractObservableStateAdapter(
27 MonitoringState::WAIT_FOR_START_DETECTION,
34WaitForStartDetectStateAdapter::WaitForStartDetectStateAdapter(
35 ObservableLocalReaderAdapter* reader)
36: WaitForStartDetectStateAdapter(reader, nullptr, nullptr)
41WaitForStartDetectStateAdapter::onEvent(
const InternalEvent event)
44 "Internal event [%] received for reader [%] in current state [%]\n",
46 getReader()->getName(),
47 getMonitoringState());
51 case InternalEvent::START_DETECT:
52 switchState(MonitoringState::WAIT_FOR_CARD_INSERTION);
56 mLogger->trace(
"Event ignored\n");
ObservableLocalReaderAdapter::InternalEvent InternalEvent