diff options
Diffstat (limited to 'calendar/gui/calendar.h')
-rw-r--r-- | calendar/gui/calendar.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/calendar/gui/calendar.h b/calendar/gui/calendar.h new file mode 100644 index 0000000000..f854c69b7a --- /dev/null +++ b/calendar/gui/calendar.h @@ -0,0 +1,25 @@ +#ifndef CALOBJ_H +#define CALOBJ_H + +BEGIN_GNOME_DECLS + +typedef struct { + char *title; + char *filename; + GList *events; + GList *todo; + GList *journal; +} Calendar; + +Calendar *calendar_new (char *title); +void calendar_add_object (Calendar *cal, iCalObject *obj); +void calendar_remove_object (Calendar *cal, iCalObject *obj); +void calendar_destroy (Calendar *cal); + +GList *calendar_get_events_in_range (Calendar *cal, time_t start, time_t end); +GList *calendar_get_todo_in_range (Calendar *cal, time_t start, time_t end); +GList *calendar_get_journal_in_range (Calendar *cal, time_t start, time_t end); + +END_GNOME_DECLS + +#endif |