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