/usr/include/evolution-data-server/libedata-book/e-book-meta-backend.h is in libedata-book1.2-dev 3.28.1-1ubuntu1.
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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2017 Red Hat, Inc. (www.redhat.com)
*
* This library 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.
*
* This library 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 this library. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined (__LIBEDATA_BOOK_H_INSIDE__) && !defined (LIBEDATA_BOOK_COMPILATION)
#error "Only <libedata-book/libedata-book.h> should be included directly."
#endif
#ifndef E_BOOK_META_BACKEND_H
#define E_BOOK_META_BACKEND_H
#include <libebackend/libebackend.h>
#include <libedata-book/e-book-backend.h>
#include <libedata-book/e-book-cache.h>
#include <libebook-contacts/libebook-contacts.h>
/* Standard GObject macros */
#define E_TYPE_BOOK_META_BACKEND \
(e_book_meta_backend_get_type ())
#define E_BOOK_META_BACKEND(obj) \
(G_TYPE_CHECK_INSTANCE_CAST \
((obj), E_TYPE_BOOK_META_BACKEND, EBookMetaBackend))
#define E_BOOK_META_BACKEND_CLASS(cls) \
(G_TYPE_CHECK_CLASS_CAST \
((cls), E_TYPE_BOOK_META_BACKEND, EBookMetaBackendClass))
#define E_IS_BOOK_META_BACKEND(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE \
((obj), E_TYPE_BOOK_META_BACKEND))
#define E_IS_BOOK_META_BACKEND_CLASS(cls) \
(G_TYPE_CHECK_CLASS_TYPE \
((cls), E_TYPE_BOOK_META_BACKEND))
#define E_BOOK_META_BACKEND_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS \
((obj), E_TYPE_BOOK_META_BACKEND, EBookMetaBackendClass))
G_BEGIN_DECLS
typedef struct _EBookMetaBackendInfo {
gchar *uid;
gchar *revision;
gchar *object;
gchar *extra;
} EBookMetaBackendInfo;
#define E_TYPE_BOOK_META_BACKEND_INFO (e_book_meta_backend_info_get_type ())
GType e_book_meta_backend_info_get_type
(void) G_GNUC_CONST;
EBookMetaBackendInfo *
e_book_meta_backend_info_new (const gchar *uid,
const gchar *revision,
const gchar *object,
const gchar *extra);
EBookMetaBackendInfo *
e_book_meta_backend_info_copy (const EBookMetaBackendInfo *src);
void e_book_meta_backend_info_free (gpointer ptr /* EBookMetaBackendInfo * */);
typedef struct _EBookMetaBackend EBookMetaBackend;
typedef struct _EBookMetaBackendClass EBookMetaBackendClass;
typedef struct _EBookMetaBackendPrivate EBookMetaBackendPrivate;
/**
* EBookMetaBackend:
*
* Contains only private data that should be read and manipulated using
* the functions below.
*
* Since: 3.26
**/
struct _EBookMetaBackend {
/*< private >*/
EBookBackend parent;
EBookMetaBackendPrivate *priv;
};
/**
* EBookMetaBackendClass:
*
* Class structure for the #EBookMetaBackend class.
*
* Since: 3.26
*/
struct _EBookMetaBackendClass {
/*< private >*/
EBookBackendClass parent_class;
/* For Direct Read Access */
const gchar *backend_module_filename;
const gchar *backend_factory_type_name;
/* Virtual methods */
gboolean (* connect_sync) (EBookMetaBackend *meta_backend,
const ENamedParameters *credentials,
ESourceAuthenticationResult *out_auth_result,
gchar **out_certificate_pem,
GTlsCertificateFlags *out_certificate_errors,
GCancellable *cancellable,
GError **error);
gboolean (* disconnect_sync) (EBookMetaBackend *meta_backend,
GCancellable *cancellable,
GError **error);
gboolean (* get_changes_sync) (EBookMetaBackend *meta_backend,
const gchar *last_sync_tag,
gboolean is_repeat,
gchar **out_new_sync_tag,
gboolean *out_repeat,
GSList **out_created_objects, /* EBookMetaBackendInfo * */
GSList **out_modified_objects, /* EBookMetaBackendInfo * */
GSList **out_removed_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean (* list_existing_sync) (EBookMetaBackend *meta_backend,
gchar **out_new_sync_tag,
GSList **out_existing_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean (* load_contact_sync) (EBookMetaBackend *meta_backend,
const gchar *uid,
const gchar *extra,
EContact **out_contact,
gchar **out_extra,
GCancellable *cancellable,
GError **error);
gboolean (* save_contact_sync) (EBookMetaBackend *meta_backend,
gboolean overwrite_existing,
EConflictResolution conflict_resolution,
/* const */ EContact *contact,
const gchar *extra,
gchar **out_new_uid,
gchar **out_new_extra,
GCancellable *cancellable,
GError **error);
gboolean (* remove_contact_sync) (EBookMetaBackend *meta_backend,
EConflictResolution conflict_resolution,
const gchar *uid,
const gchar *extra,
const gchar *object,
GCancellable *cancellable,
GError **error);
gboolean (* search_sync) (EBookMetaBackend *meta_backend,
const gchar *expr,
gboolean meta_contact,
GSList **out_contacts, /* EContact * */
GCancellable *cancellable,
GError **error);
gboolean (* search_uids_sync) (EBookMetaBackend *meta_backend,
const gchar *expr,
GSList **out_uids, /* gchar * */
GCancellable *cancellable,
GError **error);
gboolean (* requires_reconnect) (EBookMetaBackend *meta_backend);
/* Signals */
void (* source_changed) (EBookMetaBackend *meta_backend);
gboolean (* get_ssl_error_details)
(EBookMetaBackend *meta_backend,
gchar **out_certificate_pem,
GTlsCertificateFlags *out_certificate_errors);
/* Padding for future expansion */
gpointer reserved[9];
};
GType e_book_meta_backend_get_type (void) G_GNUC_CONST;
const gchar * e_book_meta_backend_get_capabilities
(EBookMetaBackend *meta_backend);
void e_book_meta_backend_set_ever_connected
(EBookMetaBackend *meta_backend,
gboolean value);
gboolean e_book_meta_backend_get_ever_connected
(EBookMetaBackend *meta_backend);
void e_book_meta_backend_set_connected_writable
(EBookMetaBackend *meta_backend,
gboolean value);
gboolean e_book_meta_backend_get_connected_writable
(EBookMetaBackend *meta_backend);
gchar * e_book_meta_backend_dup_sync_tag(EBookMetaBackend *meta_backend);
void e_book_meta_backend_set_cache (EBookMetaBackend *meta_backend,
EBookCache *cache);
EBookCache * e_book_meta_backend_ref_cache (EBookMetaBackend *meta_backend);
gboolean e_book_meta_backend_inline_local_photos_sync
(EBookMetaBackend *meta_backend,
EContact *contact,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_store_inline_photos_sync
(EBookMetaBackend *meta_backend,
EContact *contact,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_empty_cache_sync
(EBookMetaBackend *meta_backend,
GCancellable *cancellable,
GError **error);
void e_book_meta_backend_schedule_refresh
(EBookMetaBackend *meta_backend);
gboolean e_book_meta_backend_refresh_sync
(EBookMetaBackend *meta_backend,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_ensure_connected_sync
(EBookMetaBackend *meta_backend,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_split_changes_sync
(EBookMetaBackend *meta_backend,
GSList *objects, /* EBookMetaBackendInfo * */
GSList **out_created_objects, /* EBookMetaBackendInfo * */
GSList **out_modified_objects, /* EBookMetaBackendInfo * */
GSList **out_removed_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_process_changes_sync
(EBookMetaBackend *meta_backend,
const GSList *created_objects, /* EBookMetaBackendInfo * */
const GSList *modified_objects, /* EBookMetaBackendInfo * */
const GSList *removed_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_connect_sync(EBookMetaBackend *meta_backend,
const ENamedParameters *credentials,
ESourceAuthenticationResult *out_auth_result,
gchar **out_certificate_pem,
GTlsCertificateFlags *out_certificate_errors,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_disconnect_sync
(EBookMetaBackend *meta_backend,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_get_changes_sync
(EBookMetaBackend *meta_backend,
const gchar *last_sync_tag,
gboolean is_repeat,
gchar **out_new_sync_tag,
gboolean *out_repeat,
GSList **out_created_objects, /* EBookMetaBackendInfo * */
GSList **out_modified_objects, /* EBookMetaBackendInfo * */
GSList **out_removed_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_list_existing_sync
(EBookMetaBackend *meta_backend,
gchar **out_new_sync_tag,
GSList **out_existing_objects, /* EBookMetaBackendInfo * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_load_contact_sync
(EBookMetaBackend *meta_backend,
const gchar *uid,
const gchar *extra,
EContact **out_contact,
gchar **out_extra,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_save_contact_sync
(EBookMetaBackend *meta_backend,
gboolean overwrite_existing,
EConflictResolution conflict_resolution,
/* const */ EContact *contact,
const gchar *extra,
gchar **out_new_uid,
gchar **out_new_extra,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_remove_contact_sync
(EBookMetaBackend *meta_backend,
EConflictResolution conflict_resolution,
const gchar *uid,
const gchar *extra,
const gchar *object,
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_search_sync (EBookMetaBackend *meta_backend,
const gchar *expr,
gboolean meta_contact,
GSList **out_contacts, /* EContact * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_search_uids_sync
(EBookMetaBackend *meta_backend,
const gchar *expr,
GSList **out_uids, /* gchar * */
GCancellable *cancellable,
GError **error);
gboolean e_book_meta_backend_requires_reconnect
(EBookMetaBackend *meta_backend);
gboolean e_book_meta_backend_get_ssl_error_details
(EBookMetaBackend *meta_backend,
gchar **out_certificate_pem,
GTlsCertificateFlags *out_certificate_errors);
G_END_DECLS
#endif /* E_BOOK_META_BACKEND_H */
|