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
UIPlugInWebSocket()
Definition UIPlugInWebSocket.cpp:27
~UIPlugInWebSocket() override=default
bool initialize() override
Definition UIPlugInWebSocket.cpp:40
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16