aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/ListedKeyServerTestTask.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-16 03:49:50 +0000
committersaturneric <[email protected]>2024-01-16 03:49:50 +0000
commit4994f4eaa1211d402b791660ad6221154a4c2405 (patch)
treec3f0cdc0008849de79c6bd8030c0c65c5d02f9f3 /src/ui/thread/ListedKeyServerTestTask.h
parentfix: slove a heap-use-after-free problem (diff)
downloadGpgFrontend-4994f4eaa1211d402b791660ad6221154a4c2405.tar.gz
GpgFrontend-4994f4eaa1211d402b791660ad6221154a4c2405.zip
fix: make task and threading system safer
Diffstat (limited to 'src/ui/thread/ListedKeyServerTestTask.h')
-rw-r--r--src/ui/thread/ListedKeyServerTestTask.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/thread/ListedKeyServerTestTask.h b/src/ui/thread/ListedKeyServerTestTask.h
index d6634f2a..fdd036d4 100644
--- a/src/ui/thread/ListedKeyServerTestTask.h
+++ b/src/ui/thread/ListedKeyServerTestTask.h
@@ -44,19 +44,19 @@ class ListedKeyServerTestTask : public Thread::Task {
Q_OBJECT
public:
enum KeyServerTestResultType {
- kTestResultType_Success,
- kTestResultType_Timeout,
- kTestResultType_Error,
+ kTEST_RESULT_TYPE_SUCCESS,
+ kTEST_RESULT_TYPE_TIMEOUT,
+ kTEST_RESULT_TYPE_ERROR,
};
- explicit ListedKeyServerTestTask(const QStringList& urls, int timeout,
+ explicit ListedKeyServerTestTask(QStringList urls, int timeout,
QWidget* parent = nullptr);
/**
* @brief
*
*/
- void Run() override;
+ auto Run() -> int override;
signals:
/**