/* src/bazaar.p/bz-flatpak-repo.h
 *
 * Copyright 2026 AUTOGEN
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#pragma once

#include <glib-object.h>


G_BEGIN_DECLS



#define BZ_TYPE_FLATPAK_REPO (bz_flatpak_repo_get_type ())
G_DECLARE_FINAL_TYPE (BzFlatpakRepo, bz_flatpak_repo, BZ, FLATPAK_REPO, GObject)

BzFlatpakRepo *
bz_flatpak_repo_new (void);

const char *
bz_flatpak_repo_get_name (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_title (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_url (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_homepage (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_comment (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_description (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_icon (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_gpg_key (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_default_branch (BzFlatpakRepo *self);

const char *
bz_flatpak_repo_get_filter (BzFlatpakRepo *self);

gboolean
bz_flatpak_repo_get_is_user (BzFlatpakRepo *self);

gboolean
bz_flatpak_repo_get_disabled (BzFlatpakRepo *self);

gboolean
bz_flatpak_repo_get_noenumerate (BzFlatpakRepo *self);

gboolean
bz_flatpak_repo_get_gpg_verify (BzFlatpakRepo *self);

void
bz_flatpak_repo_set_name (BzFlatpakRepo *self,
    const char *name);

void
bz_flatpak_repo_set_title (BzFlatpakRepo *self,
    const char *title);

void
bz_flatpak_repo_set_url (BzFlatpakRepo *self,
    const char *url);

void
bz_flatpak_repo_set_homepage (BzFlatpakRepo *self,
    const char *homepage);

void
bz_flatpak_repo_set_comment (BzFlatpakRepo *self,
    const char *comment);

void
bz_flatpak_repo_set_description (BzFlatpakRepo *self,
    const char *description);

void
bz_flatpak_repo_set_icon (BzFlatpakRepo *self,
    const char *icon);

void
bz_flatpak_repo_set_gpg_key (BzFlatpakRepo *self,
    const char *gpg_key);

void
bz_flatpak_repo_set_default_branch (BzFlatpakRepo *self,
    const char *default_branch);

void
bz_flatpak_repo_set_filter (BzFlatpakRepo *self,
    const char *filter);

void
bz_flatpak_repo_set_is_user (BzFlatpakRepo *self,
    gboolean is_user);

void
bz_flatpak_repo_set_disabled (BzFlatpakRepo *self,
    gboolean disabled);

void
bz_flatpak_repo_set_noenumerate (BzFlatpakRepo *self,
    gboolean noenumerate);

void
bz_flatpak_repo_set_gpg_verify (BzFlatpakRepo *self,
    gboolean gpg_verify);

void
bz_flatpak_repo_set_name_take (BzFlatpakRepo *self,
    char *name);

#define bz_flatpak_repo_set_name_take_printf(self, ...) bz_flatpak_repo_set_name_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_title_take (BzFlatpakRepo *self,
    char *title);

#define bz_flatpak_repo_set_title_take_printf(self, ...) bz_flatpak_repo_set_title_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_url_take (BzFlatpakRepo *self,
    char *url);

#define bz_flatpak_repo_set_url_take_printf(self, ...) bz_flatpak_repo_set_url_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_homepage_take (BzFlatpakRepo *self,
    char *homepage);

#define bz_flatpak_repo_set_homepage_take_printf(self, ...) bz_flatpak_repo_set_homepage_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_comment_take (BzFlatpakRepo *self,
    char *comment);

#define bz_flatpak_repo_set_comment_take_printf(self, ...) bz_flatpak_repo_set_comment_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_description_take (BzFlatpakRepo *self,
    char *description);

#define bz_flatpak_repo_set_description_take_printf(self, ...) bz_flatpak_repo_set_description_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_icon_take (BzFlatpakRepo *self,
    char *icon);

#define bz_flatpak_repo_set_icon_take_printf(self, ...) bz_flatpak_repo_set_icon_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_gpg_key_take (BzFlatpakRepo *self,
    char *gpg_key);

#define bz_flatpak_repo_set_gpg_key_take_printf(self, ...) bz_flatpak_repo_set_gpg_key_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_default_branch_take (BzFlatpakRepo *self,
    char *default_branch);

#define bz_flatpak_repo_set_default_branch_take_printf(self, ...) bz_flatpak_repo_set_default_branch_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_flatpak_repo_set_filter_take (BzFlatpakRepo *self,
    char *filter);

#define bz_flatpak_repo_set_filter_take_printf(self, ...) bz_flatpak_repo_set_filter_take (self, g_strdup_printf (__VA_ARGS__))

G_END_DECLS

/* End of src/bazaar.p/bz-flatpak-repo.h */
