1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
/* server-interface-check.h
4
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
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.
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.
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.
20
* Author: Sivaiah Nallagatla <snallagatla@novell.com>
23
#ifndef _OFFLINE_LISTNER_H_
24
#define _OFFLINE_LISTNER_H_
30
#include <glib-object.h>
31
#include <libedata-book/e-data-book-factory.h>
33
#include <libedata-cal/e-data-cal-factory.h>
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))
44
typedef struct _OfflineListener OfflineListener;
45
typedef struct _OfflineListenerPrivate OfflineListenerPrivate;
46
typedef struct _OfflineListenerClass OfflineListenerClass;
48
struct _OfflineListener {
50
OfflineListenerPrivate *priv;
54
struct _OfflineListenerClass {
55
GObjectClass parent_class;
59
GType offline_listener_get_type (void);
62
OfflineListener *offline_listener_new (EDataBookFactory *book_factory, EDataCalFactory *cal_factory);
64
OfflineListener *offline_listener_new (EDataBookFactory *book_factory);
69
#endif /* _OFFLINE_LISTNER_H_ */