AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
RemoteConnector.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "EnumHelper.h"
10 #include "messages/RemoteMessage.h"
11 #include "RemoteDeviceDescriptor.h"
12 #include "RemoteDispatcher.h"
13 
14 #include <QObject>
15 
16 namespace governikus
17 {
18 defineEnumType(RemoteErrorCode,
19  INVALID_REQUEST,
20  EMPTY_PASSWORD,
21  NO_SUPPORTED_API_LEVEL,
22  CONNECTION_TIMEOUT,
23  CONNECTION_ERROR,
24  REMOTE_HOST_REFUSED_CONNECTION)
25 
26 
27 class RemoteConnector
28  : public QObject
29 {
30  Q_OBJECT
31 
32  public:
33  RemoteConnector();
34  virtual ~RemoteConnector() = default;
35 
36  static GlobalStatus errorToGlobalStatus(RemoteErrorCode pDeviceError);
37 
38  public Q_SLOTS:
39  virtual void onConnectRequest(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, const QString& pPsk) = 0;
40 
41  Q_SIGNALS:
42  void fireRemoteDispatcherCreated(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, const QSharedPointer<RemoteDispatcher>& pAdapter);
43  void fireRemoteDispatcherError(const RemoteDeviceDescriptor& pRemoteDeviceDescriptor, RemoteErrorCode pErrorCode);
44 
45 };
46 
47 } /* namespace governikus */
virtual void onConnectRequest(const RemoteDeviceDescriptor &pRemoteDeviceDescriptor, const QString &pPsk)=0
virtual defineEnumType(RemoteErrorCode, INVALID_REQUEST, EMPTY_PASSWORD, NO_SUPPORTED_API_LEVEL, CONNECTION_TIMEOUT, CONNECTION_ERROR, REMOTE_HOST_REFUSED_CONNECTION) class RemoteConnector ~RemoteConnector()=default
void fireRemoteDispatcherError(const RemoteDeviceDescriptor &pRemoteDeviceDescriptor, RemoteErrorCode pErrorCode)
void fireRemoteDispatcherCreated(const RemoteDeviceDescriptor &pRemoteDeviceDescriptor, const QSharedPointer< RemoteDispatcher > &pAdapter)
defineEnumType(UiModule, CURRENT, DEFAULT, IDENTIFY, SETTINGS, PINMANAGEMENT) defineEnumType(StatusFormat
UI modules that can be requested to show.