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

« back to all changes in this revision

Viewing changes to addressbook/libedata-book/e-data-book-factory.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; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
1
2
/*
2
3
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 
4
 * Copyright (C) 2006 OpenedHand Ltd
 
5
 * Copyright (C) 2009 Intel Corporation
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or modify it under
 
8
 * the terms of version 2.1 of the GNU Lesser General Public License as
 
9
 * published by the Free Software Foundation.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
13
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
14
 * details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public License
 
17
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 
18
 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3
19
 */
4
20
 
5
 
#include <bonobo/bonobo-object.h>
6
 
#include <libedata-book/Evolution-DataServer-Addressbook.h>
7
 
#include <libedata-book/e-book-backend.h>
8
 
#include <libedata-book/e-book-backend-factory.h>
9
 
 
10
21
#ifndef __E_DATA_BOOK_FACTORY_H__
11
22
#define __E_DATA_BOOK_FACTORY_H__
12
23
 
 
24
#include <glib-object.h>
 
25
 
13
26
G_BEGIN_DECLS
14
27
 
15
28
#define E_TYPE_DATA_BOOK_FACTORY        (e_data_book_factory_get_type ())
22
35
typedef struct _EDataBookFactoryPrivate EDataBookFactoryPrivate;
23
36
 
24
37
typedef struct {
25
 
        BonoboObject            parent_object;
 
38
        GObject parent;
26
39
        EDataBookFactoryPrivate *priv;
27
40
} EDataBookFactory;
28
41
 
29
42
typedef struct {
30
 
        BonoboObjectClass parent_class;
31
 
 
32
 
        POA_GNOME_Evolution_Addressbook_BookFactory__epv epv;
33
 
 
34
 
        /* Notification signals */
35
 
        void (* last_book_gone) (EDataBookFactory *factory);
 
43
        GObjectClass parent;
36
44
} EDataBookFactoryClass;
37
45
 
38
 
EDataBookFactory *e_data_book_factory_new                  (void);
39
 
 
40
 
void              e_data_book_factory_register_backend     (EDataBookFactory    *factory,
41
 
                                                            EBookBackendFactory *backend_factory);
42
 
 
43
 
gint               e_data_book_factory_get_n_backends       (EDataBookFactory    *factory);
44
 
 
45
 
void              e_data_book_factory_register_backends    (EDataBookFactory    *factory);
46
 
 
47
 
void              e_data_book_factory_dump_active_backends (EDataBookFactory    *factory);
48
 
 
49
 
gboolean          e_data_book_factory_activate             (EDataBookFactory    *factory, const gchar *iid);
50
 
void              e_data_book_factory_set_backend_mode             (EDataBookFactory    *factory, gint mode);
51
 
 
52
 
GType             e_data_book_factory_get_type             (void);
 
46
typedef enum {
 
47
        E_DATA_BOOK_FACTORY_ERROR_GENERIC
 
48
} EDataBookFactoryError;
 
49
 
 
50
GQuark e_data_book_factory_error_quark (void);
 
51
#define E_DATA_BOOK_FACTORY_ERROR e_data_book_factory_error_quark ()
 
52
 
 
53
GType e_data_book_factory_get_type (void);
 
54
 
 
55
void e_data_book_factory_set_backend_mode (EDataBookFactory *factory, gint mode);
53
56
 
54
57
G_END_DECLS
55
58
 
56
 
#endif /* ! __E_DATA_BOOK_FACTORY_H__ */
 
59
#endif /* __E_DATA_BOOK_FACTORY_H__ */