GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-dense-cal-store.h
1 /*
2  * gnc-dense-cal-store.h
3  *
4  * Copyright (C) 2006 Joshua Sled <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 and/or version 3 of the GNU General Public License as
8  * published by the Free Software Foundation.
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 [email protected]
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 #define GNC_DENSE_CAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStore))
36 #define GNC_DENSE_CAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStoreClass))
37 #define GNC_IS_DENSE_CAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_DENSE_CAL_STORE))
38 #define GNC_IS_DENSE_CAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_DENSE_CAL_STORE))
39 #define GNC_DENSE_CAL_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStore))
40 
41 typedef enum { NEVER_END, END_ON_DATE, END_AFTER_N_OCCS, BAD_END } gdcs_end_type;
42 
43 typedef struct _GncDenseCalStore GncDenseCalStore;
45 
46 GType gnc_dense_cal_store_get_type(void);
47 GncDenseCalStore* gnc_dense_cal_store_new(int num_marks);
48 void gnc_dense_cal_store_clear(GncDenseCalStore *model);
49 void gnc_dense_cal_store_update_name(GncDenseCalStore *model, gchar* name);
50 void gnc_dense_cal_store_update_info(GncDenseCalStore *model, gchar* info);
51 
52 void gnc_dense_cal_store_update_recurrences_no_end(GncDenseCalStore *model, GDate *start, GList *recurrences);
53 void gnc_dense_cal_store_update_recurrences_count_end(GncDenseCalStore *model, GDate *start, GList *recurrences, int num_occur);
54 void gnc_dense_cal_store_update_recurrences_date_end(GncDenseCalStore *model, GDate *start, GList *recurrences, GDate *end_date);
55 
56 G_END_DECLS
57 
58 #endif // _GNC_DENSE_CAL_STORE_H