1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * pas-backend-card-sexp.h
4 * Copyright 2000, 2001, Ximian, Inc.
7 * Chris Lahey <clahey@ximian.com>
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.
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.
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
24 #ifndef __E_BOOK_BACKEND_SEXP_H__
25 #define __E_BOOK_BACKEND_SEXP_H__
28 #include <glib-object.h>
29 #include <libebook/e-contact.h>
30 #include <libedata-book/e-data-book-types.h>
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))
41 typedef struct _EBookBackendSExpPrivate EBookBackendSExpPrivate;
43 struct _EBookBackendSExp {
44 GObject parent_object;
45 EBookBackendSExpPrivate *priv;
48 struct _EBookBackendSExpClass {
49 GObjectClass parent_class;
52 EBookBackendSExp *e_book_backend_sexp_new (const char *text);
53 GType e_book_backend_sexp_get_type (void);
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);
60 #endif /* __E_BOOK_BACKEND_SEXP_H__ */