sneedmc/launcher/minecraft/ComponentUpdateTask_p.h

33 lines
605 B
C
Raw Normal View History

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