AusweisApp
Lade ...
Suche ...
Keine Treffer
ReaderDetector.h
gehe zur Dokumentation dieser Datei
1
10#pragma once
11
12#include "Env.h"
14#include "UsbId.h"
15
16#ifdef Q_OS_LINUX
17 #include "DeviceListener.h"
18#endif
19
20#ifdef Q_OS_MACOS
21 #include <IOKit/IOKitLib.h>
22#endif
23
24#ifdef Q_OS_WIN
25 #include <QAbstractNativeEventFilter>
26#endif
27
28#include <QList>
29#include <QSharedPointer>
30
31namespace governikus
32{
33
35 : public QObject
36#ifdef Q_OS_WIN
37 , QAbstractNativeEventFilter
38#endif
39{
41 friend class Env;
42
43 private:
44#ifdef Q_OS_MACOS
46
48#endif
49
50#ifdef Q_OS_LINUX
52#endif
53
54 bool initNativeEvents();
55 bool terminateNativeEvents();
56
57 protected:
59 ~ReaderDetector() override;
60
61 public:
62 [[nodiscard]] virtual QList<UsbId> attachedDevIds() const;
63
64#ifdef Q_OS_WIN
65 bool nativeEventFilter(const QByteArray& pEventType, void* pMessage, qintptr* pResult) override;
66#endif
67
72 [[nodiscard]] QList<ReaderConfigurationInfo> getAttachedSupportedDevices() const;
73
75
78};
79
80} // namespace governikus
Definition DeviceListener.h:18
Definition Env.h:42
Definition ReaderConfigurationInfo.h:21
Definition ReaderDetector.h:39
virtual QList< UsbId > attachedDevIds() const
Definition ReaderDetector_generic.cpp:23
ReaderConfigurationInfo getReaderConfigurationInfo(const QString &pReaderName) const
Definition ReaderDetector.cpp:52
ReaderDetector()
Definition ReaderDetector.cpp:19
QList< ReaderConfigurationInfo > getAttachedSupportedDevices() const
getAttachedDevices produce a list of supported devices that are attached to the system
Definition ReaderDetector.cpp:34
~ReaderDetector() override
Definition ReaderDetector.cpp:28
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114