AusweisApp2
Lade ...
Suche ...
Keine Treffer
SmartModel.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "Env.h"
12#include "ReaderInfo.h"
15
16#include <QObject>
17#include <QSharedPointer>
18#include <QVariant>
19
20
21class test_SmartModel;
22
23
24namespace governikus
25{
26
28 : public QObject
29{
30 Q_OBJECT
31 friend class Env;
32 friend class ::test_SmartModel;
33
35 Q_PROPERTY(int progress READ getProgress NOTIFY fireProgressChanged)
36 Q_PROPERTY(bool isScanRunning READ isScanRunning NOTIFY fireScanRunningChanged)
37
38 public:
39 enum class QmlSmartState
40 {
47 };
48 Q_ENUM(QmlSmartState)
49
50 private:
51 SmartModel();
52 QmlSmartState mStatus;
53 CardInfo mCachedCardInfo;
54 int mProgress;
55
56 void updateStatus();
57 void updatePinStatus();
58 void setProgress(int pProgress);
59 void setStatus(QmlSmartState pNewStatus);
60
61 bool isScanRunning() const;
62
63 private Q_SLOTS:
64 void onDeletePersonalizationDone(const QVariant& pResult);
65 void onDeleteSmartDone(const QVariant& pResult);
66 void onUpdateStatusDone(const QVariant& pResult);
67 void onUpdatePinStatusDone(const ReaderManagerPlugInInfo& pInfo);
68 void onStatusChanged(const ReaderManagerPlugInInfo& pInfo);
69
70 public:
72 [[nodiscard]] int getProgress() const;
73
74 void workflowFinished(QSharedPointer<WorkflowContext> pContext);
75
76 [[nodiscard]] MobileEidType getMobileEidType();
77
78 Q_INVOKABLE void deletePersonalization();
79 Q_INVOKABLE void deleteSmart();
80
81 Q_SIGNALS:
87};
88
89} // namespace governikus
Holds smart card information.
Definition CardInfo.h:32
Definition Env.h:46
Definition SmartModel.h:29
int getProgress() const
Definition SmartModel.cpp:159
QmlSmartState
Definition SmartModel.h:40
Q_INVOKABLE void deleteSmart()
Definition SmartModel.cpp:245
QmlSmartState smartState
Definition SmartModel.h:34
int progress
Definition SmartModel.h:35
QmlSmartState getSmartState() const
Definition SmartModel.cpp:204
MobileEidType getMobileEidType()
Definition SmartModel.cpp:265
void fireDeletePersonalizationDone()
bool isScanRunning
Definition SmartModel.h:36
Q_INVOKABLE void deletePersonalization()
Definition SmartModel.cpp:233
void workflowFinished(QSharedPointer< WorkflowContext > pContext)
Definition SmartModel.cpp:215
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16