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 _E_OFFLINE_LISTENER_H_
24
#define _E_OFFLINE_LISTENER_H_
30
#include <glib-object.h>
34
#define E_TYPE_OFFLINE_LISTENER (e_offline_listener_get_type ())
35
#define E_OFFLINE_LISTENER(obj) ((G_TYPE_CHECK_INSTANCE_CAST((obj), E_TYPE_OFFLINE_LISTENER, EOfflineListener)))
36
#define E_OFFLINE_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), E_TYPE_OFFLINE_LISTENER, EOfflineListenerClass))
37
#define E_IS_OFFLINE_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_OFFLINE_LISTENER))
38
#define E_IS_OFFLINE_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_OFFLINE_LISTENER))
40
typedef struct _EOfflineListener EOfflineListener;
41
typedef struct _EOfflineListenerPrivate EOfflineListenerPrivate;
42
typedef struct _EOfflineListenerClass EOfflineListenerClass;
45
* EOfflineListenerState:
52
EOL_STATE_OFFLINE = 0,
54
} EOfflineListenerState;
61
struct _EOfflineListener {
63
EOfflineListenerPrivate *priv;
66
struct _EOfflineListenerClass {
67
GObjectClass parent_class;
69
void (*changed) (EOfflineListener *eol, EOfflineListenerState state);
72
GType e_offline_listener_get_type (void);
74
EOfflineListener *e_offline_listener_new (void);
76
EOfflineListenerState e_offline_listener_get_state (EOfflineListener *eol);
80
#endif /* _E_OFFLINE_LISTENER_H_ */