AusweisApp
Lade ...
Suche ...
Keine Treffer
UiPluginWebSocket.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "HttpRequest.h"
12#include "HttpServer.h"
13#include "UiPlugin.h"
14#include "UiPluginJson.h"
15
16#include <QDir>
17#include <QMap>
18#include <QScopedPointer>
19#include <QWebSocket>
20#include <QWebSocketServer>
21
22namespace governikus
23{
24
26 : public UiPlugin
27{
29 Q_PLUGIN_METADATA(IID "governikus.UiPlugin" FILE "metadata.json")
30 Q_INTERFACES(governikus::UiPlugin)
31
32 private:
34 QWebSocketServer mServer;
39 bool mUiDomination;
40 bool mUiDominationPrevUsedAsSDK;
41
42 private Q_SLOTS:
43 void doShutdown() override;
44 void onWorkflowStarted(const QSharedPointer<WorkflowRequest>& pRequest) override;
45 void onWorkflowFinished(const QSharedPointer<WorkflowRequest>& pRequest) override;
46 void onUiDomination(const UiPlugin* pUi, const QString& pInformation, bool pAccepted) override;
47 void onUiDominationReleased() override;
48 void onNewWebSocketRequest(const QSharedPointer<HttpRequest>& pRequest);
49 void onNewConnection();
50 void onClientDisconnected();
51 void onTextMessageReceived(const QString& pMessage);
52 void onJsonMessage(const QByteArray& pMessage);
53
54 public:
56 ~UiPluginWebSocket() override = default;
57
58 [[nodiscard]] bool initialize() override;
59};
60
61} // namespace governikus
Definition UiPluginWebSocket.h:27
bool initialize() override
Definition UiPluginWebSocket.cpp:40
~UiPluginWebSocket() override=default
UiPluginWebSocket()
Definition UiPluginWebSocket.cpp:27
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114