diff options
author | flow <flowlnlnln@gmail.com> | 2022-07-21 22:40:06 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-28 16:29:01 -0300 |
commit | 87a0482b8b299fd54691e3042ca661863ea6290a (patch) | |
tree | 5a3075bf4735d8048c2da00fabfafcabf223982e /launcher/tasks/MultipleOptionsTask.h | |
parent | e89969991868b05723ae87454d4e22e370137d15 (diff) | |
download | PrismLauncher-87a0482b8b299fd54691e3042ca661863ea6290a.tar.gz PrismLauncher-87a0482b8b299fd54691e3042ca661863ea6290a.tar.bz2 PrismLauncher-87a0482b8b299fd54691e3042ca661863ea6290a.zip |
refactor: make MultipleOptionsTask inherit from ConcurrentTask too
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/tasks/MultipleOptionsTask.h')
-rw-r--r-- | launcher/tasks/MultipleOptionsTask.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/launcher/tasks/MultipleOptionsTask.h b/launcher/tasks/MultipleOptionsTask.h index 7c508b00..c65356b0 100644 --- a/launcher/tasks/MultipleOptionsTask.h +++ b/launcher/tasks/MultipleOptionsTask.h @@ -1,19 +1,17 @@ #pragma once -#include "SequentialTask.h" +#include "ConcurrentTask.h" /* This task type will attempt to do run each of it's subtasks in sequence, * until one of them succeeds. When that happens, the remaining tasks will not run. * */ -class MultipleOptionsTask : public SequentialTask -{ +class MultipleOptionsTask : public ConcurrentTask { Q_OBJECT -public: - explicit MultipleOptionsTask(QObject *parent = nullptr, const QString& task_name = ""); - virtual ~MultipleOptionsTask() = default; + public: + explicit MultipleOptionsTask(QObject* parent = nullptr, const QString& task_name = ""); + ~MultipleOptionsTask() override = default; -private -slots: + private slots: void startNext() override; - void subTaskFailed(const QString &msg) override; + void updateState() override; }; |