12#include <QSharedPointer>
13#include <QtQml/qqmlregistration.h>
16class test_UiPluginQml;
27 Q_CLASSINFO(
"RegisterEnumClassesUnscoped",
"false")
32 friend class ::test_UiPluginQml;
46 QSharedPointer<WorkflowContext> mContext;
48 QString mNewPinConfirmation;
51 ~NumberModel() override = default;
53 CardReturnCode getInputErrorCode() const;
54 void clearNewPinAndConfirmation();
55 bool newPinAndConfirmationMatch() const;
58 void onCardConnectionChanged();
77 void resetContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
81 [[nodiscard]] QString
getCan()
const;
82 void setCan(
const QString& pCan);
84 [[nodiscard]] QString
getPin()
const;
85 void setPin(
const QString& pPin);
94 [[nodiscard]] QString
getPuk()
const;
95 void setPuk(
const QString& pPuk);
106 void onReaderInfoChanged(
const ReaderInfo& pInfo);
QString pin
Definition NumberModel.h:36
int retryCounter
Definition NumberModel.h:41
QString can
Definition NumberModel.h:35
QString newPin
Definition NumberModel.h:37
PasswordType getPasswordType() const
Definition NumberModel.cpp:96
void setCan(const QString &pCan)
Definition NumberModel.cpp:156
void setNewPin(const QString &pNewPin)
Definition NumberModel.cpp:186
QString getNewPinConfirmation() const
Definition NumberModel.cpp:208
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition NumberModel.cpp:42
void setNewPinConfirmation(const QString &pNewPinConfirmation)
Definition NumberModel.cpp:214
PasswordType
Definition NumberModel.h:62
@ PUK
Definition NumberModel.h:66
@ REMOTE_PIN
Definition NumberModel.h:69
@ NEW_PIN_CONFIRMATION
Definition NumberModel.h:68
@ NEW_SMART_PIN
Definition NumberModel.h:71
@ SMART_PIN
Definition NumberModel.h:70
@ CAN
Definition NumberModel.h:65
@ SMART_BLOCKING_CODE
Definition NumberModel.h:73
@ NEW_SMART_PIN_CONFIRMATION
Definition NumberModel.h:72
@ TRANSPORT_PIN
Definition NumberModel.h:63
@ PIN
Definition NumberModel.h:64
@ NEW_PIN
Definition NumberModel.h:67
QString getNewPin() const
Definition NumberModel.cpp:180
QString newPinConfirmation
Definition NumberModel.h:38
QString puk
Definition NumberModel.h:39
void fireReaderInfoChanged()
Q_INVOKABLE void resetInputError()
Definition NumberModel.cpp:262
QString getInitialInputError() const
Definition NumberModel.cpp:315
void setPuk(const QString &pPuk)
Definition NumberModel.cpp:278
QString getInputError() const
Definition NumberModel.cpp:351
void setPin(const QString &pPin)
Definition NumberModel.cpp:171
void firePasswordTypeChanged()
QString getPin() const
Definition NumberModel.cpp:165
QString inputError
Definition NumberModel.h:40
QString getPuk() const
Definition NumberModel.cpp:272
Q_INVOKABLE void setInitialInputErrorShown()
Definition NumberModel.cpp:341
Q_INVOKABLE bool commitNewPin()
Definition NumberModel.cpp:225
PasswordType passwordType
Definition NumberModel.h:34
bool isCanAllowedMode
Definition NumberModel.h:42
int getRetryCounter() const
Definition NumberModel.cpp:477
void fireInputErrorChanged()
QString getCan() const
Definition NumberModel.cpp:150
void fireCanAllowedModeChanged()
void fireNewPinConfirmationChanged()
QString initialInputError
Definition NumberModel.h:43
Definition ReaderInfo.h:18
Definition SingletonCreator.h:22
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17