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