AusweisApp2
Lade ...
Suche ...
Keine Treffer
GenericContextContainer.h
gehe zur Dokumentation dieser Datei
1
10#pragma once
11
13
14
15namespace governikus
16{
17
18template<typename ContextClass>
20{
21 private:
22 const QSharedPointer<ContextClass> mTypedContext;
23
24 public:
25 explicit GenericContextContainer(const QSharedPointer<WorkflowContext>& pContext)
26 : mTypedContext(pContext.staticCast<ContextClass>())
27 {
28 Q_ASSERT(pContext.objectCast<ContextClass>());
29 }
30
31
32 virtual ~GenericContextContainer() = default;
33
34 virtual QSharedPointer<ContextClass> getContext()
35 {
36 return mTypedContext;
37 }
38
39
40};
41
42} // namespace governikus
Definition: GenericContextContainer.h:20
virtual ~GenericContextContainer()=default
virtual QSharedPointer< ContextClass > getContext()
Definition: GenericContextContainer.h:34
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition: GenericContextContainer.h:25
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15