1 /* Evolution calendar - Live view client object
3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5 * Author: Federico Mena-Quintero <federico@ximian.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #if !defined (__LIBECAL_H_INSIDE__) && !defined (LIBECAL_COMPILATION)
22 #error "Only <libecal/libecal.h> should be included directly."
25 #ifndef EDS_DISABLE_DEPRECATED
30 #include <glib-object.h>
31 #include <libecal/e-cal-types.h>
33 /* Standard GObject macros */
34 #define E_TYPE_CAL_VIEW \
35 (e_cal_view_get_type ())
36 #define E_CAL_VIEW(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST \
38 ((obj), E_TYPE_CAL_VIEW, ECalView))
39 #define E_CAL_VIEW_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_CAST \
41 ((cls), E_TYPE_CAL_VIEW, ECalViewClass))
42 #define E_IS_CAL_VIEW(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE \
44 ((obj), E_TYPE_CAL_VIEW))
45 #define E_IS_CAL_VIEW_CLASS(cls) \
46 (G_TYPE_CHECK_CLASS_TYPE \
47 ((cls), E_TYPE_CAL_VIEW))
48 #define E_CAL_VIEW_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS \
50 ((obj), E_TYPE_CAL_VIEW, ECalViewClass))
54 typedef struct _ECalView ECalView;
55 typedef struct _ECalViewClass ECalViewClass;
56 typedef struct _ECalViewPrivate ECalViewPrivate;
62 ECalViewPrivate *priv;
65 struct _ECalViewClass {
66 GObjectClass parent_class;
69 void (*objects_added) (ECalView *cal_view,
71 void (*objects_modified) (ECalView *cal_view,
73 void (*objects_removed) (ECalView *cal_view,
75 void (*view_progress) (ECalView *cal_view,
78 void (*view_done) (ECalView *cal_view,
79 ECalendarStatus status);
80 void (*view_complete) (ECalView *cal_view,
81 ECalendarStatus status,
82 const gchar *error_msg);
85 GType e_cal_view_get_type (void);
86 struct _ECal * e_cal_view_get_client (ECalView *cal_view);
87 void e_cal_view_start (ECalView *cal_view);
88 void e_cal_view_stop (ECalView *cal_view);
92 #endif /* E_CAL_VIEW_H */
94 #endif /* EDS_DISABLE_DEPRECATED */