AusweisApp
Lade ...
Suche ...
Keine Treffer
GenericContextContainer.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
8
9
10namespace governikus
11{
12
13template<typename ContextClass>
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
Definition GenericContextContainer.h:15
QSharedPointer< ContextClass > getContext() const
Definition GenericContextContainer.h:27
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition GenericContextContainer.h:20
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17