AusweisApp2
Lade ...
Suche ...
Keine Treffer
UIPlugInProxy.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
9#include "HttpHandler.h"
10#include "HttpRequest.h"
11#include "HttpServer.h"
12#include "UIPlugIn.h"
13
14class test_UIPlugInProxy;
15
16namespace governikus
17{
19 : public UIPlugIn
20 , private HttpHandler
21{
22 Q_OBJECT
23 Q_PLUGIN_METADATA(IID "governikus.UIPlugIn" FILE "metadata.json")
24 Q_INTERFACES(governikus::UIPlugIn)
25 friend class ::test_UIPlugInProxy;
26
27 private:
28 QSharedPointer<HttpServer> mServer;
29
30 [[nodiscard]] bool listen();
31
32 void handleShowUiRequest(const QString& pUiModule, const QSharedPointer<HttpRequest>& pRequest) override;
33 void handleWorkflowRequest(const QSharedPointer<HttpRequest>& pRequest) override;
34
35 private Q_SLOTS:
36 void doShutdown() override;
37 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
38 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
39 void onUiDomination(const UIPlugIn* pUi, const QString& pInformation, bool pAccepted) override;
40 void onUiDominationReleased() override;
41 void onNewRequest(const QSharedPointer<HttpRequest>& pRequest);
42 void onNewWebSocketRequest(const QSharedPointer<HttpRequest>& pRequest);
43
44 public:
46 ~UIPlugInProxy() override = default;
47
48 [[nodiscard]] bool initialize() override;
49};
50
51} // namespace governikus
Definition: HttpRequest.h:31
Definition: HttpServer.h:21
Definition: UIPlugInProxy.h:21
bool initialize() override
Definition: UIPlugInProxy.cpp:25
friend class ::test_UIPlugInProxy
Definition: UIPlugInProxy.h:25
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16