AusweisApp
Lade ...
Suche ...
Keine Treffer
LocalIfdReaderManagerPlugIn.h
gehe zur Dokumentation dieser Datei
1
5
#pragma once
6
7
#include "
EnumHelper.h
"
8
#include "
IfdReaderManagerPlugIn.h
"
9
#include "
LocalIfdClient.h
"
10
11
#include <QTimer>
12
13
namespace
governikus
14
{
15
16
defineEnumType
(
LocalIfdState
17
,
CONNECTED
18
,
DISCONNECTED
19
,
INVALID_CERTIFICATE
20
,
INCOMPATIBLE_VERSION
21
,
NOT_INSTALLED
22
)
23
24
class
LocalIfdReaderManagerPlugIn
25
:
public
IfdReaderManagerPlugIn
26
{
27
Q_OBJECT
28
Q_PLUGIN_METADATA
(
IID
"governikus.ReaderManagerPlugIn"
FILE
"metadata.json"
)
29
Q_INTERFACES
(
governikus::ReaderManagerPlugIn
)
30
31
public
:
32
LocalIfdReaderManagerPlugIn
();
33
34
void
startScan(
bool
pAutoConnect
)
override
;
35
void
stopScan(
const
QString
&
pError
=
QString
())
override
;
36
37
protected
:
38
LocalIfdClient* getIfdClient()
const override
;
39
void
addDispatcher(
const
QSharedPointer<IfdDispatcherClient>
&
pDispatcher
)
override
;
40
41
private
Q_SLOTS
:
42
void
onLocalIfdConnectionClosed
(
GlobalStatus::Code
pCloseCode
,
const
QString
&
pId
);
43
44
private
:
45
bool
mServiceConnected
;
46
[[
nodiscard
]]
bool
isAusweisAppInstalled
();
47
void
setState
(
LocalIfdState
pState
);
48
void
updateState
();
49
50
private
Q_SLOTS
:
51
void
connectToReader
(
const
QSharedPointer<IfdListEntry>
pIfdDevice
)
const
;
52
};
53
54
}
// namespace governikus
EnumHelper.h
defineEnumType
#define defineEnumType(enumName,...)
Definition
EnumHelper.h:90
IfdReaderManagerPlugIn.h
LocalIfdClient.h
governikus::GlobalStatus::Code
Code
Definition
GlobalStatus.h:28
governikus::ReaderManagerPlugIn
Definition
ReaderManagerPlugIn.h:24
governikus
Implementation of GeneralAuthenticate response APDUs.
Definition
CommandApdu.h:16
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
ifd
local
LocalIfdReaderManagerPlugIn.h
Erzeugt von
1.10.0