summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/update/FMLLibrariesTask.h
blob: a1e70ed4c117681433ae342b1c14f28cccaeed4c (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
26
27
28
29
30
31
#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
#include "minecraft/VersionFilterData.h"

class MinecraftInstance;

class FMLLibrariesTask : public Task
{
    Q_OBJECT
public:
    FMLLibrariesTask(MinecraftInstance * inst);
    virtual ~FMLLibrariesTask() {};

    void executeTask() override;

    bool canAbort() const override;

private slots:
    void fmllibsFinished();
    void fmllibsFailed(QString reason);

public slots:
    bool abort() override;

private:
    MinecraftInstance *m_inst;
    NetJobPtr downloadJob;
    QList<FMLlib> fmlLibsToProcess;
};