2022-06-03 21:26:26 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Application.h"
|
|
|
|
#include "modplatform/CheckUpdateTask.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
|
|
|
|
class ModrinthCheckUpdate : public CheckUpdateTask {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-11-25 09:23:46 -03:00
|
|
|
ModrinthCheckUpdate(QList<Mod*>& mods, std::list<Version>& mcVersions, std::optional<ResourceAPI::ModLoaderTypes> loaders, 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:
|
2023-01-03 13:58:27 -03:00
|
|
|
NetJob::Ptr m_net_job = nullptr;
|
2022-06-03 21:26:26 -03:00
|
|
|
};
|