AusweisApp2
StateBuilder.h
gehe zur Dokumentation dieser Datei
1
7
#pragma once
8
9
#include "
AbstractState.h
"
10
11
#include <QSharedPointer>
12
#include <QString>
13
14
namespace
governikus
15
{
16
17
class
StateBuilder
18
{
19
StateBuilder
() =
delete
;
20
Q_DISABLE_COPY(
StateBuilder
)
21
22
public
:
23
template
<
typename
T,
typename
C>
24
static
T
*
createState
(
const
QSharedPointer<C>& pContext)
25
{
26
auto
state
=
new
T
(pContext);
27
state
->setStateName(
AbstractState::getClassName
(
state
->metaObject()->className()));
28
return
state
;
29
}
30
31
32
};
33
34
}
// namespace governikus
governikus::StateBuilder::createState
static T * createState(const QSharedPointer< C > &pContext)
Definition:
StateBuilder.h:24
governikus::StateBuilder
Definition:
StateBuilder.h:18
AbstractState.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition:
ActivationContext.h:15
governikus::AbstractState::getClassName
static QString getClassName(const char *const pName)
Definition:
AbstractState.cpp:50
T
#define T(v)
Definition:
http_parser.cpp:237
state
state
Definition:
http_parser.cpp:280
src
workflows
base
states
StateBuilder.h
Erzeugt von
1.8.20