diff options
author | Saturneric <[email protected]> | 2022-01-23 07:36:55 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-23 07:38:54 +0000 |
commit | 247b5b8f7ffb5cf7df5d4bc0e4fb786152934569 (patch) | |
tree | daa5b6f39a1a4c07d4fa10a478d159e17059609c /src/ui/thread/SMTPConnectionTestThread.h | |
parent | <refactor>(ui): tidy up codes and comments. (diff) | |
download | GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.tar.gz GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.zip |
<refactor>(ui): tidy up codes and comments.
1. tidy up thread.
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 |