Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / src / offline-listener.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* server-interface-check.h
3  *
4  * Copyright (C) 2004  Novell, Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  * Author: Sivaiah Nallagatla <snallagatla@novell.com>
21  */
22
23 #ifndef _OFFLINE_LISTNER_H_
24 #define _OFFLINE_LISTNER_H_
25
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29
30 #include <glib-object.h>
31 #include <libedata-book/e-data-book-factory.h>
32 #if ENABLE_CALENDAR
33 #include <libedata-cal/e-data-cal-factory.h>
34 #endif
35
36 G_BEGIN_DECLS
37
38 #define OFFLINE_TYPE_LISTENER                   (offline_listener_get_type ())
39 #define OFFLINE_LISTENER(obj)                   ((G_TYPE_CHECK_INSTANCE_CAST((obj), OFFLINE_TYPE_LISTENER, OfflineListener)))
40 #define OFFLINE_LISTENER_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST((klass), OFFLINE_TYPE_LISTENER, OfflineListenerClass))
41 #define OFFLINE_IS_LISTENER(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OFFLINE_TYPE_LISTENER))
42 #define OFFLINE_IS_LISTENER_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((obj), OFFLINE_TYPE_LISTENER))
43
44
45 typedef struct _OfflineListener        OfflineListener;
46 typedef struct _OfflineListenerPrivate  OfflineListenerPrivate;
47 typedef struct _OfflineListenerClass   OfflineListenerClass;
48
49 struct _OfflineListener {
50         GObject parent;
51         OfflineListenerPrivate *priv;
52   
53 };
54
55 struct _OfflineListenerClass {
56         GObjectClass  parent_class;
57
58 };
59
60
61 GType offline_listener_get_type  (void);
62
63 #if ENABLE_CALENDAR
64 OfflineListener  *offline_listener_new (EDataBookFactory *book_factory, EDataCalFactory *cal_factory);
65 #else
66 OfflineListener  *offline_listener_new (EDataBookFactory *book_factory);
67 #endif
68
69 G_END_DECLS
70
71 #endif /* _OFFLINE_LISTNER_H_ */