GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
ProxyConnectionTestThread.h
1
27#ifndef GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
28#define GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
29
31
32#include <utility>
33
34#include "GpgFrontendUI.h"
35
36namespace GpgFrontend::UI {
37
42class ProxyConnectionTestThread : public QThread {
43 Q_OBJECT
44 public:
52 explicit ProxyConnectionTestThread(QString url, int timeout,
53 QWidget* parent = nullptr)
54 : QThread(parent), url_(std::move(url)), timeout_(timeout) {}
55
56 signals:
62 void SignalProxyConnectionTestResult(const QString& result);
63
64 protected:
69 void run() override;
70
71 private:
72 QString url_;
73 QString result_;
74 int timeout_ = 500;
75};
76
77} // namespace GpgFrontend::UI
78
79#endif // GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
Definition: ProxyConnectionTestThread.h:42
void run() override
Definition: ProxyConnectionTestThread.cpp:29
ProxyConnectionTestThread(QString url, int timeout, QWidget *parent=nullptr)
Construct a new Proxy Connection Test Thread object.
Definition: ProxyConnectionTestThread.h:52
void SignalProxyConnectionTestResult(const QString &result)
Definition: ProxyConnectionTestThread.h:30
Definition: VerifyDetailsDialog.cpp:33