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
18
19class test_ReleaseInformationModel;
20
21namespace governikus
22{
23
25 : public QObject
26{
27 Q_OBJECT
28 friend class ::test_ReleaseInformationModel;
29
32 Q_PROPERTY(bool allowRetry READ allowRetry NOTIFY fireCurrentInformationChanged)
33
34 private:
35 FormattedTextModel* mFallbackModel;
36 FormattedTextModel* mModelCurrent;
37 FormattedTextModel* mModelUpdate;
38
39 FormattedTextModel* createModel(const ReleaseInformation& pInformation);
40
41 private Q_SLOTS:
42 void onCurrentChanged();
43 void onUpdateChanged();
44
45 public:
47 ~ReleaseInformationModel() override = default;
48 [[nodiscard]] FormattedTextModel* getCurrentRelease() const;
49 [[nodiscard]] FormattedTextModel* getUpdateRelease() const;
50 Q_INVOKABLE void update() const;
51 [[nodiscard]] bool allowRetry() const;
52
53 public Q_SLOTS:
54 void onTranslationChanged() const;
55
56 Q_SIGNALS:
59};
60
61} // namespace governikus
Definition FormattedTextModel.h:22
Definition ReleaseInformationModel.h:26
void onTranslationChanged() const
Definition ReleaseInformationModel.cpp:114
FormattedTextModel * getUpdateRelease() const
Definition ReleaseInformationModel.cpp:95
Q_INVOKABLE void update() const
Definition ReleaseInformationModel.cpp:101
ReleaseInformationModel()
Definition ReleaseInformationModel.cpp:74
FormattedTextModel * updateRelease
Definition ReleaseInformationModel.h:31
FormattedTextModel * getCurrentRelease() const
Definition ReleaseInformationModel.cpp:89
~ReleaseInformationModel() override=default
bool allowRetry
Definition ReleaseInformationModel.h:32
FormattedTextModel * currentRelease
Definition ReleaseInformationModel.h:30
Definition ReleaseInformation.h:24
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16