diff options
author | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
commit | 571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990 (patch) | |
tree | a4efe7ba4d5344897c60513c03172d5de0191658 /src/ui/model/GpgKeyTreeProxyModel.h | |
parent | fix: upgrade to gpgme 1.24.2 (diff) | |
download | GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.tar.gz GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.zip |
feat: add openpgp smart card support
Diffstat (limited to 'src/ui/model/GpgKeyTreeProxyModel.h')
-rw-r--r-- | src/ui/model/GpgKeyTreeProxyModel.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ui/model/GpgKeyTreeProxyModel.h b/src/ui/model/GpgKeyTreeProxyModel.h index 5e75dd84..f41afd4f 100644 --- a/src/ui/model/GpgKeyTreeProxyModel.h +++ b/src/ui/model/GpgKeyTreeProxyModel.h @@ -40,14 +40,39 @@ class GpgKeyTreeProxyModel : public QSortFilterProxyModel { public: using KeyFilter = std::function<bool(const GpgAbstractKey *)>; + /** + * @brief Construct a new Gpg Key Tree Proxy Model object + * + * @param model + * @param display_mode + * @param filter + * @param parent + */ explicit GpgKeyTreeProxyModel(QSharedPointer<GpgKeyTreeModel> model, GpgKeyTreeDisplayMode display_mode, KeyFilter filter, QObject *parent); + /** + * @brief Set the Search Keywords object + * + * @param keywords + */ void SetSearchKeywords(const QString &keywords); + /** + * @brief + * + * @param model + */ void ResetGpgKeyTableModel(QSharedPointer<GpgKeyTreeModel> model); + /** + * @brief Set the Key Filter object + * + * @param filter + */ + void SetKeyFilter(const KeyFilter &filter); + protected: [[nodiscard]] auto filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent) const -> bool override; |