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/ProxyConnectionTestThread.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/ProxyConnectionTestThread.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/ui/thread/ProxyConnectionTestThread.h b/src/ui/thread/ProxyConnectionTestThread.h index da7fc412..70757e03 100644 --- a/src/ui/thread/ProxyConnectionTestThread.h +++ b/src/ui/thread/ProxyConnectionTestThread.h @@ -35,23 +35,43 @@ class ProxyConnectionTestThread {}; namespace GpgFrontend::UI { +/** + * @brief + * + */ class ProxyConnectionTestThread : public QThread { Q_OBJECT public: + /** + * @brief Construct a new Proxy Connection Test Thread object + * + * @param url + * @param timeout + * @param parent + */ explicit ProxyConnectionTestThread(QString url, int timeout, QWidget* parent = nullptr) : QThread(parent), url_(std::move(url)), timeout_(timeout) {} signals: - void signalProxyConnectionTestResult(const QString& result); + /** + * @brief + * + * @param result + */ + void SignalProxyConnectionTestResult(const QString& result); protected: + /** + * @brief + * + */ void run() override; private: - QString url_; - QString result_; - int timeout_ = 500; + QString url_; ///< + QString result_; ///< + int timeout_ = 500; ///< }; } // namespace GpgFrontend::UI |