16 #include <QScopedPointer>
18 #include <QWebSocketServer>
27 Q_PLUGIN_METADATA(IID
"governikus.UIPlugIn" FILE
"metadata.json")
28 Q_INTERFACES(governikus::UIPlugIn)
31 QSharedPointer<HttpServer> mHttpServer;
32 QWebSocketServer mServer;
33 QScopedPointer<QWebSocket, QScopedPointerDeleteLater> mConnection;
34 QSharedPointer<HttpRequest> mRequest;
36 QSharedPointer<WorkflowContext> mContext;
38 bool mUiDominationPrevUsedAsSDK;
41 void doShutdown()
override;
42 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext)
override;
43 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext)
override;
44 void onUiDomination(
const UIPlugIn* pUi,
const QString& pInformation,
bool pAccepted)
override;
45 void onUiDominationReleased()
override;
46 void onNewWebSocketRequest(
const QSharedPointer<HttpRequest>& pRequest);
47 void onNewConnection();
48 void onClientDisconnected();
49 void onTextMessageReceived(
const QString& pMessage);
50 void onJsonMessage(
const QByteArray& pMessage);
Definition: UIPlugInJson.h:21
Definition: UIPlugInWebSocket.h:25
UIPlugInWebSocket()
Definition: UIPlugInWebSocket.cpp:26
~UIPlugInWebSocket() override=default
A simple template renderer.
Definition: ActivationContext.h:15