From 2be9cf21aef39a34a807eb29b29eec726ec68f97 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 31 Jul 2024 07:55:59 +0200 Subject: fix: addressing some of the issues identified --- src/m_pinentry/GpgPassphraseContext.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/m_pinentry/GpgPassphraseContext.h') diff --git a/src/m_pinentry/GpgPassphraseContext.h b/src/m_pinentry/GpgPassphraseContext.h index 107307b..f021cb8 100644 --- a/src/m_pinentry/GpgPassphraseContext.h +++ b/src/m_pinentry/GpgPassphraseContext.h @@ -42,6 +42,8 @@ class GpgPassphraseContext : public QObject { void SetPassphrase(const QString& passphrase); + void SetSuccess(bool success); + [[nodiscard]] auto GetPassphrase() const -> QString; [[nodiscard]] auto GetUidsInfo() const -> QString; @@ -52,10 +54,13 @@ class GpgPassphraseContext : public QObject { [[nodiscard]] auto IsAskForNew() const -> bool; + [[nodiscard]] auto IsSuccess() const -> bool; + private: QString passphrase_info_; QString uids_info_; QString passphrase_; bool prev_was_bad_; bool ask_for_new_; + bool success_; }; -- cgit v1.2.3