refactor: move mod tasks to their own subfolder

Makes the launcher/minecraft/mod/ folder a little more organized.
This commit is contained in:
flow
2022-04-15 20:35:17 -03:00
committed by flow
parent fcfb2cfc3d
commit 5a34e8fd7c
11 changed files with 34 additions and 27 deletions

View File

@ -0,0 +1,26 @@
#pragma once
#include <QDir>
#include "tasks/Task.h"
#include "modplatform/ModIndex.h"
class LocalModUpdateTask : public Task {
Q_OBJECT
public:
using Ptr = shared_qobject_ptr<LocalModUpdateTask>;
explicit LocalModUpdateTask(QDir mods_dir, ModPlatform::IndexedPack& mod, ModPlatform::IndexedVersion& mod_version);
bool canAbort() const override { return true; }
bool abort() override;
protected slots:
//! Entry point for tasks.
void executeTask() override;
private:
QDir m_index_dir;
ModPlatform::IndexedPack& m_mod;
ModPlatform::IndexedVersion& m_mod_version;
};