AusweisApp2
Lade ...
Suche ...
Keine Treffer
IfdConnector.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "EnumHelper.h"
12#include "IfdDescriptor.h"
13#include "IfdDispatcherClient.h"
14#include "messages/IfdMessage.h"
15
16#include <QObject>
17
18namespace governikus
19{
20defineEnumType(IfdErrorCode,
21 INVALID_REQUEST,
22 NO_SUPPORTED_API_LEVEL,
23 CONNECTION_TIMEOUT,
24 CONNECTION_ERROR,
25 REMOTE_HOST_REFUSED_CONNECTION)
26
27
28class IfdConnector
29 : public QObject
30{
31 Q_OBJECT
32
33 public:
34 IfdConnector() = default;
35 ~IfdConnector() override = default;
36
37 static GlobalStatus errorToGlobalStatus(IfdErrorCode pErrorCode);
38
39 public Q_SLOTS:
40 virtual void onConnectRequest(const IfdDescriptor& pIfdDescriptor, const QString& pPsk) = 0;
41
42 Q_SIGNALS:
43 void fireDispatcherCreated(const IfdDescriptor& pIfdDescriptor, const QSharedPointer<IfdDispatcherClient>& pClientDispatcher);
44 void fireDispatcherError(const IfdDescriptor& pIfdDescriptor, IfdErrorCode pErrorCode);
45
46};
47
48} // namespace governikus
#define defineEnumType(enumName,...)
Definition: EnumHelper.h:98
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16