AusweisApp
Lade ...
Suche ...
Keine Treffer
GenericContextContainer.h
gehe zur Dokumentation dieser Datei
1
4
5
#pragma once
6
7
#include "
context/WorkflowContext.h
"
8
9
10
namespace
governikus
11
{
12
13
template
<
typename
ContextClass>
14
class
GenericContextContainer
15
{
16
private
:
17
const
QSharedPointer<ContextClass> mTypedContext;
18
19
public
:
20
explicit
GenericContextContainer
(
const
QSharedPointer<WorkflowContext>& pContext)
21
: mTypedContext(pContext.staticCast<ContextClass>())
22
{
23
Q_ASSERT(pContext.objectCast<ContextClass>());
24
}
25
26
27
[[nodiscard]] QSharedPointer<ContextClass>
getContext
()
const
28
{
29
return
mTypedContext;
30
}
31
32
33
};
34
35
}
// namespace governikus
WorkflowContext.h
governikus::GenericContextContainer::getContext
QSharedPointer< ContextClass > getContext() const
Definition
GenericContextContainer.h:27
governikus::GenericContextContainer::GenericContextContainer
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition
GenericContextContainer.h:20
governikus
Defines the AccessRight and AccessRole enum.
Definition
CommandApdu.h:17
src
workflows
base
states
GenericContextContainer.h
Erzeugt von
1.13.2