2 * e-source-address-book.h
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
19 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
20 #error "Only <libedataserver/libedataserver.h> should be included directly."
23 #ifndef E_SOURCE_ADDRESS_BOOK_H
24 #define E_SOURCE_ADDRESS_BOOK_H
26 #include <libedataserver/e-source-backend.h>
28 /* Standard GObject macros */
29 #define E_TYPE_SOURCE_ADDRESS_BOOK \
30 (e_source_address_book_get_type ())
31 #define E_SOURCE_ADDRESS_BOOK(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST \
33 ((obj), E_TYPE_SOURCE_ADDRESS_BOOK, ESourceAddressBook))
34 #define E_SOURCE_ADDRESS_BOOK_CLASS(cls) \
35 (G_TYPE_CHECK_CLASS_CAST \
36 ((cls), E_TYPE_SOURCE_ADDRESS_BOOK, ESourceAddressBookClass))
37 #define E_IS_SOURCE_ADDRESS_BOOK(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE \
39 ((obj), E_TYPE_SOURCE_ADDRESS_BOOK))
40 #define E_IS_SOURCE_ADDRESS_BOOK_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_TYPE \
42 ((cls), E_TYPE_SOURCE_ADDRESS_BOOK))
43 #define E_SOURCE_ADDRESS_BOOK_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS \
45 ((obj), E_TYPE_SOURCE_ADDRESS_BOOK, ESourceAddressBookClass))
48 * E_SOURCE_EXTENSION_ADDRESS_BOOK:
50 * Pass this extension name to e_source_get_extension() to access
51 * #ESourceAddressBook. This is also used as a group name in key files.
55 #define E_SOURCE_EXTENSION_ADDRESS_BOOK "Address Book"
59 typedef struct _ESourceAddressBook ESourceAddressBook;
60 typedef struct _ESourceAddressBookClass ESourceAddressBookClass;
61 typedef struct _ESourceAddressBookPrivate ESourceAddressBookPrivate;
66 * Contains only private data that should be read and manipulated using the
71 struct _ESourceAddressBook {
72 ESourceBackend parent;
73 ESourceAddressBookPrivate *priv;
76 struct _ESourceAddressBookClass {
77 ESourceBackendClass parent_class;
80 GType e_source_address_book_get_type (void) G_GNUC_CONST;
84 #endif /* E_SOURCE_ADDRESS_BOOK_H */