1 /* Evolution calendar - Live search query listener implementation
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.
21 #ifndef E_CAL_VIEW_LISTENER_H
22 #define E_CAL_VIEW_LISTENER_H
24 #include <bonobo/bonobo-object.h>
25 #include <libecal/e-cal-types.h>
27 #include "Evolution-DataServer-Calendar.h"
31 #define E_TYPE_CAL_VIEW_LISTENER (e_cal_view_listener_get_type ())
32 #define E_CAL_VIEW_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_VIEW_LISTENER, ECalViewListener))
33 #define E_CAL_VIEW_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_VIEW_LISTENER, ECalViewListenerClass))
34 #define E_IS_CAL_VIEW_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_VIEW_LISTENER))
35 #define E_IS_CAL_VIEW_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_VIEW_LISTENER))
36 #define E_CAL_VIEW_LISTENER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), E_TYPE_CAL_VIEW_LISTENER, ECalViewListenerClass))
38 typedef struct _ECalViewListener ECalViewListener;
39 typedef struct _ECalViewListenerClass ECalViewListenerClass;
40 typedef struct _ECalViewListenerPrivate ECalViewListenerPrivate;
42 struct _ECalViewListener {
46 ECalViewListenerPrivate *priv;
49 struct _ECalViewListenerClass {
50 BonoboObjectClass parent_class;
52 POA_GNOME_Evolution_Calendar_CalViewListener__epv epv;
54 void (*objects_added) (ECalViewListener *listener, GList *objects);
55 void (*objects_modified) (ECalViewListener *listener, GList *objects);
56 void (*objects_removed) (ECalViewListener *listener, GList *uids);
57 void (*view_progress) (ECalViewListener *listener, const char *message, int percent);
58 void (*view_done) (ECalViewListener *listener, ECalendarStatus status);
61 GType e_cal_view_listener_get_type (void);
62 ECalViewListener *e_cal_view_listener_new (void);