24 QList<Msg> mStateMessages;
26 QSharedPointer<WorkflowContext> mContext;
46 template<
typename T = WorkflowContext>
49 static_assert(std::is_base_of_v<WorkflowContext, T>,
"T must derive WorkflowContext");
53 return mContext.objectCast<
const T>();
56 return QSharedPointer<const T>();
60 template<
typename T = WorkflowContext>
63 static_assert(std::is_base_of_v<WorkflowContext, T>,
"T must derive WorkflowContext");
67 return mContext.objectCast<
T>();
70 return QSharedPointer<T>();
Definition: MsgContext.h:19
bool isActiveWorkflow() const
Definition: MsgContext.cpp:23
MsgContext()
Definition: MsgContext.cpp:14
void clear()
Definition: MsgContext.cpp:76
MsgLevel getApiLevel() const
Definition: MsgContext.cpp:35
void setApiLevel(MsgLevel pApiLevel)
Definition: MsgContext.cpp:29
void setWorkflowContext(const QSharedPointer< WorkflowContext > &pContext)
Definition: MsgContext.cpp:64
QSharedPointer< T > getContext()
Definition: MsgContext.h:61
void addStateMsg(const Msg &pMsg)
Definition: MsgContext.cpp:70
QSharedPointer< const T > getContext() const
Definition: MsgContext.h:47
void setProgressStatus(bool pStatus)
Definition: MsgContext.cpp:58
Msg getLastStateMsg() const
Definition: MsgContext.cpp:41
bool provideProgressStatus() const
Definition: MsgContext.cpp:52
Definition: MsgContext.h:78
#define T(v)
Definition: http_parser.cpp:237
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16