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

ListedKeyServerTestThread.h
1
27 #ifndef GPGFRONTEND_LISTEDKEYSERVERTESTTHREAD_H
28 #define GPGFRONTEND_LISTEDKEYSERVERTESTTHREAD_H
29
30 #include "GpgFrontendUI.h"
31
32 namespace GpgFrontend::UI {
33
38 class ListedKeyServerTestThread : public QThread {
39 Q_OBJECT
40 public:
41 explicit ListedKeyServerTestThread(const QStringList& urls, int timeout,
42 QWidget* parent = nullptr)
43 : QThread(parent), urls_(urls), timeout_(timeout) {}
44
45 signals:
51 void SignalKeyServerListTestResult(const QStringList& result);
52
53 protected:
58 void run() override;
59
60 private:
61 QStringList urls_;
62 QStringList result_;
63 int timeout_ = 500;
64 };
65
66 } // namespace GpgFrontend::UI
67
68 class TestListedKeyServerThread {};
69
70 #endif // GPGFRONTEND_LISTEDKEYSERVERTESTTHREAD_H
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::ListedKeyServerTestThread::run
void run() override
Definition: ListedKeyServerTestThread.cpp:29
GpgFrontend::UI::ListedKeyServerTestThread::SignalKeyServerListTestResult
void SignalKeyServerListTestResult(const QStringList &result)
GpgFrontend::UI::ListedKeyServerTestThread
Definition: ListedKeyServerTestThread.h:38
TestListedKeyServerThread
Definition: ListedKeyServerTestThread.h:68