PrismLauncher/launcher/minecraft/ComponentUpdateTask_p.h

26 lines
572 B
C
Raw Normal View History

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