AusweisApp2
Lade ...
Suche ...
Keine Treffer
IfdServer.h
gehe zur Dokumentation dieser Datei
1
10#pragma once
11
13
14#include <QByteArray>
15#include <QObject>
16#include <QScopedPointer>
17#include <QSslCertificate>
18
19namespace governikus
20{
21
23 : public QObject
24{
25 Q_OBJECT
26
27 protected:
28 IfdServer() = default;
29
30 public:
31 ~IfdServer() override;
32
33 [[nodiscard]] virtual bool isRunning() const = 0;
34 virtual bool start(const QString& pServerName) = 0;
35 virtual void stop() = 0;
36 virtual void setPairing(bool pEnable = true) = 0;
37 [[nodiscard]] virtual bool isConnected() const = 0;
38 [[nodiscard]] virtual bool isPairingConnection() const = 0;
39 [[nodiscard]] virtual QSslCertificate getCurrentCertificate() const = 0;
40 [[nodiscard]] virtual const QSharedPointer<ServerMessageHandler>& getMessageHandler() const = 0;
41 [[nodiscard]] virtual bool isLocal() const = 0;
42
43 Q_SIGNALS:
44 void fireMessageHandlerAdded(QSharedPointer<ServerMessageHandler> pHandler);
45 void firePskChanged(const QByteArray& pPsk);
46 void fireConnectedChanged(bool pConnected);
48 void firePairingCompleted(const QSslCertificate& pCertificate);
49};
50
51} // namespace governikus
Definition: IfdServer.h:24
virtual bool isConnected() const =0
void firePairingCompleted(const QSslCertificate &pCertificate)
virtual bool isRunning() const =0
virtual void setPairing(bool pEnable=true)=0
virtual bool start(const QString &pServerName)=0
void firePskChanged(const QByteArray &pPsk)
virtual bool isPairingConnection() const =0
virtual const QSharedPointer< ServerMessageHandler > & getMessageHandler() const =0
virtual QSslCertificate getCurrentCertificate() const =0
virtual void stop()=0
virtual bool isLocal() const =0
void fireMessageHandlerAdded(QSharedPointer< ServerMessageHandler > pHandler)
void fireConnectedChanged(bool pConnected)
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16