GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GnuPGControllerDialog.h
1 
29 #pragma once
30 
31 #include "ui/dialog/GeneralDialog.h"
32 
33 class Ui_GnuPGControllerDialog;
34 
35 namespace GpgFrontend::UI {
37  Q_OBJECT
38  public:
44  explicit GnuPGControllerDialog(QWidget* parent = nullptr);
45 
46  public slots:
47 
52  void SlotAccept();
53 
54  signals:
55 
62 
63  private slots:
64 
70  void slot_set_restart_needed(int);
71 
76  void slot_update_custom_key_database_path_label(int state);
77 
82  void slot_update_custom_gnupg_install_path_label(int state);
83 
84  private:
85  std::shared_ptr<Ui_GnuPGControllerDialog> ui_;
86  int restart_needed_{0};
87  QString custom_key_database_path_;
88  QString custom_gnupg_path_;
89 
96  [[nodiscard]] auto get_restart_needed() const -> int;
97 
102  void set_settings();
103 
108  void apply_settings();
109 
116  auto check_custom_gnupg_path(QString) -> bool;
117 
124  auto check_custom_gnupg_key_database_path(QString) -> bool;
125 };
126 } // namespace GpgFrontend::UI
Definition: GeneralDialog.h:35
Definition: GnuPGControllerDialog.h:36
auto get_restart_needed() const -> int
Get the Restart Needed object.
Definition: GnuPGControllerDialog.cpp:338
auto check_custom_gnupg_path(QString) -> bool
Definition: GnuPGControllerDialog.cpp:347
void slot_set_restart_needed(int)
Definition: GnuPGControllerDialog.cpp:342
void set_settings()
Set the settings object.
Definition: GnuPGControllerDialog.cpp:263
GnuPGControllerDialog(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: GnuPGControllerDialog.cpp:40
auto check_custom_gnupg_key_database_path(QString) -> bool
Definition: GnuPGControllerDialog.cpp:380
Definition: FileReadTask.cpp:31