2022-06-03 21:26:26 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Application.h"
|
|
|
|
#include "modplatform/CheckUpdateTask.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
|
|
|
|
class FlameCheckUpdate : public CheckUpdateTask {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-08-02 18:35:35 +02:00
|
|
|
FlameCheckUpdate(QList<Mod*>& mods,
|
|
|
|
std::list<Version>& mcVersions,
|
2023-08-23 10:26:57 +03:00
|
|
|
std::optional<ModPlatform::ModLoaderTypes> loaders,
|
2023-08-02 18:35:35 +02:00
|
|
|
std::shared_ptr<ModFolderModel> mods_folder)
|
2022-06-03 21:26:26 -03:00
|
|
|
: CheckUpdateTask(mods, mcVersions, loaders, mods_folder)
|
|
|
|
{}
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool abort() override;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
NetJob* m_net_job = nullptr;
|
|
|
|
|
|
|
|
bool m_was_aborted = false;
|
|
|
|
};
|