diff options
author | Saturneric <[email protected]> | 2023-02-07 07:16:45 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-07 07:16:45 +0000 |
commit | a49c6605244d656d4a4b72e95fbbcbe83372d363 (patch) | |
tree | ba28d451a0c78041f36e0e8be7ca30114ddce4ef /src/ui/UserInterfaceUtils.h | |
parent | feat: add a custom pinentry hook for sandbox mode in macOS (diff) | |
download | GpgFrontend-a49c6605244d656d4a4b72e95fbbcbe83372d363.tar.gz GpgFrontend-a49c6605244d656d4a4b72e95fbbcbe83372d363.zip |
feat: use custom password dialog now
Diffstat (limited to '')
-rw-r--r-- | src/ui/UserInterfaceUtils.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/ui/UserInterfaceUtils.h b/src/ui/UserInterfaceUtils.h index d11ae9a2..7761de7b 100644 --- a/src/ui/UserInterfaceUtils.h +++ b/src/ui/UserInterfaceUtils.h @@ -163,6 +163,18 @@ class CommonUtils : public QWidget { */ void SignalKeyDatabaseRefreshDone(); + /** + * @brief + * + */ + void SignalNeedUserInputPassphrase(); + + /** + * @brief + * + */ + void SignalUserInputPassphraseDone(QString passphrase); + public slots: /** * @brief @@ -220,10 +232,8 @@ class CommonUtils : public QWidget { * @param arguments * @param interact_func */ - void SlotExecuteCommand( - const std::string& cmd, - const QStringList& arguments, - const std::function<void(QProcess*)>& interact_func); + void SlotExecuteCommand(const std::string& cmd, const QStringList& arguments, + const std::function<void(QProcess*)>& interact_func); private slots: @@ -233,6 +243,12 @@ class CommonUtils : public QWidget { */ void slot_update_key_status(); + /** + * @brief + * + */ + void slot_popup_passphrase_input_dialog(); + private: static std::unique_ptr<CommonUtils> instance_; ///< }; |