15#include <QAbstractListModel>
18#include <QSharedPointer>
19#include <QSslCertificate>
22#include <QtQml/qqmlregistration.h>
25class test_RemoteDeviceModel;
26class test_RemoteDeviceFilterModel;
33 :
public QAbstractListModel
39 friend class ::test_RemoteDeviceModel;
40 friend class ::test_RemoteDeviceFilterModel;
44 QList<RemoteDeviceModelEntry> mAllRemoteReaders;
47 bool mIsDetectingRemoteDevices;
56 void updatePairedReaders();
57 void updateUnpairedReaders();
58 void removeVanishedReaders();
59 [[
nodiscard]]
virtual QList<RemoteDeviceModelEntry> presentReaders()
const;
64 void onUpdateReaderList();
Code
Definition GlobalStatus.h:30
Definition RemoteDeviceModelEntry.h:26
Definition RemoteDeviceModel.h:34
RemoteDeviceModel(QObject *pParent=nullptr)
Definition RemoteDeviceModel.cpp:16
void forgetDevice(const QModelIndex &pIndex)
Definition RemoteDeviceModel.cpp:469
void onTranslationChanged()
Definition RemoteDeviceModel.cpp:463
SettingsRemoteRoles
Definition RemoteDeviceModel.h:71
@ IS_NETWORK_VISIBLE
Definition RemoteDeviceModel.h:76
@ LAST_CONNECTED
Definition RemoteDeviceModel.h:74
@ IS_SUPPORTED
Definition RemoteDeviceModel.h:77
@ DEVICE_ID
Definition RemoteDeviceModel.h:75
@ REMOTE_DEVICE_STATUS
Definition RemoteDeviceModel.h:73
@ IS_PAIRED
Definition RemoteDeviceModel.h:78
@ IS_PAIRING
Definition RemoteDeviceModel.h:79
@ LINK_QUALITY
Definition RemoteDeviceModel.h:80
@ IS_LAST_ADDED_DEVICE
Definition RemoteDeviceModel.h:81
@ REMOTE_DEVICE_NAME
Definition RemoteDeviceModel.h:72
QHash< int, QByteArray > roleNames() const override
Definition RemoteDeviceModel.cpp:41
bool isPairing(const QModelIndex &pIndex) const
Definition RemoteDeviceModel.cpp:363
bool isPaired(const QModelIndex &pIndex) const
Definition RemoteDeviceModel.cpp:352
void onDeviceDisconnected(GlobalStatus::Code pCloseCode, const QString &pId)
Definition RemoteDeviceModel.cpp:499
int rowCount(const QModelIndex &pParent=QModelIndex()) const override
Definition RemoteDeviceModel.cpp:269
void setLastPairedReader(const QSslCertificate &pCert)
Definition RemoteDeviceModel.cpp:491
void onKnownRemoteReadersChanged()
Definition RemoteDeviceModel.cpp:409
void setDetectRemoteDevices(bool pNewStatus)
Definition RemoteDeviceModel.cpp:385
QVariant data(const QModelIndex &pIndex, int pRole=Qt::DisplayRole) const override
Definition RemoteDeviceModel.cpp:275
bool isSupported(const QModelIndex &pIndex) const
Definition RemoteDeviceModel.cpp:374
QSharedPointer< IfdListEntry > getRemoteDeviceListEntry(const QModelIndex &pIndex) const
Definition RemoteDeviceModel.cpp:327
Definition RemoteServiceSettings.h:40
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114