Blame clients/tui/nmt-editor-page.h

Packit Service a1bd4f
/* SPDX-License-Identifier: GPL-2.0+ */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2013 - 2014 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef NMT_EDITOR_PAGE_H
Packit 5756e2
#define NMT_EDITOR_PAGE_H
Packit 5756e2
Packit 5756e2
#include "nmt-editor-grid.h"
Packit 5756e2
#include "nmt-editor-section.h"
Packit 5756e2
Packit Service a1bd4f
#define NMT_TYPE_EDITOR_PAGE (nmt_editor_page_get_type())
Packit Service a1bd4f
#define NMT_EDITOR_PAGE(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NMT_TYPE_EDITOR_PAGE, NmtEditorPage))
Packit Service a1bd4f
#define NMT_EDITOR_PAGE_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NMT_TYPE_EDITOR_PAGE, NmtEditorPageClass))
Packit Service a1bd4f
#define NMT_IS_EDITOR_PAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NMT_TYPE_EDITOR_PAGE))
Packit Service a1bd4f
#define NMT_IS_EDITOR_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NMT_TYPE_EDITOR_PAGE))
Packit Service a1bd4f
#define NMT_EDITOR_PAGE_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NMT_TYPE_EDITOR_PAGE, NmtEditorPageClass))
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    GObject parent;
Packit 5756e2
Packit 5756e2
} NmtEditorPage;
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    GObjectClass parent;
Packit 5756e2
Packit Service a1bd4f
    void (*saved)(NmtEditorPage *page);
Packit 5756e2
} NmtEditorPageClass;
Packit 5756e2
Packit Service a1bd4f
GType nmt_editor_page_get_type(void);
Packit 5756e2
Packit Service a1bd4f
NMConnection *nmt_editor_page_get_connection(NmtEditorPage *page);
Packit 5756e2
Packit Service a1bd4f
GSList *nmt_editor_page_get_sections(NmtEditorPage *page);
Packit 5756e2
Packit Service a1bd4f
void nmt_editor_page_saved(NmtEditorPage *page);
Packit 5756e2
Packit 5756e2
/*< protected >*/
Packit Service a1bd4f
void nmt_editor_page_add_section(NmtEditorPage *page, NmtEditorSection *section);
Packit 5756e2
Packit 5756e2
#endif /* NMT_EDITOR_PAGE_H */