1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4
* Copyright (C) 2006 OpenedHand Ltd
5
* Copyright (C) 2009 Intel Corporation
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.
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
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
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>
10
21
#ifndef __E_DATA_BOOK_FACTORY_H__
11
22
#define __E_DATA_BOOK_FACTORY_H__
24
#include <glib-object.h>
15
28
#define E_TYPE_DATA_BOOK_FACTORY (e_data_book_factory_get_type ())
22
35
typedef struct _EDataBookFactoryPrivate EDataBookFactoryPrivate;
25
BonoboObject parent_object;
26
39
EDataBookFactoryPrivate *priv;
27
40
} EDataBookFactory;
30
BonoboObjectClass parent_class;
32
POA_GNOME_Evolution_Addressbook_BookFactory__epv epv;
34
/* Notification signals */
35
void (* last_book_gone) (EDataBookFactory *factory);
36
44
} EDataBookFactoryClass;
38
EDataBookFactory *e_data_book_factory_new (void);
40
void e_data_book_factory_register_backend (EDataBookFactory *factory,
41
EBookBackendFactory *backend_factory);
43
gint e_data_book_factory_get_n_backends (EDataBookFactory *factory);
45
void e_data_book_factory_register_backends (EDataBookFactory *factory);
47
void e_data_book_factory_dump_active_backends (EDataBookFactory *factory);
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);
52
GType e_data_book_factory_get_type (void);
47
E_DATA_BOOK_FACTORY_ERROR_GENERIC
48
} EDataBookFactoryError;
50
GQuark e_data_book_factory_error_quark (void);
51
#define E_DATA_BOOK_FACTORY_ERROR e_data_book_factory_error_quark ()
53
GType e_data_book_factory_get_type (void);
55
void e_data_book_factory_set_backend_mode (EDataBookFactory *factory, gint mode);
56
#endif /* ! __E_DATA_BOOK_FACTORY_H__ */
59
#endif /* __E_DATA_BOOK_FACTORY_H__ */