2025-03-10 12:16:31 +01:00
|
|
|
/*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2025-03-12 13:04:58 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "katja/database.hpp"
|
|
|
|
|
2025-03-10 12:16:31 +01:00
|
|
|
namespace katja
|
|
|
|
{
|
2025-03-12 13:04:58 +01:00
|
|
|
struct package_identifier
|
|
|
|
{
|
|
|
|
const std::string name;
|
|
|
|
const std::string version;
|
|
|
|
const std::string architecture;
|
|
|
|
const std::string data;
|
|
|
|
|
|
|
|
std::string to_string() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class repository
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual std::vector<package_identifier> get_updates(const package_database& database) = 0;
|
|
|
|
};
|
2025-03-10 12:16:31 +01:00
|
|
|
}
|