AusweisApp2
IfdClientImpl.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include "IfdClient.h"
8 #include "IfdConnector.h"
9 #include "IfdList.h"
10 
11 #include <QPointer>
12 
13 namespace governikus
14 {
15 
16 
18  : public IfdClient
19 {
20  Q_OBJECT
21 
22  private:
23  QMap<QString, int> mErrorCounter;
24  QThread mIfdConnectorThread;
25  QPointer<IfdConnector> mIfdConnector;
26  QVector<QSharedPointer<IfdListEntry>> mIfdConnectorPending;
27  QStringList 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 QString& pId);
37 
38  public:
39  IfdClientImpl();
40  ~IfdClientImpl() override;
41 
42  Q_INVOKABLE void establishConnection(const QSharedPointer<IfdListEntry>& pEntry, const QString& pPsk) override;
43 
44  QStringList getConnectedDeviceIDs() const override;
45 
46 };
47 
48 } // namespace governikus
Code
Definition: GlobalStatus.h:26
Definition: IfdClientImpl.h:19
IfdClientImpl()
Definition: IfdClientImpl.cpp:16
void onDispatcherDestroyed(GlobalStatus::Code pCloseCode, const QString &pId)
Definition: IfdClientImpl.cpp:170
Q_INVOKABLE void establishConnection(const QSharedPointer< IfdListEntry > &pEntry, const QString &pPsk) override
Definition: IfdClientImpl.cpp:139
~IfdClientImpl() override
Definition: IfdClientImpl.cpp:27
void onDispatcherError(const IfdDescriptor &pIfdDescriptor, IfdErrorCode pErrorCode)
Definition: IfdClientImpl.cpp:103
void onDispatcherCreated(const IfdDescriptor &pIfdDescriptor, const QSharedPointer< IfdDispatcherClient > &pDispatcher)
Definition: IfdClientImpl.cpp:84
QStringList getConnectedDeviceIDs() const override
Definition: IfdClientImpl.cpp:164
Definition: IfdClient.h:25
Definition: IfdDescriptor.h:22
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16