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.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/ui/settings/SettingsSendMail.h b/src/ui/settings/SettingsSendMail.h
index ec8f83c9..cc733f28 100644
--- a/src/ui/settings/SettingsSendMail.h
+++ b/src/ui/settings/SettingsSendMail.h
@@ -7,6 +7,8 @@
#include "ui/GpgFrontendUI.h"
+class Ui_SendMailSettings;
+
namespace GpgFrontend::UI {
class SendMailTab : public QWidget {
Q_OBJECT
@@ -20,22 +22,16 @@ class SendMailTab : public QWidget {
private slots:
- void slotCheckBoxSetEnableDisable(int state);
-
- private:
- QString appPath;
- QSettings settings;
+#ifdef SMTP_SUPPORT
+ void slotCheckConnection();
- QCheckBox* enableCheckBox;
+ void slotSendTestMail();
+#endif
- QLineEdit* smtpAddress;
- QLineEdit* username;
- QLineEdit* password;
- QSpinBox* portSpin;
- QComboBox* connectionTypeComboBox;
- QLineEdit* defaultSender;
-
- QPushButton* checkConnectionButton;
+ private:
+ std::shared_ptr<Ui_SendMailSettings> ui;
+ QRegularExpression re_email{
+ R"((?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]))"};
signals: