Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libecal / e-cal-view-listener.h
1 /* Evolution calendar - Live search query listener implementation
2  *
3  * Copyright (C) 2001 Ximian, Inc.
4  *
5  * Author: Federico Mena-Quintero <federico@ximian.com>
6  *
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.
10  *
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.
15  *
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.
19  */
20
21 #ifndef E_CAL_VIEW_LISTENER_H
22 #define E_CAL_VIEW_LISTENER_H
23
24 #include <bonobo/bonobo-object.h>
25 #include <libecal/e-cal-types.h>
26
27 #include "Evolution-DataServer-Calendar.h"
28
29 G_BEGIN_DECLS
30
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))
37
38 typedef struct _ECalViewListener ECalViewListener;
39 typedef struct _ECalViewListenerClass ECalViewListenerClass;
40 typedef struct _ECalViewListenerPrivate ECalViewListenerPrivate;
41
42 struct _ECalViewListener {
43         BonoboObject xobject;
44
45         /*< private >*/
46         ECalViewListenerPrivate *priv;
47 };
48
49 struct _ECalViewListenerClass {
50         BonoboObjectClass parent_class;
51
52         POA_GNOME_Evolution_Calendar_CalViewListener__epv epv;
53
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);
59 };
60
61 GType             e_cal_view_listener_get_type (void);
62 ECalViewListener *e_cal_view_listener_new      (void);
63
64 G_END_DECLS
65
66 #endif