diff options
author | saturneric <[email protected]> | 2024-10-25 22:58:26 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-10-25 22:58:26 +0000 |
commit | aa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8 (patch) | |
tree | a82e4491efeedaf0157c3b10811426513aec2fbe /src/ui/dialog/controller/GnuPGControllerDialog.h | |
parent | feat: set reason code and text at revoke-certification (diff) | |
download | GpgFrontend-aa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8.tar.gz GpgFrontend-aa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8.zip |
feat: add more context of key database support
Diffstat (limited to 'src/ui/dialog/controller/GnuPGControllerDialog.h')
-rw-r--r-- | src/ui/dialog/controller/GnuPGControllerDialog.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.h b/src/ui/dialog/controller/GnuPGControllerDialog.h index ab2f305c..37ec2f62 100644 --- a/src/ui/dialog/controller/GnuPGControllerDialog.h +++ b/src/ui/dialog/controller/GnuPGControllerDialog.h @@ -28,6 +28,7 @@ #pragma once +#include "core/struct/settings_object/KeyDatabaseItemSO.h" #include "ui/dialog/GeneralDialog.h" class Ui_GnuPGControllerDialog; @@ -73,19 +74,33 @@ class GnuPGControllerDialog : public GeneralDialog { * @brief * */ - void slot_update_custom_key_database_path_label(int state); + void slot_update_custom_gnupg_install_path_label(int state); /** * @brief * */ - void slot_update_custom_gnupg_install_path_label(int state); + void slot_add_new_key_database(); + + /** + * @brief + * + */ + void slot_remove_existing_key_database(); + + /** + * @brief + * + */ + void slot_refresh_key_database_table(); private: std::shared_ptr<Ui_GnuPGControllerDialog> ui_; ///< int restart_mode_{0}; ///< QString custom_key_database_path_; QString custom_gnupg_path_; + QMenu* popup_menu_{}; + QList<KeyDatabaseItemSO> buffered_key_db_so_; /** * @brief Get the Restart Needed object @@ -115,12 +130,12 @@ class GnuPGControllerDialog : public GeneralDialog { */ auto check_custom_gnupg_path(QString) -> bool; + protected: /** * @brief * - * @return true - * @return false + * @param event */ - auto check_custom_gnupg_key_database_path(QString) -> bool; + void contextMenuEvent(QContextMenuEvent* event) override; }; } // namespace GpgFrontend::UI |