2017-11-11 00:38:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QList>
|
2023-08-02 17:35:35 +01:00
|
|
|
#include <QString>
|
|
|
|
#include <cstddef>
|
2017-11-11 00:38:31 +00:00
|
|
|
#include "net/Mode.h"
|
|
|
|
|
2020-06-27 11:02:31 +01:00
|
|
|
class PackProfile;
|
2017-11-11 00:38:31 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
struct RemoteLoadStatus {
|
|
|
|
enum class Type { Index, List, Version } type = Type::Version;
|
2020-06-27 11:02:31 +01:00
|
|
|
size_t PackProfileIndex = 0;
|
2017-11-11 00:38:31 +00:00
|
|
|
bool finished = false;
|
|
|
|
bool succeeded = false;
|
|
|
|
QString error;
|
|
|
|
};
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
struct ComponentUpdateTaskData {
|
|
|
|
PackProfile* m_list = nullptr;
|
2017-11-11 00:38:31 +00:00
|
|
|
QList<RemoteLoadStatus> remoteLoadStatusList;
|
|
|
|
bool remoteLoadSuccessful = true;
|
|
|
|
size_t remoteTasksInProgress = 0;
|
|
|
|
ComponentUpdateTask::Mode mode;
|
|
|
|
Net::Mode netmode;
|
|
|
|
};
|