AusweisApp
Lade ...
Suche ...
Keine Treffer
IfdConnector.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "EnumHelper.h"
8#include "IfdDescriptor.h"
10
11#include <QObject>
12
13namespace governikus
14{
15defineEnumType(IfdErrorCode,
16 INVALID_REQUEST,
17 NO_SUPPORTED_API_LEVEL,
18 CONNECTION_TIMEOUT,
19 CONNECTION_ERROR,
20 REMOTE_HOST_REFUSED_CONNECTION)
21
22
23class IfdConnector
24 : public QObject
25{
26 Q_OBJECT
27
28 public:
29 IfdConnector() = default;
30 ~IfdConnector() override = default;
31
32 static GlobalStatus errorToGlobalStatus(IfdErrorCode pErrorCode);
33
34 public Q_SLOTS:
35 virtual void onConnectRequest(const IfdDescriptor& pIfdDescriptor, const QByteArray& pPsk) = 0;
36
37 Q_SIGNALS:
38 void fireDispatcherCreated(const IfdDescriptor& pIfdDescriptor, const QSharedPointer<IfdDispatcherClient>& pClientDispatcher);
39 void fireDispatcherError(const IfdDescriptor& pIfdDescriptor, IfdErrorCode pErrorCode);
40
41};
42
43} // namespace governikus
#define defineEnumType(enumName,...)
Definition EnumHelper.h:81
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17