GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

ProxyConnectionTestTask.h
1
27 #ifndef GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
28 #define GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
29
30 class ProxyConnectionTestThread {};
31
32 #include <utility>
33
34 #include "GpgFrontendUI.h"
35
36 namespace GpgFrontend::UI {
37
42 class ProxyConnectionTestTask : public Thread::Task {
43 Q_OBJECT
44 public:
52 explicit ProxyConnectionTestTask(QString url, int timeout);
53
54 signals:
60 void SignalProxyConnectionTestResult(const QString& result);
61
62 protected:
67 void run() override;
68
69 private slots:
70 void slot_process_network_reply(QNetworkReply* reply);
71
72 private:
73 QString url_;
74 QString result_;
75 int timeout_ = 500;
76 QNetworkAccessManager* network_manager_;
77 };
78
79 } // namespace GpgFrontend::UI
80
81 #endif // GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
GpgFrontend::Thread::Task
Definition: Task.h:45
GpgFrontend::UI::ProxyConnectionTestTask
Definition: ProxyConnectionTestTask.h:42
GpgFrontend::UI::ProxyConnectionTestTask::SignalProxyConnectionTestResult
void SignalProxyConnectionTestResult(const QString &result)
GpgFrontend::UI::ProxyConnectionTestTask::ProxyConnectionTestTask
ProxyConnectionTestTask(QString url, int timeout)
Construct a new Proxy Connection Test Thread object.
Definition: ProxyConnectionTestTask.cpp:29
ProxyConnectionTestThread
Definition: ProxyConnectionTestTask.h:30
GpgFrontend::UI
Definition: FileReadTask.cpp:29