aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/ProxyConnectionTestThread.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 07:36:55 +0000
committerSaturneric <[email protected]>2022-01-23 07:38:54 +0000
commit247b5b8f7ffb5cf7df5d4bc0e4fb786152934569 (patch)
treedaa5b6f39a1a4c07d4fa10a478d159e17059609c /src/ui/thread/ProxyConnectionTestThread.h
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-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.h28
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