064ae49d2b
It's not a good idea to have multiple concurrent tasks running on a sequential thing like this one. Signed-off-by: flow <flowlnlnln@gmail.com>
18 lines
510 B
C++
18 lines
510 B
C++
#pragma once
|
|
|
|
#include "SequentialTask.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 {
|
|
Q_OBJECT
|
|
public:
|
|
explicit MultipleOptionsTask(QObject* parent = nullptr, const QString& task_name = "");
|
|
~MultipleOptionsTask() override = default;
|
|
|
|
private slots:
|
|
void startNext() override;
|
|
void updateState() override;
|
|
};
|