Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / addressbook / libedata-book / e-book-backend-sexp.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* 
3  * pas-backend-card-sexp.h
4  * Copyright 2000, 2001, Ximian, Inc.
5  *
6  * Authors:
7  *   Chris Lahey <clahey@ximian.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License, version 2, as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301, USA.
22  */
23
24 #ifndef __E_BOOK_BACKEND_SEXP_H__
25 #define __E_BOOK_BACKEND_SEXP_H__
26
27 #include <glib.h>
28 #include <glib-object.h>
29 #include <libebook/e-contact.h>
30 #include <libedata-book/e-data-book-types.h>
31
32 G_BEGIN_DECLS
33
34 #define E_TYPE_BACKEND_SEXP        (e_book_backend_sexp_get_type ())
35 #define E_BOOK_BACKEND_SEXP(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_BACKEND_SEXP, EBookBackendSExp))
36 #define E_BOOK_BACKEND_SEXP_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), E_BOOK_BACKEND_TYPE, EBookBackendSExpClass))
37 #define E_IS_BACKEND_SEXP(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_BACKEND_SEXP))
38 #define E_IS_BACKEND_SEXP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_BACKEND_SEXP))
39 #define E_BOOK_BACKEND_SEXP_GET_CLASS(k) (G_TYPE_INSTANCE_GET_CLASS ((obj), E_TYPE_BACKEND_SEXP, EBookBackendSExpClass))
40
41 typedef struct _EBookBackendSExpPrivate EBookBackendSExpPrivate;
42
43 struct _EBookBackendSExp {
44         GObject parent_object;
45         EBookBackendSExpPrivate *priv;
46 };
47
48 struct _EBookBackendSExpClass {
49         GObjectClass parent_class;
50 };
51
52 EBookBackendSExp *e_book_backend_sexp_new      (const char *text);
53 GType               e_book_backend_sexp_get_type (void);
54
55 gboolean            e_book_backend_sexp_match_vcard (EBookBackendSExp *sexp, const char *vcard);
56 gboolean            e_book_backend_sexp_match_contact (EBookBackendSExp *sexp, EContact *contact);
57
58 G_END_DECLS
59
60 #endif /* __E_BOOK_BACKEND_SEXP_H__ */