2022-06-04 01:26:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Application.h"
|
|
|
|
#include "modplatform/CheckUpdateTask.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
|
|
|
|
class FlameCheckUpdate : public CheckUpdateTask {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-08-02 17:35:35 +01:00
|
|
|
FlameCheckUpdate(QList<Mod*>& mods,
|
|
|
|
std::list<Version>& mcVersions,
|
2023-08-23 08:26:57 +01:00
|
|
|
std::optional<ModPlatform::ModLoaderTypes> loaders,
|
2023-08-02 17:35:35 +01:00
|
|
|
std::shared_ptr<ModFolderModel> mods_folder)
|
2022-06-04 01:26:26 +01: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;
|
|
|
|
};
|