1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/launcher/include/patchlist.h

29 lines
515 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
2023-12-17 11:07:34 -05:00
#include <QList>
#include <QString>
class Patch
{
public:
QString name, url, repository, version;
2023-12-17 11:07:34 -05:00
QList<QString> hashes;
long hashBlockSize = 0;
long length = 0;
};
class PatchList
{
public:
explicit PatchList(const QString &patchList);
2023-12-17 11:07:34 -05:00
[[nodiscard]] QList<Patch> patches() const;
[[nodiscard]] bool isEmpty() const;
private:
2023-12-17 11:07:34 -05:00
QList<Patch> m_patches;
};