AusweisApp2
ReleaseInformationModel.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "Env.h"
10 #include "FormattedTextModel.h"
11 #include "GlobalStatus.h"
12 #include "ReleaseInformation.h"
13 
14 #include <QObject>
15 #include <QScopedPointer>
16 #include <QSharedPointer>
17 
18 class test_ReleaseInformationModel;
19 
20 namespace governikus
21 {
22 
24  : public QObject
25 {
26  Q_OBJECT
27  friend class Env;
28  friend class ::test_ReleaseInformationModel;
29 
30  Q_PROPERTY(QSharedPointer<FormattedTextModel> currentRelease READ getCurrentRelease NOTIFY fireCurrentInformationChanged)
33 
34  private:
35  QSharedPointer<FormattedTextModel> mFallbackModel;
36  QSharedPointer<FormattedTextModel> mModelCurrent;
37  QSharedPointer<FormattedTextModel> mModelUpdate;
38 
40  QSharedPointer<FormattedTextModel> createModel(const ReleaseInformation& pInformation) const;
41 
42  private Q_SLOTS:
43  void onCurrentChanged();
44  void onUpdateChanged();
45 
46  public:
47  ~ReleaseInformationModel() override = default;
48  QSharedPointer<FormattedTextModel> getCurrentRelease() const;
49  QSharedPointer<FormattedTextModel> getUpdateRelease() const;
50  Q_INVOKABLE void update();
51  bool allowRetry() const;
52 
53  public Q_SLOTS:
54  void onTranslationChanged();
55 
56  Q_SIGNALS:
59 };
60 
61 } // namespace governikus
QSharedPointer< FormattedTextModel > getCurrentRelease() const
Definition: ReleaseInformationModel.cpp:90
Definition: ReleaseInformationModel.h:23
Definition: FormattedTextModel.h:18
Definition: ReleaseInformation.h:20
void onTranslationChanged()
Definition: ReleaseInformationModel.cpp:84
Q_INVOKABLE void update()
Definition: ReleaseInformationModel.cpp:102
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
QSharedPointer< FormattedTextModel > getUpdateRelease() const
Definition: ReleaseInformationModel.cpp:96
Definition: Env.h:43
QSharedPointer< FormattedTextModel > updateRelease
Definition: ReleaseInformationModel.h:31
QSharedPointer< FormattedTextModel > currentRelease
Definition: ReleaseInformationModel.h:30