AusweisApp
 
Lade ...
Suche ...
Keine Treffer
IfdClientImpl.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include "IfdClient.h"
8#include "IfdConnector.h"
9#include "IfdList.h"
10
11#include <QPointer>
12
13namespace governikus
14{
15
16
18 : public IfdClient
19{
20 Q_OBJECT
21
22 private:
23 QMap<QByteArray, int> mErrorCounter;
24 QThread mIfdConnectorThread;
25 QPointer<IfdConnector> mIfdConnector;
26 QList<QSharedPointer<IfdListEntry>> mIfdConnectorPending;
27 QByteArrayList mConnectedDeviceIds;
28
29 void bootstrapConnectorThread();
30 void shutdownConnectorThread();
31 QSharedPointer<IfdListEntry> mapToAndTakeConnectorPending(const IfdDescriptor& pIfdDescriptor);
32
33 protected Q_SLOTS:
34 void onDispatcherCreated(const IfdDescriptor& pIfdDescriptor, const QSharedPointer<IfdDispatcherClient>& pDispatcher);
35 void onDispatcherError(const IfdDescriptor& pIfdDescriptor, IfdErrorCode pErrorCode);
36 void onDispatcherDestroyed(GlobalStatus::Code pCloseCode, const QByteArray& pId);
37
38 public:
40 ~IfdClientImpl() override;
41
42 Q_INVOKABLE void establishConnection(const QSharedPointer<IfdListEntry>& pEntry, const QByteArray& pPsk) override;
43
44 QByteArrayList getConnectedDeviceIDs() const override;
45
46};
47
48} // namespace governikus
Q_INVOKABLE void establishConnection(const QSharedPointer< IfdListEntry > &pEntry, const QByteArray &pPsk) override
Definition IfdClientImpl.cpp:138
QByteArrayList getConnectedDeviceIDs() const override
Definition IfdClientImpl.cpp:163
IfdClientImpl()
Definition IfdClientImpl.cpp:15
void onDispatcherDestroyed(GlobalStatus::Code pCloseCode, const QByteArray &pId)
Definition IfdClientImpl.cpp:169
~IfdClientImpl() override
Definition IfdClientImpl.cpp:26
void onDispatcherError(const IfdDescriptor &pIfdDescriptor, IfdErrorCode pErrorCode)
Definition IfdClientImpl.cpp:102
void onDispatcherCreated(const IfdDescriptor &pIfdDescriptor, const QSharedPointer< IfdDispatcherClient > &pDispatcher)
Definition IfdClientImpl.cpp:83
Definition IfdDescriptor.h:19
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17