AusweisApp2
FinalState.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "AbstractState.h"
11 
12 namespace governikus
13 {
14 
16  : public AbstractState
17  , public GenericContextContainer<WorkflowContext>
18 {
19  Q_OBJECT
20 
21  private:
22  void run() override;
23 
24  protected:
25  void onEntry(QEvent* pEvent) override
26  {
27  AbstractState::onEntry(pEvent);
28  getContext()->setWorkflowFinished(true);
29  }
30 
31  public:
32  explicit FinalState(const QSharedPointer<WorkflowContext>& pContext)
33  : AbstractState(pContext, false)
34  , GenericContextContainer(pContext)
35  {
36  }
37 
38 
39 };
40 
41 } // namespace governikus
governikus::FinalState::onEntry
void onEntry(QEvent *pEvent) override
Definition: FinalState.h:25
governikus::AbstractState
Definition: AbstractState.h:20
governikus::GenericContextContainer< WorkflowContext >::getContext
virtual QSharedPointer< WorkflowContext > getContext()
Definition: GenericContextContainer.h:34
governikus::AbstractState::fireContinue
void fireContinue()
governikus::AbstractState::onEntry
void onEntry(QEvent *pEvent) override
Definition: AbstractState.cpp:71
governikus::AbstractState::fireAbort
void fireAbort()
GenericContextContainer.h
AbstractState.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::GenericContextContainer
Definition: GenericContextContainer.h:20
governikus::FinalState::FinalState
FinalState(const QSharedPointer< WorkflowContext > &pContext)
Definition: FinalState.h:32
governikus::FinalState
Definition: FinalState.h:18
FinalState.h