/* src/bazaar.p/bz-curated-section.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>
#include <gtk/gtk.h>
#include "bz-entry-group.h"
#include "bz-curated-appids-info.h"
#include "bz-curated-markdown-info.h"

G_BEGIN_DECLS



#define BZ_TYPE_CURATED_SECTION (bz_curated_section_get_type ())
G_DECLARE_FINAL_TYPE (BzCuratedSection, bz_curated_section, BZ, CURATED_SECTION, GObject)

BzCuratedSection *
bz_curated_section_new (void);

const char *
bz_curated_section_get_title (BzCuratedSection *self);

BzCuratedMarkdownInfo *
bz_curated_section_get_subtitle (BzCuratedSection *self);

BzCuratedAppidsInfo *
bz_curated_section_get_appids (BzCuratedSection *self);

const char *
bz_curated_section_get_list_type (BzCuratedSection *self);

gboolean
bz_curated_section_get_enable_bulk_install (BzCuratedSection *self);

int
bz_curated_section_get_overflow_count (BzCuratedSection *self);

void
bz_curated_section_set_title (BzCuratedSection *self,
    const char *title);

void
bz_curated_section_set_subtitle (BzCuratedSection *self,
    BzCuratedMarkdownInfo *subtitle);

void
bz_curated_section_set_appids (BzCuratedSection *self,
    BzCuratedAppidsInfo *appids);

void
bz_curated_section_set_list_type (BzCuratedSection *self,
    const char *list_type);

void
bz_curated_section_set_enable_bulk_install (BzCuratedSection *self,
    gboolean enable_bulk_install);

void
bz_curated_section_set_overflow_count (BzCuratedSection *self,
    int overflow_count);

void
bz_curated_section_set_title_take (BzCuratedSection *self,
    char *title);

#define bz_curated_section_set_title_take_printf(self, ...) bz_curated_section_set_title_take (self, g_strdup_printf (__VA_ARGS__))

void
bz_curated_section_set_list_type_take (BzCuratedSection *self,
    char *list_type);

#define bz_curated_section_set_list_type_take_printf(self, ...) bz_curated_section_set_list_type_take (self, g_strdup_printf (__VA_ARGS__))

G_END_DECLS

/* End of src/bazaar.p/bz-curated-section.h */
