GnuCash  5.6-150-g038405b370+
gnc-dense-cal-store.h
1 /********************************************************************\
2  * gnc-dense-cal-store.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_STORE_H
24 #define _GNC_DENSE_CAL_STORE_H
25 
26 #include <config.h>
27 #include <glib.h>
28 #include <glib-object.h>
29 #include "gnc-dense-cal-model.h"
30 #include "gnc-dense-cal.h"
31 
32 G_BEGIN_DECLS
33 
34 #define GNC_TYPE_DENSE_CAL_STORE (gnc_dense_cal_store_get_type ())
35 G_DECLARE_FINAL_TYPE(GncDenseCalStore, gnc_dense_cal_store, GNC, DENSE_CAL_STORE, GObject)
36 
37 typedef enum { NEVER_END, END_ON_DATE, END_AFTER_N_OCCS, BAD_END } gdcs_end_type;
38 
39 GncDenseCalStore* gnc_dense_cal_store_new (int num_marks);
40 void gnc_dense_cal_store_clear (GncDenseCalStore *model);
41 void gnc_dense_cal_store_update_name (GncDenseCalStore *model, const gchar* name);
42 void gnc_dense_cal_store_update_info (GncDenseCalStore *model, const gchar* info);
43 
44 void gnc_dense_cal_store_update_recurrences_no_end (GncDenseCalStore *model,
45  GDate *start,
46  GList *recurrences);
47 void gnc_dense_cal_store_update_recurrences_count_end (GncDenseCalStore *model,
48  GDate *start,
49  GList *recurrences,
50  int num_occur);
51 void gnc_dense_cal_store_update_recurrences_date_end (GncDenseCalStore *model,
52  GDate *start,
53  GList *recurrences,
54  GDate *end_date);
55 
56 G_END_DECLS
57 
58 #endif // _GNC_DENSE_CAL_STORE_H