2022-06-04 05:56:26 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Application.h"
|
|
|
|
#include "modplatform/CheckUpdateTask.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
|
|
|
|
class FlameCheckUpdate : public CheckUpdateTask {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-10 23:45:25 +05:30
|
|
|
FlameCheckUpdate(QList<Mod*>& mods, std::list<Version>& mcVersions, ModAPI::ModLoaderTypes loaders, std::shared_ptr<ModFolderModel> mods_folder)
|
2022-06-04 05:56:26 +05:30
|
|
|
: 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;
|
|
|
|
};
|