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;
40 virtual void doShutdown()
override;
41 virtual void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext)
override;
42 virtual void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext)
override;
43 virtual void onUiDomination(
const UIPlugIn* pUi,
const QString& pInformation,
bool pAccepted)
override;
44 virtual void onUiDominationReleased()
override;
45 void onNewWebSocketRequest(
const QSharedPointer<HttpRequest>& pRequest);
46 void onNewConnection();
47 void onClientDisconnected();
48 void onTextMessageReceived(
const QString& pMessage);
49 void onJsonMessage(
const QByteArray& pMessage);
Definition: UIPlugInJson.h:18
Definition: UIPlugInWebSocket.h:25
UIPlugInWebSocket()
Definition: UIPlugInWebSocket.cpp:26
virtual ~UIPlugInWebSocket() override
Definition: UIPlugInWebSocket.cpp:54
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15