diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-05-09 10:28:52 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-05-09 10:34:11 +0200 |
| commit | 8dd9efa88da99f602a6848731a115f10ec3a5b31 (patch) | |
| tree | c7d88ee8828fbbaa7571dd5fafba73d775d67e94 /backend/pkgtools.h | |
| parent | dc3340473423ab92eae0962d9aaf239d218d16f2 (diff) | |
| download | katja-8dd9efa88da99f602a6848731a115f10ec3a5b31.tar.gz | |
Convert the backend to modules
Diffstat (limited to 'backend/pkgtools.h')
| -rw-r--r-- | backend/pkgtools.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/backend/pkgtools.h b/backend/pkgtools.h deleted file mode 100644 index 06f1796..0000000 --- a/backend/pkgtools.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 - -#include <cstdint> -#include <glib-object.h> -#include "utils.h" - -namespace katja -{ -class Pkgtools -{ -public: - const char *get_name() const noexcept; - const char *get_mirror() const noexcept; - std::uint8_t get_order() const noexcept; - bool is_blacklisted(const char *pkg) const noexcept; - - virtual ~Pkgtools() noexcept; - - bool download(JobData *job_data, const char *dest_dir_name, char *pkg_name) noexcept; - void install(JobData *job_data, char *pkg_name) noexcept; - - virtual GSList *collect_cache_info (const char *tmpl) noexcept = 0; - virtual void generate_cache(JobData *job_data, const char *tmpl) noexcept = 0; - -protected: - char *name = nullptr; - char *mirror = nullptr; - std::uint8_t order; - GRegex *blacklist = nullptr; -}; -} |
