AusweisApp2
Lade ...
Suche ...
Keine Treffer
UIPlugInWebService.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_UIPlugInWebService;
15
16namespace governikus
17{
18
23 : public UIPlugIn
24 , private HttpHandler
25{
26 Q_OBJECT
27 Q_PLUGIN_METADATA(IID "governikus.UIPlugIn" FILE "metadata.json")
28 Q_INTERFACES(governikus::UIPlugIn)
30
31 private:
32 QSharedPointer<HttpServer> mServer;
33
34 [[nodiscard]] bool listening();
35 [[nodiscard]] bool initialize() override;
36
37 void handleShowUiRequest(const QString& pUiModule, const QSharedPointer<HttpRequest>& pRequest) override;
38 void handleWorkflowRequest(const QSharedPointer<HttpRequest>& pRequest) override;
39
40 private Q_SLOTS:
41 void doShutdown() override;
42 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
43 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
44 void onNewRequest(const QSharedPointer<HttpRequest>& pRequest);
45
46 public:
48 ~UIPlugInWebService() override = default;
49};
50
51} // namespace governikus
Definition: HttpRequest.h:31
Definition: HttpServer.h:21
This an API through a local web service as specified by TR-03124-1.
Definition: UIPlugInWebService.h:25
friend class ::test_UIPlugInWebService
Definition: UIPlugInWebService.h:29
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16