1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* e-book-backend-ldap.h - LDAP contact backend.
5 * Copyright (C) 2005 Novell, Inc.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
21 * Authors: Chris Toshok <toshok@ximian.com>
22 * Hans Petter Jansson <hpj@novell.com>
25 #ifndef __E_BOOK_BACKEND_LDAP_H__
26 #define __E_BOOK_BACKEND_LDAP_H__
28 #include <libedata-book/e-book-backend.h>
30 #define E_TYPE_BOOK_BACKEND_LDAP (e_book_backend_ldap_get_type ())
31 #define E_BOOK_BACKEND_LDAP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_BOOK_BACKEND_LDAP, EBookBackendLDAP))
32 #define E_BOOK_BACKEND_LDAP_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TYPE_BOOK_BACKEND_LDAP, EBookBackendLDAPClass))
33 #define E_IS_BOOK_BACKEND_LDAP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_BOOK_BACKEND_LDAP))
34 #define E_IS_BOOK_BACKEND_LDAP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_BOOK_BACKEND_LDAP))
35 #define E_BOOK_BACKEND_LDAP_GET_CLASS(k) (G_TYPE_INSTANCE_GET_CLASS ((obj), E_TYPE_BOOK_BACKEND_LDAP, EBookBackendLDAPClass))
37 typedef struct _EBookBackendLDAPPrivate EBookBackendLDAPPrivate;
40 EBookBackend parent_object;
41 EBookBackendLDAPPrivate *priv;
45 EBookBackendClass parent_class;
46 } EBookBackendLDAPClass;
48 EBookBackend *e_book_backend_ldap_new (void);
49 GType e_book_backend_ldap_get_type (void);
51 #endif /* ! __E_BOOK_BACKEND_LDAP_H__ */