3a923060ce
also fix: wrong parameter name in LocalModUpdateTask's constructor also fix: correct hash_format in CF
27 lines
638 B
C++
27 lines
638 B
C++
#pragma once
|
|
|
|
#include <QDir>
|
|
|
|
#include "modplatform/ModIndex.h"
|
|
#include "tasks/Task.h"
|
|
|
|
class LocalModUpdateTask : public Task {
|
|
Q_OBJECT
|
|
public:
|
|
using Ptr = shared_qobject_ptr<LocalModUpdateTask>;
|
|
|
|
explicit LocalModUpdateTask(QDir index_dir, ModPlatform::IndexedPack& mod, ModPlatform::IndexedVersion& mod_version);
|
|
|
|
auto canAbort() const -> bool override { return true; }
|
|
auto abort() -> bool override;
|
|
|
|
protected slots:
|
|
//! Entry point for tasks.
|
|
void executeTask() override;
|
|
|
|
private:
|
|
QDir m_index_dir;
|
|
ModPlatform::IndexedPack& m_mod;
|
|
ModPlatform::IndexedVersion& m_mod_version;
|
|
};
|