ProxyConnectionTestThread.h
#ifndef GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
#define GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
class ProxyConnectionTestThread {};
#include <utility>
#include "GpgFrontendUI.h"
namespace GpgFrontend::UI {
class ProxyConnectionTestThread : public QThread {
Q_OBJECT
public:
explicit ProxyConnectionTestThread(QString url, int timeout,
QWidget* parent = nullptr)
: QThread(parent), url_(std::move(url)), timeout_(timeout) {}
signals:
void SignalProxyConnectionTestResult(const QString& result);
protected:
void run() override;
private:
QString url_;
QString result_;
int timeout_ = 500;
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_PROXYCONNECTIONTESTTHREAD_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::ProxyConnectionTestThread::ProxyConnectionTestThread
ProxyConnectionTestThread(QString url, int timeout, QWidget *parent=nullptr)
Construct a new Proxy Connection Test Thread object.
Definition: ProxyConnectionTestThread.h:52
GpgFrontend::UI::ProxyConnectionTestThread::SignalProxyConnectionTestResult
void SignalProxyConnectionTestResult(const QString &result)
GpgFrontend::UI::ProxyConnectionTestThread::run
void run() override
Definition: ProxyConnectionTestThread.cpp:29
GpgFrontend::UI::ProxyConnectionTestThread
Definition: ProxyConnectionTestThread.h:42
ProxyConnectionTestThread
Definition: ProxyConnectionTestThread.h:30