aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsSendMail.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/settings/SettingsSendMail.h')
-rw-r--r--src/ui/settings/SettingsSendMail.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/ui/settings/SettingsSendMail.h b/src/ui/settings/SettingsSendMail.h
new file mode 100644
index 00000000..ec8f83c9
--- /dev/null
+++ b/src/ui/settings/SettingsSendMail.h
@@ -0,0 +1,46 @@
+//
+// Created by saturneric on 2021/11/28.
+//
+
+#ifndef GPGFRONTEND_SETTINGSSENDMAIL_H
+#define GPGFRONTEND_SETTINGSSENDMAIL_H
+
+#include "ui/GpgFrontendUI.h"
+
+namespace GpgFrontend::UI {
+class SendMailTab : public QWidget {
+ Q_OBJECT
+
+ public:
+ explicit SendMailTab(QWidget* parent = nullptr);
+
+ void setSettings();
+
+ void applySettings();
+
+ private slots:
+
+ void slotCheckBoxSetEnableDisable(int state);
+
+ private:
+ QString appPath;
+ QSettings settings;
+
+ QCheckBox* enableCheckBox;
+
+ QLineEdit* smtpAddress;
+ QLineEdit* username;
+ QLineEdit* password;
+ QSpinBox* portSpin;
+ QComboBox* connectionTypeComboBox;
+ QLineEdit* defaultSender;
+
+ QPushButton* checkConnectionButton;
+
+ signals:
+
+ void signalRestartNeeded(bool needed);
+};
+} // namespace GpgFrontend::UI
+
+#endif // GPGFRONTEND_SETTINGSSENDMAIL_H