Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / calendar / libecal / e-cal-view.h
1 /* Evolution calendar - Live view client object
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_H
22 #define E_CAL_VIEW_H
23
24 #include <glib-object.h>
25 #include <libecal/e-cal-types.h>
26
27 G_BEGIN_DECLS
28
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))
34
35 typedef struct _ECalView ECalView;
36 typedef struct _ECalViewClass ECalViewClass;
37 typedef struct _ECalViewPrivate ECalViewPrivate;
38 struct _ECal;
39
40 struct _ECalView {
41         GObject object;
42
43         /*< private >*/
44         ECalViewPrivate *priv;
45 };
46
47 struct _ECalViewClass {
48         GObjectClass parent_class;
49
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);
56 };
57
58 GType      e_cal_view_get_type (void);
59
60 struct _ECal *e_cal_view_get_client (ECalView *view);
61 void e_cal_view_start (ECalView *view);
62
63 G_END_DECLS
64
65 #endif