|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2002 CodeFactory AB
|
|
Packit |
116408 |
* Copyright (C) 2002 Mikael Hallendal <micke@imendio.com>
|
|
Packit |
116408 |
* Copyright (C) 2005-2008 Imendio AB
|
|
Packit |
116408 |
* Copyright (C) 2010 Lanedo GmbH
|
|
Packit |
116408 |
* Copyright (C) 2017, 2018 Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
116408 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
116408 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
116408 |
* License, or (at your option) any later version.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
116408 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
116408 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
116408 |
* General Public License for more details.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
116408 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_BOOK_H
|
|
Packit |
116408 |
#define DH_BOOK_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <gio/gio.h>
|
|
Packit |
116408 |
#include "dh-completion.h"
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_BEGIN_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhBook DhBook;
|
|
Packit |
116408 |
typedef struct _DhBookClass DhBookClass;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#define DH_TYPE_BOOK (dh_book_get_type ())
|
|
Packit |
116408 |
#define DH_BOOK(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DH_TYPE_BOOK, DhBook))
|
|
Packit |
116408 |
#define DH_BOOK_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DH_TYPE_BOOK, DhBookClass))
|
|
Packit |
116408 |
#define DH_IS_BOOK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DH_TYPE_BOOK))
|
|
Packit |
116408 |
#define DH_IS_BOOK_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DH_TYPE_BOOK))
|
|
Packit |
116408 |
#define DH_BOOK_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DH_TYPE_BOOK, DhBookClass))
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhBook {
|
|
Packit |
116408 |
GObject parent_instance;
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhBookClass {
|
|
Packit |
116408 |
GObjectClass parent_class;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Padding for future expansion */
|
|
Packit |
116408 |
gpointer padding[12];
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GType dh_book_get_type (void) G_GNUC_CONST;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
DhBook * dh_book_new (GFile *index_file);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GFile * dh_book_get_index_file (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
const gchar *dh_book_get_id (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
const gchar *dh_book_get_title (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
const gchar *dh_book_get_language (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GList * dh_book_get_links (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GNode * dh_book_get_tree (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
DhCompletion *dh_book_get_completion (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_book_get_enabled (DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_book_set_enabled (DhBook *book,
|
|
Packit |
116408 |
gboolean enabled);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gint dh_book_cmp_by_id (DhBook *a,
|
|
Packit |
116408 |
DhBook *b);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gint dh_book_cmp_by_title (DhBook *a,
|
|
Packit |
116408 |
DhBook *b);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_BOOK_H */
|