3 * Evolution calendar - Utilities for tagging ECalendar widgets
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 * Damon Chaplin <damon@ximian.com>
20 * Federico Mena-Quintero <federico@ximian.com>
22 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
26 #ifndef TAG_CALENDAR_H
27 #define TAG_CALENDAR_H
29 #include <libecal/libecal.h>
30 #include <e-util/e-util.h>
31 #include <calendar/gui/e-cal-data-model.h>
33 /* Standard GObject macros */
34 #define E_TYPE_TAG_CALENDAR \
35 (e_tag_calendar_get_type ())
36 #define E_TAG_CALENDAR(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST \
38 ((obj), E_TYPE_TAG_CALENDAR, ETagCalendar))
39 #define E_TAG_CALENDAR_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_CAST \
41 ((cls), E_TYPE_TAG_CALENDAR, ETagCalendarClass))
42 #define E_IS_TAG_CALENDAR(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE \
44 ((obj), E_TYPE_TAG_CALENDAR))
45 #define E_IS_TAG_CALENDAR_CLASS(cls) \
46 (G_TYPE_CHECK_CLASS_TYPE \
47 ((cls), E_TYPE_TAG_CALENDAR))
48 #define E_TAG_CALENDAR_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS \
50 ((obj), E_TYPE_TAG_CALENDAR, ETagCalendarClass))
54 typedef struct _ETagCalendar ETagCalendar
;
55 typedef struct _ETagCalendarClass ETagCalendarClass
;
56 typedef struct _ETagCalendarPrivate ETagCalendarPrivate
;
58 struct _ETagCalendar
{
60 ETagCalendarPrivate
*priv
;
63 struct _ETagCalendarClass
{
64 GObjectClass parent_class
;
67 GType
e_tag_calendar_get_type (void);
69 ETagCalendar
* e_tag_calendar_new (ECalendar
*calendar
);
70 ECalendar
* e_tag_calendar_get_calendar (ETagCalendar
*tag_calendar
);
71 gboolean e_tag_calendar_get_recur_events_italic
72 (ETagCalendar
*tag_calendar
);
73 void e_tag_calendar_set_recur_events_italic
74 (ETagCalendar
*tag_calendar
,
75 gboolean recur_events_italic
);
76 void e_tag_calendar_subscribe (ETagCalendar
*tag_calendar
,
77 ECalDataModel
*data_model
);
78 void e_tag_calendar_unsubscribe (ETagCalendar
*tag_calendar
,
79 ECalDataModel
*data_model
);
82 void tag_calendar_by_comp (ECalendar
*ecal
,
85 icaltimezone
*display_zone
,
87 gboolean comp_is_on_server
,
88 gboolean can_recur_events_italic
,
89 GCancellable
*cancellable
);