22 QVector<Msg> mStateMessages;
24 QSharedPointer<WorkflowContext> mContext;
44 template<
typename T = WorkflowContext>
47 static_assert(std::is_base_of_v<WorkflowContext, T>,
"T must derive WorkflowContext");
51 return mContext.objectCast<
const T>();
54 return QSharedPointer<const T>();
58 template<
typename T = WorkflowContext>
61 static_assert(std::is_base_of_v<WorkflowContext, T>,
"T must derive WorkflowContext");
65 return mContext.objectCast<
T>();
68 return QSharedPointer<T>();
Definition: MsgContext.h:17
bool isActiveWorkflow() const
Definition: MsgContext.cpp:23
MsgContext()
Definition: MsgContext.cpp:14
void clear()
Definition: MsgContext.cpp:76
QSharedPointer< const T > getContext() const
Definition: MsgContext.h:45
QSharedPointer< T > getContext()
Definition: MsgContext.h:59
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
void addStateMsg(const Msg &pMsg)
Definition: MsgContext.cpp:70
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:76
#define T(v)
Definition: http_parser.cpp:237
A simple template renderer.
Definition: ActivationContext.h:15