AusweisApp
Lade ...
Suche ...
Keine Treffer
ReaderManagerPlugInInfo.h
gehe zur Dokumentation dieser Datei
1
9
#pragma once
10
11
#include "
EnumHelper.h
"
12
13
#include <QMap>
14
#include <QString>
15
#include <QVariant>
16
17
namespace
governikus
18
{
19
20
defineEnumType
(
ReaderManagerPlugInType
21
,
UNKNOWN
22
,
MOCK
23
,
PCSC
24
,
NFC
25
,
REMOTE_IFD
26
,
LOCAL_IFD
27
,
SMART
28
,
SIMULATOR
29
)
30
31
32
class
ReaderManagerPlugInInfo
33
{
34
public
:
35
enum class
Key
36
{
37
PCSC_LITE_VERSION
,
LOCAL_IFD_STATE
38
};
39
40
public
:
41
ReaderManagerPlugInInfo
(
ReaderManagerPlugInType
pType
= ReaderManagerPlugInType::UNKNOWN,
42
bool
pEnabled
=
false
,
43
bool
pAvailable
=
false
);
44
45
[[
nodiscard
]]
const
ReaderManagerPlugInType
& getPlugInType()
const
46
{
47
return
mType;
48
}
49
50
51
[[
nodiscard
]]
bool
hasValue
(
Key
pKey
)
const
52
{
53
return
mValues
.contains(
pKey
);
54
}
55
56
57
[[
nodiscard
]]
QVariant
getValue(
Key
pKey
)
const
58
{
59
return
mValues
.value(
pKey
);
60
}
61
62
63
void
setValue(
Key
pKey
,
const
QVariant
&
pValue
)
64
{
65
mValues
.insert(
pKey
,
pValue
);
66
}
67
68
72
[[
nodiscard
]]
bool
isEnabled()
const
73
{
74
return
mEnabled;
75
}
76
77
78
void
setEnabled(
bool
pEnabled
)
79
{
80
mEnabled =
pEnabled
;
81
}
82
83
87
[[
nodiscard
]]
bool
isAvailable
()
const
88
{
89
return
mAvailable
;
90
}
91
92
93
void
setAvailable
(
bool
pAvailable
)
94
{
95
mAvailable
=
pAvailable
;
96
}
97
98
99
[[
nodiscard
]]
bool
isScanRunning()
const
100
{
101
return
mScanRunning
;
102
}
103
104
105
void
setScanRunning
(
bool
pScanRunning
)
106
{
107
mScanRunning
=
pScanRunning
;
108
}
109
110
private
:
111
ReaderManagerPlugInType
mType;
112
QMap<Key, QVariant>
mValues
;
113
bool
mEnabled;
114
bool
mAvailable
;
115
bool
mScanRunning
;
116
117
118
};
119
120
}
// namespace governikus
EnumHelper.h
defineEnumType
#define defineEnumType(enumName,...)
Definition
EnumHelper.h:90
governikus
Implementation of GeneralAuthenticate response APDUs.
Definition
CommandApdu.h:16
governikus::UNKNOWN
UNKNOWN
Definition
ResponseApdu.h:63
governikus::decodeObject
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition
ASN1TemplateUtil.h:114
src
card
base
ReaderManagerPlugInInfo.h
Erzeugt von
1.10.0