aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/ComponentUpdateTask_p.h
blob: 00e8f2fbe4ee4544957a07771bb597fd3739d39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;
    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;
};