AusweisApp2
Lade ...
Suche ...
Keine Treffer
RemoteConnector.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
9#include "EnumHelper.h"
13
14#include <QObject>
15
16namespace governikus
17{
18defineEnumType(RemoteErrorCode,
19 INVALID_REQUEST,
20 NO_SUPPORTED_API_LEVEL,
21 CONNECTION_TIMEOUT,
22 CONNECTION_ERROR,
23 REMOTE_HOST_REFUSED_CONNECTION)
24
25
26class RemoteConnector
27 : public QObject
28{
29 Q_OBJECT
30
31 public:
32 RemoteConnector();
33 ~RemoteConnector() override = default;
34
35 static GlobalStatus errorToGlobalStatus(RemoteErrorCode pDeviceError);
36
37 public Q_SLOTS:
38 virtual void onConnectRequest(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, const QString& pPsk) = 0;
39
40 Q_SIGNALS:
41 void fireRemoteDispatcherCreated(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, const QSharedPointer<RemoteDispatcherClient>& pClientDispatcher);
42 void fireRemoteDispatcherError(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, RemoteErrorCode pErrorCode);
43
44};
45
46} // namespace governikus
#define defineEnumType(enumName,...)
Definition: EnumHelper.h:86
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15