AusweisApp
Lade ...
Suche ...
Keine Treffer
RemoteDeviceFilterModel.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include <QSortFilterProxyModel>
8#include <QtQml/qqmlregistration.h>
9
10class test_RemoteDeviceFilterModel;
11
12namespace governikus
13{
14
16 : public QSortFilterProxyModel
17{
19 QML_UNCREATABLE("Used by RemoteServiceModel only")
21
22 friend class ::test_RemoteDeviceFilterModel;
23
24 private:
25 using FilterFunctionType = std::function<bool (int pSourceRow, const QModelIndex& pSourceParent)>;
26 FilterFunctionType mFilterToApply;
27
29
30 public:
34
38
42
43 ~RemoteDeviceFilterModel() override = default;
44
45 private:
46 [[nodiscard]] bool available(int pSourceRow, const QModelIndex& pSourceParent) const;
47 [[nodiscard]] bool isDevicePaired(int pSourceRow, const QModelIndex& pSourceParent) const;
48
49 [[nodiscard]] bool availableNotPairing(int pSourceRow, const QModelIndex& pSourceParent) const;
50 [[nodiscard]] bool unavailableAndPaired(int pSourceRow, const QModelIndex& pSourceParent) const;
51 [[nodiscard]] bool isPairing(int pSourceRow, const QModelIndex& pSourceParent) const;
52
53 protected:
54 [[nodiscard]] bool filterAcceptsRow(int pSourceRow, const QModelIndex& pSourceParent) const override;
55};
56
57} // namespace governikus
Definition RemoteDeviceFilterModel.h:17
static ShowAvailableAndPaired showAvailableAndPaired
Definition RemoteDeviceFilterModel.h:35
static ShowActivePairingMode showActivePairingMode
Definition RemoteDeviceFilterModel.h:37
bool filterAcceptsRow(int pSourceRow, const QModelIndex &pSourceParent) const override
Definition RemoteDeviceFilterModel.cpp:78
~RemoteDeviceFilterModel() override=default
static ShowUnavailableAndPaired showUnavailableAndPaired
Definition RemoteDeviceFilterModel.h:36
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
Definition RemoteDeviceFilterModel.h:33