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
17namespace governikus
18{
19
21 , UNKNOWN
22 , MOCK
23 , PCSC
24 , NFC
26 , LOCAL_IFD
27 , SMART
28 , SIMULATOR
29 )
30
31
33{
34 public:
35 enum class Key
36 {
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 {
96 }
97
98
99 [[nodiscard]] bool isScanRunning() const
100 {
101 return mScanRunning;
102 }
103
104
106 {
108 }
109
110 private:
113 bool mEnabled;
114 bool mAvailable;
115 bool mScanRunning;
116
117
118};
119
120} // namespace governikus
#define defineEnumType(enumName,...)
Definition EnumHelper.h:90
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16
UNKNOWN
Definition ResponseApdu.h:63
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114