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