aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.h
blob: 13aba565907a49e18547971ea2383765bd820d3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef CALENDAR_H
#define CALENDAR_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