PrismLauncher/launcher/minecraft/ComponentUpdateTask_p.h
Rachel Powers 0b2044e9a4 fix: typo - no space before comment
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-31 13:52:23 -07:00

34 lines
638 B
C++

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