~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libebackend/e-offline-listener.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/* server-interface-check.h
 
3
 *
 
4
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 
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 _E_OFFLINE_LISTENER_H_
 
24
#define _E_OFFLINE_LISTENER_H_
 
25
 
 
26
#ifdef HAVE_CONFIG_H
 
27
#include <config.h>
 
28
#endif
 
29
 
 
30
#include <glib-object.h>
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
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))
 
39
 
 
40
typedef struct _EOfflineListener         EOfflineListener;
 
41
typedef struct _EOfflineListenerPrivate  EOfflineListenerPrivate;
 
42
typedef struct _EOfflineListenerClass    EOfflineListenerClass;
 
43
 
 
44
/**
 
45
 * EOfflineListenerState:
 
46
 * @EOL_STATE_OFFLINE:
 
47
 * @EOL_STATE_ONLINE:
 
48
 *
 
49
 * Since: 2.30
 
50
 **/
 
51
typedef enum {
 
52
        EOL_STATE_OFFLINE = 0,
 
53
        EOL_STATE_ONLINE = 1
 
54
} EOfflineListenerState;
 
55
 
 
56
/**
 
57
 * EOfflineListener:
 
58
 *
 
59
 * Since: 2.30
 
60
 **/
 
61
struct _EOfflineListener {
 
62
        GObject parent;
 
63
        EOfflineListenerPrivate *priv;
 
64
};
 
65
 
 
66
struct _EOfflineListenerClass {
 
67
        GObjectClass  parent_class;
 
68
 
 
69
        void (*changed) (EOfflineListener *eol, EOfflineListenerState state);
 
70
};
 
71
 
 
72
GType e_offline_listener_get_type  (void);
 
73
 
 
74
EOfflineListener  *e_offline_listener_new (void);
 
75
 
 
76
EOfflineListenerState e_offline_listener_get_state (EOfflineListener *eol);
 
77
 
 
78
G_END_DECLS
 
79
 
 
80
#endif /* _E_OFFLINE_LISTENER_H_ */