/usr/include/evolution-data-server-3.2/libebook/e-book-client.h is in libebook1.2-dev 3.2.3-0ubuntu7.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | /*
* e-book-client.h
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the program; if not, see <http://www.gnu.org/licenses/>
*
*
* Copyright (C) 2011 Red Hat, Inc. (www.redhat.com)
*
*/
#ifndef E_BOOK_CLIENT_H
#define E_BOOK_CLIENT_H
#include <gio/gio.h>
#include <libedataserver/e-client.h>
#include <libedataserver/e-source-list.h>
#include <libebook/e-book-client-view.h>
#include <libebook/e-contact.h>
G_BEGIN_DECLS
#define E_TYPE_BOOK_CLIENT (e_book_client_get_type ())
#define E_BOOK_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_BOOK_CLIENT, EBookClient))
#define E_BOOK_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), E_TYPE_BOOK_CLIENT, EBookClientClass))
#define E_IS_BOOK_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_BOOK_CLIENT))
#define E_IS_BOOK_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_BOOK_CLIENT))
#define E_BOOK_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), E_TYPE_BOOK_CLIENT, EBookClientClass))
/**
* BOOK_BACKEND_PROPERTY_REQUIRED_FIELDS:
*
* FIXME: Document me.
*
* Since: 3.2
**/
#define BOOK_BACKEND_PROPERTY_REQUIRED_FIELDS "required-fields"
/**
* BOOK_BACKEND_PROPERTY_SUPPORTED_FIELDS:
*
* FIXME: Document me.
*
* Since: 3.2
**/
#define BOOK_BACKEND_PROPERTY_SUPPORTED_FIELDS "supported-fields"
/**
* BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS:
*
* FIXME: Document me.
*
* Since: 3.2
**/
#define BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS "supported-auth-methods"
/**
* E_BOOK_CLIENT_ERROR:
*
* FIXME: Document me.
*
* Since: 3.2
**/
#define E_BOOK_CLIENT_ERROR e_book_client_error_quark ()
GQuark e_book_client_error_quark (void) G_GNUC_CONST;
/**
* EBookClientError:
*
* FIXME: Document me.
*
* Since: 3.2
**/
typedef enum {
E_BOOK_CLIENT_ERROR_NO_SUCH_BOOK,
E_BOOK_CLIENT_ERROR_CONTACT_NOT_FOUND,
E_BOOK_CLIENT_ERROR_CONTACT_ID_ALREADY_EXISTS,
E_BOOK_CLIENT_ERROR_NO_SUCH_SOURCE,
E_BOOK_CLIENT_ERROR_NO_SPACE
} EBookClientError;
const gchar * e_book_client_error_to_string (EBookClientError code);
GError * e_book_client_error_create (EBookClientError code, const gchar *custom_msg);
typedef struct _EBookClient EBookClient;
typedef struct _EBookClientClass EBookClientClass;
typedef struct _EBookClientPrivate EBookClientPrivate;
/**
* EBookClient:
*
* Contains only private data that should be read and manipulated using the
* functions below.
*
* Since: 3.2
**/
struct _EBookClient {
EClient parent;
/*< private >*/
EBookClientPrivate *priv;
};
struct _EBookClientClass {
EClientClass parent;
};
GType e_book_client_get_type (void);
/* Creating a new addressbook */
EBookClient * e_book_client_new (ESource *source, GError **error);
EBookClient * e_book_client_new_from_uri (const gchar *uri, GError **error);
EBookClient * e_book_client_new_system (GError **error);
EBookClient * e_book_client_new_default (GError **error);
/* Addressbook discovery */
gboolean e_book_client_set_default (EBookClient *client, GError **error);
gboolean e_book_client_set_default_source (ESource *source, GError **error);
gboolean e_book_client_get_sources (ESourceList **sources, GError **error);
/* Identity */
gboolean e_book_client_get_self (EContact **contact, EBookClient **client, GError **error);
gboolean e_book_client_set_self (EBookClient *client, EContact *contact, GError **error);
gboolean e_book_client_is_self (EContact *contact);
/* Addressbook methods */
void e_book_client_add_contact (EBookClient *client, /* const */ EContact *contact, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_add_contact_finish (EBookClient *client, GAsyncResult *result, gchar **added_uid, GError **error);
gboolean e_book_client_add_contact_sync (EBookClient *client, /* const */ EContact *contact, gchar **added_uid, GCancellable *cancellable, GError **error);
void e_book_client_modify_contact (EBookClient *client, /* const */ EContact *contact, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_modify_contact_finish (EBookClient *client, GAsyncResult *result, GError **error);
gboolean e_book_client_modify_contact_sync (EBookClient *client, /* const */ EContact *contact, GCancellable *cancellable, GError **error);
void e_book_client_remove_contact (EBookClient *client, /* const */ EContact *contact, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_remove_contact_finish (EBookClient *client, GAsyncResult *result, GError **error);
gboolean e_book_client_remove_contact_sync (EBookClient *client, /* const */ EContact *contact, GCancellable *cancellable, GError **error);
void e_book_client_remove_contact_by_uid (EBookClient *client, const gchar *uid, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_remove_contact_by_uid_finish (EBookClient *client, GAsyncResult *result, GError **error);
gboolean e_book_client_remove_contact_by_uid_sync (EBookClient *client, const gchar *uid, GCancellable *cancellable, GError **error);
void e_book_client_remove_contacts (EBookClient *client, const GSList *uids, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_remove_contacts_finish (EBookClient *client, GAsyncResult *result, GError **error);
gboolean e_book_client_remove_contacts_sync (EBookClient *client, const GSList *uids, GCancellable *cancellable, GError **error);
void e_book_client_get_contact (EBookClient *client, const gchar *uid, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_get_contact_finish (EBookClient *client, GAsyncResult *result, EContact **contact, GError **error);
gboolean e_book_client_get_contact_sync (EBookClient *client, const gchar *uid, EContact **contact, GCancellable *cancellable, GError **error);
void e_book_client_get_contacts (EBookClient *client, const gchar *sexp, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_get_contacts_finish (EBookClient *client, GAsyncResult *result, GSList **contacts, GError **error);
gboolean e_book_client_get_contacts_sync (EBookClient *client, const gchar *sexp, GSList **contacts, GCancellable *cancellable, GError **error);
void e_book_client_get_contacts_uids (EBookClient *client, const gchar *sexp, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_get_contacts_uids_finish (EBookClient *client, GAsyncResult *result, GSList **contacts_uids, GError **error);
gboolean e_book_client_get_contacts_uids_sync (EBookClient *client, const gchar *sexp, GSList **contacts_uids, GCancellable *cancellable, GError **error);
void e_book_client_get_view (EBookClient *client, const gchar *sexp, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean e_book_client_get_view_finish (EBookClient *client, GAsyncResult *result, EBookClientView **view, GError **error);
gboolean e_book_client_get_view_sync (EBookClient *client, const gchar *sexp, EBookClientView **view, GCancellable *cancellable, GError **error);
G_END_DECLS
#endif /* E_BOOK_CLIENT_H */
|