AusweisApp
Lade ...
Suche ...
Keine Treffer
ReleaseInformationModel.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
9
10#include <QObject>
11#include <QScopedPointer>
12#include <QSharedPointer>
13#include <QtQml/qqmlregistration.h>
14
15
16class test_ReleaseInformationModel;
17
18namespace governikus
19{
20
22 : public QObject
23{
24 Q_OBJECT
25 QML_ELEMENT
26
27 friend class ::test_ReleaseInformationModel;
28
32
33 private:
34 FormattedTextModel* mFallbackModel;
35 FormattedTextModel* mModelCurrent;
36 FormattedTextModel* mModelUpdate;
37
38 FormattedTextModel* createModel(const ReleaseInformation& pInformation);
39
40 private Q_SLOTS:
41 void onCurrentChanged();
42 void onUpdateChanged();
43
44 public:
46 ~ReleaseInformationModel() override = default;
47 [[nodiscard]] FormattedTextModel* getCurrentRelease() const;
48 [[nodiscard]] FormattedTextModel* getUpdateRelease() const;
49 Q_INVOKABLE void update() const;
50 [[nodiscard]] bool allowRetry() const;
51
52 public Q_SLOTS:
53 void onTranslationChanged() const;
54
55 Q_SIGNALS:
58};
59
60} // namespace governikus
Definition FormattedTextModel.h:21
Definition ReleaseInformationModel.h:23
void onTranslationChanged() const
Definition ReleaseInformationModel.cpp:114
FormattedTextModel * getUpdateRelease() const
Definition ReleaseInformationModel.cpp:95
governikus::FormattedTextModel * currentRelease
Definition ReleaseInformationModel.h:29
governikus::FormattedTextModel * updateRelease
Definition ReleaseInformationModel.h:30
Q_INVOKABLE void update() const
Definition ReleaseInformationModel.cpp:101
FormattedTextModel * getCurrentRelease() const
Definition ReleaseInformationModel.cpp:89
bool allowRetry
Definition ReleaseInformationModel.h:31
Definition ReleaseInformation.h:21
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17