diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui/thread/SMTPConnectionTestThread.h (renamed from src/ui/thread/SMTPTestThread.h) | 56 |
1 files changed, 40 insertions, 16 deletions
diff --git a/src/ui/thread/SMTPTestThread.h b/src/ui/thread/SMTPConnectionTestThread.h index 3ccb075c..b37cc09c 100644 --- a/src/ui/thread/SMTPTestThread.h +++ b/src/ui/thread/SMTPConnectionTestThread.h @@ -24,8 +24,8 @@ * */ -#ifndef GPGFRONTEND_SMTPTESTTHREAD_H -#define GPGFRONTEND_SMTPTESTTHREAD_H +#ifndef GPGFRONTEND_SMTPCONNECTIONTESTTHREAD_H +#define GPGFRONTEND_SMTPCONNECTIONTESTTHREAD_H #include <utility> @@ -33,13 +33,29 @@ namespace GpgFrontend::UI { -class SMTPTestThread : public QThread { +/** + * @brief + * + */ +class SMTPConnectionTestThread : public QThread { Q_OBJECT public: - explicit SMTPTestThread(std::string host, int port, - SmtpClient::ConnectionType connection_type, - bool identify, std::string username, - std::string password, QWidget* parent = nullptr) + /** + * @brief Construct a new SMTPConnectionTestThread object + * + * @param host + * @param port + * @param connection_type + * @param identify + * @param username + * @param password + * @param parent + */ + explicit SMTPConnectionTestThread(std::string host, int port, + SmtpClient::ConnectionType connection_type, + bool identify, std::string username, + std::string password, + QWidget* parent = nullptr) : QThread(parent), host_(std::move(host)), port_(port), @@ -49,21 +65,29 @@ class SMTPTestThread : public QThread { password_(std::move(password)) {} signals: - void signalSMTPTestResult(const QString& result); + /** + * @brief + * + * @param result + */ + void SignalSMTPConnectionTestResult(const QString& result); protected: + /** + * @brief + * + */ void run() override; private: - std::string host_; - int port_; - SmtpClient::ConnectionType connection_type_; - - bool identify_; - std::string username_; - std::string password_; + std::string host_; ///< + int port_; ///< + SmtpClient::ConnectionType connection_type_; ///< + bool identify_; ///< + std::string username_; ///< + std::string password_; ///< }; } // namespace GpgFrontend::UI -#endif // GPGFRONTEND_SMTPTESTTHREAD_H +#endif // GPGFRONTEND_SMTPCONNECTIONTESTTHREAD_H |