Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
31 lines
795 B
C++
Executable File
31 lines
795 B
C++
Executable File
#pragma once
|
|
|
|
#include "modplatform/CheckUpdateTask.h"
|
|
#include "net/NetJob.h"
|
|
|
|
class FlameCheckUpdate : public CheckUpdateTask {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FlameCheckUpdate(QList<Mod*>& mods,
|
|
std::list<Version>& mcVersions,
|
|
QList<ModPlatform::ModLoaderType> loadersList,
|
|
std::shared_ptr<ModFolderModel> mods_folder)
|
|
: CheckUpdateTask(mods, mcVersions, loadersList, mods_folder)
|
|
{}
|
|
|
|
public slots:
|
|
bool abort() override;
|
|
|
|
protected slots:
|
|
void executeTask() override;
|
|
|
|
private:
|
|
ModPlatform::IndexedPack getProjectInfo(ModPlatform::IndexedVersion& ver_info);
|
|
ModPlatform::IndexedVersion getFileInfo(int addonId, int fileId);
|
|
|
|
NetJob* m_net_job = nullptr;
|
|
|
|
bool m_was_aborted = false;
|
|
};
|