AusweisApp2
Lade ...
Suche ...
Keine Treffer
GenericContextContainer.h
gehe zur Dokumentation dieser Datei
1
12
#pragma once
13
14
#include "
context/WorkflowContext.h
"
15
16
17
namespace
governikus
18
{
19
20
template
<
typename
ContextClass>
21
class
GenericContextContainer
22
{
23
private
:
24
const
QSharedPointer<ContextClass> mTypedContext;
25
26
public
:
27
explicit
GenericContextContainer
(
const
QSharedPointer<WorkflowContext>& pContext)
28
: mTypedContext(pContext.staticCast<ContextClass>())
29
{
30
Q_ASSERT(pContext.objectCast<ContextClass>());
31
}
32
33
34
[[nodiscard]] QSharedPointer<ContextClass>
getContext
()
const
35
{
36
return
mTypedContext;
37
}
38
39
40
};
41
42
}
// namespace governikus
WorkflowContext.h
governikus::GenericContextContainer
Definition
GenericContextContainer.h:22
governikus::GenericContextContainer::getContext
QSharedPointer< ContextClass > getContext() const
Definition
GenericContextContainer.h:34
governikus::GenericContextContainer::GenericContextContainer
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition
GenericContextContainer.h:27
governikus
Implementation of GeneralAuthenticate response APDUs.
Definition
CommandApdu.h:16
src
workflows
base
states
GenericContextContainer.h
Erzeugt von
1.9.8