GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

GnuPGControllerDialog.h
1
29 #ifndef GPGFRONTEND_GNUPGCONTROLLERDIALOGLOG_H
30 #define GPGFRONTEND_GNUPGCONTROLLERDIALOGLOG_H
31
32 #include <string>
33 #include "ui/GpgFrontendUI.h"
34 #include "ui/dialog/GeneralDialog.h"
35
36 class Ui_GnuPGControllerDialog;
37
38 namespace GpgFrontend::UI {
39 class GnuPGControllerDialog : public GeneralDialog {
40 Q_OBJECT
41 public:
47 explicit GnuPGControllerDialog(QWidget* parent = nullptr);
48
49 public slots:
50
55 void SlotAccept();
56
57 signals:
58
64 void SignalRestartNeeded(int);
65
66 private slots:
67
73 void slot_set_restart_needed(int);
74
79 void slot_update_custom_key_database_path_label(int state);
80
85 void slot_update_custom_gnupg_install_path_label(int state);
86
87 private:
88 std::shared_ptr<Ui_GnuPGControllerDialog> ui_;
89 int restart_needed_{0};
90
97 int get_restart_needed() const;
98
99 void set_settings();
100
101 void apply_settings();
102
103 bool check_custom_gnupg_path(std::string);
104
105 bool check_custom_gnupg_key_database_path(std::string);
106 };
107 } // namespace GpgFrontend::UI
108
109 #endif // GPGFRONTEND_GNUPGCONTROLLERDIALOGLOG_H
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::GnuPGControllerDialog
Definition: GnuPGControllerDialog.h:39
GpgFrontend::UI::GnuPGControllerDialog::slot_set_restart_needed
void slot_set_restart_needed(int)
Definition: GnuPGControllerDialog.cpp:369
GpgFrontend::UI::GnuPGControllerDialog::SignalRestartNeeded
void SignalRestartNeeded(int)
GpgFrontend::UI::GnuPGControllerDialog::get_restart_needed
int get_restart_needed() const
Get the Restart Needed object.
Definition: GnuPGControllerDialog.cpp:365
GpgFrontend::UI::GnuPGControllerDialog::GnuPGControllerDialog
GnuPGControllerDialog(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: GnuPGControllerDialog.cpp:38
GpgFrontend::UI
Definition: FileReadTask.cpp:29