GnuCash  5.6-150-g038405b370+
gnc-dense-cal-model.h
1 /********************************************************************\
2  * gnc-dense-cal-model.h *
3  * Copyright (C) 2006 Joshua Sled <jsled@asynchronous.org> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation, under version 2 and *
8  * / or version 3 of the License. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA gnu@gnu.org *
21 \********************************************************************/
22 
23 #ifndef _GNC_DENSE_CAL_MODEL_H
24 #define _GNC_DENSE_CAL_MODEL_H
25 
26 #include <config.h>
27 #include <glib.h>
28 #include <glib-object.h>
29 
30 G_BEGIN_DECLS
31 
32 #define GNC_TYPE_DENSE_CAL_MODEL (gnc_dense_cal_model_get_type ())
33 G_DECLARE_INTERFACE(GncDenseCalModel, gnc_dense_cal_model, GNC, DENSE_CAL_MODEL, GObject)
34 
36 {
37  GTypeInterface parent;
38 
39  /* virtual table */
40  GList* (*get_contained)(GncDenseCalModel *model);
41  gchar* (*get_name)(GncDenseCalModel *model, guint tag);
42  gchar* (*get_info)(GncDenseCalModel *model, guint tag);
43  gint (*get_instance_count)(GncDenseCalModel *model, guint tag);
44  void (*get_instance)(GncDenseCalModel *model, guint tag, gint instance_index, GDate *date);
45 };
46 
48 GList* gnc_dense_cal_model_get_contained (GncDenseCalModel *model);
49 gchar* gnc_dense_cal_model_get_name (GncDenseCalModel *model, guint tag);
50 gchar* gnc_dense_cal_model_get_info (GncDenseCalModel *model, guint tag);
51 gint gnc_dense_cal_model_get_instance_count (GncDenseCalModel *model, guint tag);
52 void gnc_dense_cal_model_get_instance (GncDenseCalModel *model,
53  guint tag,
54  gint instance_index,
55  GDate *date);
56 
57 G_END_DECLS
58 
59 #endif // _GNC_DENSE_CAL_MODEL_H