AusweisApp2
MsgContext.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "context/AuthContext.h"
11 #include "MsgTypes.h"
12 
13 namespace governikus
14 {
15 
17 {
18  Q_DISABLE_COPY(MsgContext)
19 
20  protected:
21  MsgLevel mApiLevel;
22  QList<MsgType> mStateMessages;
23  QSharedPointer<WorkflowContext> mContext;
24 
25  public:
26  MsgContext();
27 
28  void setApiLevel(MsgLevel pApiLevel);
29  MsgLevel getApiLevel() const;
30 
31  MsgType getLastStateMsg() const;
32 
33  bool isActiveWorkflow() const;
34 
35  QSharedPointer<AuthContext> getAuthContext();
36  QSharedPointer<const AuthContext> getAuthContext() const;
37 
38  QSharedPointer<WorkflowContext> getWorkflowContext();
39  QSharedPointer<const WorkflowContext> getWorkflowContext() const;
40 };
41 
43  : public MsgContext
44 {
45  public:
46  void clear();
47  void addStateMsg(MsgType pMsgType);
48  void setWorkflowContext(const QSharedPointer<WorkflowContext>& pContext);
49 };
50 
51 } // namespace governikus
Definition: MsgContext.h:42
void setWorkflowContext(const QSharedPointer< WorkflowContext > &pContext)
Definition: MsgContext.cpp:85
MsgType getLastStateMsg() const
Definition: MsgContext.cpp:74
void setApiLevel(MsgLevel pApiLevel)
Definition: MsgContext.cpp:62
MsgContext()
Definition: MsgContext.cpp:14
void addStateMsg(MsgType pMsgType)
Definition: MsgContext.cpp:91
bool isActiveWorkflow() const
Definition: MsgContext.cpp:22
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
Definition: MsgContext.h:16
QSharedPointer< WorkflowContext > mContext
Definition: MsgContext.h:23
QList< MsgType > mStateMessages
Definition: MsgContext.h:22
void clear()
Definition: MsgContext.cpp:97
QSharedPointer< AuthContext > getAuthContext()
Definition: MsgContext.cpp:28
MsgLevel getApiLevel() const
Definition: MsgContext.cpp:68
MsgLevel mApiLevel
Definition: MsgContext.h:21
QSharedPointer< WorkflowContext > getWorkflowContext()
Definition: MsgContext.cpp:50