aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/model/GpgKeyTreeProxyModel.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-12 23:03:57 +0000
committersaturneric <[email protected]>2025-04-12 23:03:57 +0000
commit571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990 (patch)
treea4efe7ba4d5344897c60513c03172d5de0191658 /src/ui/model/GpgKeyTreeProxyModel.h
parentfix: upgrade to gpgme 1.24.2 (diff)
downloadGpgFrontend-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.h25
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;