diff options
author | Saturneric <[email protected]> | 2023-03-30 17:13:52 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-03-30 17:13:52 +0000 |
commit | d2ff4d0ad8144702ef7b5945f531aff0c4e51101 (patch) | |
tree | ddb8e78dbe2ab69b295318cfa3df46f4ac513647 /src/ui/thread/ProxyConnectionTestTask.h | |
parent | feat: update ui of general settings (diff) | |
download | GpgFrontend-d2ff4d0ad8144702ef7b5945f531aff0c4e51101.tar.gz GpgFrontend-d2ff4d0ad8144702ef7b5945f531aff0c4e51101.zip |
fix: solve issues in proxy configure
Diffstat (limited to '')
-rw-r--r-- | src/ui/thread/ProxyConnectionTestTask.h (renamed from src/ui/thread/ProxyConnectionTestThread.h) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/ui/thread/ProxyConnectionTestThread.h b/src/ui/thread/ProxyConnectionTestTask.h index 70757e03..38e78ae4 100644 --- a/src/ui/thread/ProxyConnectionTestThread.h +++ b/src/ui/thread/ProxyConnectionTestTask.h @@ -39,7 +39,7 @@ namespace GpgFrontend::UI { * @brief * */ -class ProxyConnectionTestThread : public QThread { +class ProxyConnectionTestTask : public Thread::Task { Q_OBJECT public: /** @@ -49,9 +49,7 @@ class ProxyConnectionTestThread : public QThread { * @param timeout * @param parent */ - explicit ProxyConnectionTestThread(QString url, int timeout, - QWidget* parent = nullptr) - : QThread(parent), url_(std::move(url)), timeout_(timeout) {} + explicit ProxyConnectionTestTask(QString url, int timeout); signals: /** @@ -68,10 +66,14 @@ class ProxyConnectionTestThread : public QThread { */ void run() override; + private slots: + void slot_process_network_reply(QNetworkReply* reply); + private: - QString url_; ///< - QString result_; ///< - int timeout_ = 500; ///< + QString url_; ///< + QString result_; ///< + int timeout_ = 500; ///< + QNetworkAccessManager* network_manager_; ///< }; } // namespace GpgFrontend::UI |