AusweisApp2
PersonalizationModel.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "AuthModel.h"
10 #include "WorkflowRequest.h"
11 
12 #if __has_include("context/PersonalizationContext.h")
14 #endif
15 
16 
17 namespace governikus
18 {
19 
21  : public AuthModel
22 {
23  Q_OBJECT
24  friend class Env;
25 
26  Q_PROPERTY(QString blockingCode READ getBlockingCode NOTIFY fireBlockingCodeChanged)
28  Q_PROPERTY(QString restrictionDate READ getRestrictionDate NOTIFY fireRestrictionDateChanged)
29 
30  private:
32 
33 #if __has_include("context/PersonalizationContext.h")
34 
35  private:
36  QSharedPointer<PersonalizationContext> mContext;
37 
38  public:
39  void resetPersonalizationContext(const QSharedPointer<PersonalizationContext>& pContext = QSharedPointer<PersonalizationContext>());
40 #endif
41 
42  public:
43  Q_INVOKABLE void startWorkflow();
44  QString getBlockingCode() const;
45  int getRemainingAttempts() const;
46  QString getRestrictionDate() const;
47  QVector<ReaderManagerPlugInType> getSupportedReaderPlugInTypes() const override;
48 
49  public Q_SLOTS:
50  void onTranslationChanged();
51 
52  Q_SIGNALS:
53  void fireStartWorkflow(const QSharedPointer<WorkflowRequest>& pRequest);
57 };
58 
59 } // namespace governikus
Definition: AuthModel.h:23
Definition: Env.h:44
Definition: PersonalizationModel.h:22
QString blockingCode
Definition: PersonalizationModel.h:26
QString restrictionDate
Definition: PersonalizationModel.h:28
QString getRestrictionDate() const
Definition: PersonalizationModel.cpp:59
int remainingAttempts
Definition: PersonalizationModel.h:27
QString getBlockingCode() const
Definition: PersonalizationModel.cpp:35
Q_INVOKABLE void startWorkflow()
Definition: PersonalizationModel.cpp:25
void onTranslationChanged()
Definition: PersonalizationModel.cpp:99
int getRemainingAttempts() const
Definition: PersonalizationModel.cpp:47
void fireStartWorkflow(const QSharedPointer< WorkflowRequest > &pRequest)
QVector< ReaderManagerPlugInType > getSupportedReaderPlugInTypes() const override
Definition: PersonalizationModel.cpp:91
A simple template renderer.
Definition: ActivationContext.h:15