GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgPassphraseContext.h
1 
2 
31 #pragma once
32 
33 namespace GpgFrontend {
34 
35 class GPGFRONTEND_CORE_EXPORT GpgPassphraseContext : public QObject {
36  Q_OBJECT
37  public:
38  GpgPassphraseContext(const QString& uids_info, const QString& passphrase_info,
39  bool prev_was_bad, bool ask_for_new);
40 
42 
43  void SetPassphrase(const QString& passphrase);
44 
45  [[nodiscard]] auto GetPassphrase() const -> QString;
46 
47  [[nodiscard]] auto GetUidsInfo() const -> QString;
48 
49  [[nodiscard]] auto GetPassphraseInfo() const -> QString;
50 
51  [[nodiscard]] auto IsPreWasBad() const -> bool;
52 
53  [[nodiscard]] auto IsAskForNew() const -> bool;
54 
55  private:
56  QString passphrase_info_;
57  QString uids_info_;
58  QString passphrase_;
59  bool prev_was_bad_;
60  bool ask_for_new_;
61 };
62 
63 } // namespace GpgFrontend
Definition: GpgPassphraseContext.h:35
Definition: app.cpp:38