AusweisApp2
Lade ...
Suche ...
Keine Treffer
WorkflowController.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
10
11#include <QScopedPointer>
12#include <QSharedPointer>
13#include <QStateMachine>
14
15namespace governikus
16{
17
19 : public QObject
20{
21 Q_OBJECT
22
23 protected:
24 QStateMachine mStateMachine;
25 const QSharedPointer<WorkflowContext> mContext;
26
27 public:
28 explicit WorkflowController(const QSharedPointer<WorkflowContext>& pContext);
29 ~WorkflowController() override;
30
31 void run();
32
33 [[nodiscard]] QSharedPointer<WorkflowContext> getContext() const
34 {
35 return mContext;
36 }
37
38
39 template<typename T>
41 {
42 auto state = StateBuilder::createState<T>(mContext);
43 mStateMachine.addState(state);
44 return state;
45 }
46
47 Q_SIGNALS:
49
50};
51
52} // namespace governikus
Definition: WorkflowController.h:20
QStateMachine mStateMachine
Definition: WorkflowController.h:24
T * addState()
Definition: WorkflowController.h:40
const QSharedPointer< WorkflowContext > mContext
Definition: WorkflowController.h:25
QSharedPointer< WorkflowContext > getContext() const
Definition: WorkflowController.h:33
void run()
Definition: WorkflowController.cpp:24
~WorkflowController() override
Definition: WorkflowController.cpp:19
#define T(v)
Definition: http_parser.cpp:237
state
Definition: http_parser.cpp:280
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15