1 /* Evolution calendar - Live view client object
3 * Copyright (C) 2001 Ximian, Inc.
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.
24 #include <glib-object.h>
25 #include <libecal/e-cal-types.h>
29 #define E_TYPE_CAL_VIEW (e_cal_view_get_type ())
30 #define E_CAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_VIEW, ECalView))
31 #define E_CAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_VIEW, ECalViewClass))
32 #define E_IS_CAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_VIEW))
33 #define E_IS_CAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_VIEW))
35 typedef struct _ECalView ECalView;
36 typedef struct _ECalViewClass ECalViewClass;
37 typedef struct _ECalViewPrivate ECalViewPrivate;
44 ECalViewPrivate *priv;
47 struct _ECalViewClass {
48 GObjectClass parent_class;
50 /* Notification signals */
51 void (* objects_added) (ECalView *view, GList *objects);
52 void (* objects_modified) (ECalView *view, GList *objects);
53 void (* objects_removed) (ECalView *view, GList *uids);
54 void (* view_progress) (ECalView *view, char *message, int percent);
55 void (* view_done) (ECalView *view, ECalendarStatus status);
58 GType e_cal_view_get_type (void);
60 struct _ECal *e_cal_view_get_client (ECalView *view);
61 void e_cal_view_start (ECalView *view);