AusweisApp2
IfdServer.h
gehe zur Dokumentation dieser Datei
1
8#pragma once
9
11
12#include <QByteArray>
13#include <QObject>
14#include <QScopedPointer>
15#include <QSslCertificate>
16
17namespace governikus
18{
19
21 : public QObject
22{
23 Q_OBJECT
24
25 protected:
26 IfdServer() = default;
27
28 public:
29 ~IfdServer() override;
30
31 [[nodiscard]] virtual bool isRunning() const = 0;
32 virtual bool start(const QString& pServerName) = 0;
33 virtual void stop() = 0;
34 virtual void setPairing(bool pEnable = true) = 0;
35 [[nodiscard]] virtual bool isConnected() const = 0;
36 [[nodiscard]] virtual bool isPairingConnection() const = 0;
37 [[nodiscard]] virtual QSslCertificate getCurrentCertificate() const = 0;
38 [[nodiscard]] virtual const QSharedPointer<ServerMessageHandler>& getMessageHandler() const = 0;
39 [[nodiscard]] virtual bool isLocal() const = 0;
40
41 Q_SIGNALS:
42 void fireMessageHandlerAdded(QSharedPointer<ServerMessageHandler> pHandler);
43 void firePskChanged(const QByteArray& pPsk);
44 void fireConnectedChanged(bool pConnected);
47};
48
49} // namespace governikus
Definition: IfdServer.h:22
virtual bool isConnected() const =0
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)
A simple template renderer.
Definition: ActivationContext.h:15