2017-11-11 00:38:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <QString>
|
|
|
|
#include <QList>
|
|
|
|
#include "net/Mode.h"
|
|
|
|
|
2020-06-27 11:02:31 +01:00
|
|
|
class PackProfile;
|
2017-11-11 00:38:31 +00: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ComponentUpdateTaskData
|
|
|
|
{
|
2020-06-27 11:02:31 +01:00
|
|
|
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;
|
|
|
|
};
|