aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyTreeView.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/widgets/KeyTreeView.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/widgets/KeyTreeView.h')
-rw-r--r--src/ui/widgets/KeyTreeView.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ui/widgets/KeyTreeView.h b/src/ui/widgets/KeyTreeView.h
index a362a8a1..0e12ad0b 100644
--- a/src/ui/widgets/KeyTreeView.h
+++ b/src/ui/widgets/KeyTreeView.h
@@ -48,6 +48,16 @@ class KeyTreeView : public QTreeView {
* @param _info_type
* @param _filter
*/
+ explicit KeyTreeView(QWidget* parent = nullptr);
+
+ /**
+ * @brief Construct a new Key Table object
+ *
+ * @param _key_list
+ * @param _select_type
+ * @param _info_type
+ * @param _filter
+ */
explicit KeyTreeView(int channel,
GpgKeyTreeModel::Detector checkable_detector,
GpgKeyTreeProxyModel::KeyFilter filter,
@@ -67,6 +77,20 @@ class KeyTreeView : public QTreeView {
*/
auto GetAllCheckedSubKey() -> QContainer<GpgSubKey>;
+ /**
+ * @brief Set the Key Filter object
+ *
+ * @param filter
+ */
+ void SetKeyFilter(const GpgKeyTreeProxyModel::KeyFilter& filter);
+
+ /**
+ * @brief
+ *
+ * @param channel
+ */
+ void SetChannel(int channel);
+
protected:
/**
* @brief
@@ -81,6 +105,8 @@ class KeyTreeView : public QTreeView {
GpgKeyTreeProxyModel proxy_model_;
void slot_adjust_column_widths();
+
+ void init();
};
} // namespace GpgFrontend::UI \ No newline at end of file