refactor: organize a little more the code in launcher/net/

This also reduces some code duplication by using some Task logic in
NetAction.
This commit is contained in:
flow
2022-04-21 22:12:14 -03:00
parent 649b8ac7c6
commit 8c8eabf7ac
19 changed files with 435 additions and 469 deletions

View File

@ -52,6 +52,8 @@ class Task : public QObject {
virtual bool canAbort() const { return false; }
auto getState() const -> State { return m_state; }
QString getStatus() { return m_status; }
virtual auto getStepStatus() const -> QString { return m_status; }
@ -90,7 +92,7 @@ class Task : public QObject {
void setStatus(const QString& status);
void setProgress(qint64 current, qint64 total);
private:
protected:
State m_state = State::Inactive;
QStringList m_Warnings;
QString m_failReason = "";