|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-dense-cal-store.h 00003 * 00004 * Copyright (C) 2006 Joshua Sled <jsled@asynchronous.org> 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of version 2 and/or version 3 of the GNU General Public License as 00008 * published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License* 00016 * along with this program; if not, contact: 00017 * 00018 * Free Software Foundation Voice: +1-617-542-5942 00019 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00020 * Boston, MA 02110-1301, USA gnu@gnu.org 00021 */ 00022 00023 #ifndef _GNC_DENSE_CAL_STORE_H 00024 #define _GNC_DENSE_CAL_STORE_H 00025 00026 #include "config.h" 00027 #include <glib.h> 00028 #include <glib-object.h> 00029 #include "gnc-dense-cal-model.h" 00030 #include "gnc-dense-cal.h" 00031 00032 G_BEGIN_DECLS 00033 00034 #define GNC_TYPE_DENSE_CAL_STORE (gnc_dense_cal_store_get_type()) 00035 #define GNC_DENSE_CAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStore)) 00036 #define GNC_DENSE_CAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStoreClass)) 00037 #define GNC_IS_DENSE_CAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_DENSE_CAL_STORE)) 00038 #define GNC_IS_DENSE_CAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_DENSE_CAL_STORE)) 00039 #define GNC_DENSE_CAL_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_DENSE_CAL_STORE, GncDenseCalStore)) 00040 00041 typedef enum { NEVER_END, END_ON_DATE, END_AFTER_N_OCCS, BAD_END } gdcs_end_type; 00042 00043 typedef struct _GncDenseCalStore GncDenseCalStore; 00044 typedef struct _GncDenseCalStoreClass GncDenseCalStoreClass; 00045 00046 GType gnc_dense_cal_store_get_type(void); 00047 GncDenseCalStore* gnc_dense_cal_store_new(int num_marks); 00048 void gnc_dense_cal_store_clear(GncDenseCalStore *model); 00049 void gnc_dense_cal_store_update_name(GncDenseCalStore *model, gchar* name); 00050 void gnc_dense_cal_store_update_info(GncDenseCalStore *model, gchar* info); 00051 00052 void gnc_dense_cal_store_update_recurrences_no_end(GncDenseCalStore *model, GDate *start, GList *recurrences); 00053 void gnc_dense_cal_store_update_recurrences_count_end(GncDenseCalStore *model, GDate *start, GList *recurrences, int num_occur); 00054 void gnc_dense_cal_store_update_recurrences_date_end(GncDenseCalStore *model, GDate *start, GList *recurrences, GDate *end_date); 00055 00056 G_END_DECLS 00057 00058 #endif // _GNC_DENSE_CAL_STORE_H
1.7.4