Keypop Reader C++ API 2.0.0
Reference Reader API for C++
include
keypop
reader
CardReaderEvent.hpp
Go to the documentation of this file.
1
/**************************************************************************************************
2
* Copyright (c) 2024 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 https://opensource.org/licenses/MIT. *
6
* *
7
* SPDX-License-Identifier: MIT *
8
**************************************************************************************************/
9
10
#pragma once
11
12
#include <memory>
13
#include <string>
14
15
#include "
keypop/reader/selection/ScheduledCardSelectionsResponse.hpp
"
16
17
namespace
keypop
{
18
namespace
reader {
19
20
using
keypop::reader::selection::ScheduledCardSelectionsResponse
;
21
30
class
CardReaderEvent
{
31
public
:
37
enum
Type
{
43
CARD_INSERTED
,
44
50
CARD_MATCHED
,
51
57
CARD_REMOVED
,
58
64
UNAVAILABLE
65
};
66
73
virtual
const
std::string&
getReaderName
()
const
= 0;
74
81
virtual
Type
getType
()
const
= 0;
82
96
virtual
const
std::shared_ptr<ScheduledCardSelectionsResponse>
97
getScheduledCardSelectionsResponse
()
const
= 0;
98
};
99
100
}
/* namespace reader */
101
}
/* namespace keypop */
ScheduledCardSelectionsResponse.hpp
keypop::reader::CardReaderEvent
Definition:
CardReaderEvent.hpp:30
keypop::reader::CardReaderEvent::getType
virtual Type getType() const =0
keypop::reader::CardReaderEvent::getReaderName
virtual const std::string & getReaderName() const =0
keypop::reader::CardReaderEvent::Type
Type
Definition:
CardReaderEvent.hpp:37
keypop::reader::CardReaderEvent::UNAVAILABLE
@ UNAVAILABLE
Definition:
CardReaderEvent.hpp:64
keypop::reader::CardReaderEvent::CARD_REMOVED
@ CARD_REMOVED
Definition:
CardReaderEvent.hpp:57
keypop::reader::CardReaderEvent::CARD_INSERTED
@ CARD_INSERTED
Definition:
CardReaderEvent.hpp:43
keypop::reader::CardReaderEvent::CARD_MATCHED
@ CARD_MATCHED
Definition:
CardReaderEvent.hpp:50
keypop::reader::CardReaderEvent::getScheduledCardSelectionsResponse
virtual const std::shared_ptr< ScheduledCardSelectionsResponse > getScheduledCardSelectionsResponse() const =0
keypop::reader::selection::ScheduledCardSelectionsResponse
Definition:
ScheduledCardSelectionsResponse.hpp:30
keypop
Definition:
CardCommunicationException.hpp:16
Generated by
1.9.2