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 
31 
32 #include <utility>
33 
34 #include "GpgFrontendUI.h"
35 
36 namespace GpgFrontend::UI {
37 
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
Definition: Task.h:45
Definition: ProxyConnectionTestTask.h:42
void SignalProxyConnectionTestResult(const QString &result)
ProxyConnectionTestTask(QString url, int timeout)
Construct a new Proxy Connection Test Thread object.
Definition: ProxyConnectionTestTask.cpp:29
Definition: ProxyConnectionTestTask.h:30
Definition: FileReadTask.cpp:29