pollymc/api/logic/minecraft/ComponentUpdateTask_p.h

33 lines
611 B
C
Raw Normal View History

#pragma once
#include <cstddef>
#include <QString>
#include <QList>
#include "net/Mode.h"
class ComponentList;
struct RemoteLoadStatus
{
2018-07-15 18:21:05 +05:30
enum class Type
{
Index,
List,
Version
} type = Type::Version;
size_t componentListIndex = 0;
bool finished = false;
bool succeeded = false;
QString error;
};
struct ComponentUpdateTaskData
{
2018-07-15 18:21:05 +05:30
ComponentList * m_list = nullptr;
QList<RemoteLoadStatus> remoteLoadStatusList;
bool remoteLoadSuccessful = true;
size_t remoteTasksInProgress = 0;
ComponentUpdateTask::Mode mode;
Net::Mode netmode;
};