18#include <QScopedPointer>
20#include <QWebSocketServer>
29 Q_PLUGIN_METADATA(IID
"governikus.UiPlugin" FILE
"metadata.json")
30 Q_INTERFACES(governikus::UiPlugin)
33 QSharedPointer<HttpServer> mHttpServer;
34 QWebSocketServer mServer;
35 QScopedPointer<QWebSocket, QScopedPointerDeleteLater> mConnection;
36 QSharedPointer<HttpRequest> mRequest;
37 QPointer<UiPluginJson> mJson;
38 QSharedPointer<WorkflowContext> mContext;
40 bool mUiDominationPrevUsedAsSDK;
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);
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