AusweisApp2
Lade ...
Suche ...
Keine Treffer
ReleaseInformationModel.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
10#include "ReleaseInformation.h"
11
12#include <QObject>
13#include <QScopedPointer>
14#include <QSharedPointer>
15
16
17class test_ReleaseInformationModel;
18
19namespace governikus
20{
21
23 : public QObject
24{
25 Q_OBJECT
26 friend class ::test_ReleaseInformationModel;
27
30 Q_PROPERTY(bool allowRetry READ allowRetry NOTIFY fireCurrentInformationChanged)
31
32 private:
33 FormattedTextModel* mFallbackModel;
34 FormattedTextModel* mModelCurrent;
35 FormattedTextModel* mModelUpdate;
36
37 FormattedTextModel* createModel(const ReleaseInformation& pInformation);
38
39 private Q_SLOTS:
40 void onCurrentChanged();
41 void onUpdateChanged();
42
43 public:
45 ~ReleaseInformationModel() override = default;
48 Q_INVOKABLE void update();
49 bool allowRetry() const;
50
51 public Q_SLOTS:
52 void onTranslationChanged() const;
53
54 Q_SIGNALS:
57};
58
59} // namespace governikus
Definition: FormattedTextModel.h:20
Definition: ReleaseInformationModel.h:24
void onTranslationChanged() const
Definition: ReleaseInformationModel.cpp:114
FormattedTextModel * getUpdateRelease() const
Definition: ReleaseInformationModel.cpp:95
ReleaseInformationModel()
Definition: ReleaseInformationModel.cpp:74
FormattedTextModel * updateRelease
Definition: ReleaseInformationModel.h:29
FormattedTextModel * getCurrentRelease() const
Definition: ReleaseInformationModel.cpp:89
Q_INVOKABLE void update()
Definition: ReleaseInformationModel.cpp:101
~ReleaseInformationModel() override=default
bool allowRetry
Definition: ReleaseInformationModel.h:30
FormattedTextModel * currentRelease
Definition: ReleaseInformationModel.h:28
Definition: ReleaseInformation.h:22
A simple template renderer.
Definition: ActivationContext.h:15