[evolution-data-server/account-mgmt: 15/42] Adapt libedata-book to the new ESource API.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/account-mgmt: 15/42] Adapt libedata-book to the new ESource API.
- Date: Tue, 10 Apr 2012 14:26:33 +0000 (UTC)
commit 94e250e4d3201b29e6727d7361701e5609b24611
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Nov 12 16:48:26 2010 -0500
Adapt libedata-book to the new ESource API.
addressbook/libedata-book/e-book-backend-factory.c | 6 +-
addressbook/libedata-book/e-book-backend-sync.c | 35 -------
addressbook/libedata-book/e-book-backend-sync.h | 4 -
addressbook/libedata-book/e-book-backend.c | 83 +---------------
addressbook/libedata-book/e-book-backend.h | 3 -
addressbook/libedata-book/e-data-book-factory.c | 104 +++++++++-----------
addressbook/libedata-book/e-data-book.c | 58 -----------
addressbook/libedata-book/e-data-book.h | 1 -
addressbook/libedata-book/e-data-book.xml | 9 --
.../libedata-book/libedata-book-sections.txt | 5 -
10 files changed, 55 insertions(+), 253 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-factory.c b/addressbook/libedata-book/e-book-backend-factory.c
index a2e1341..8beda14 100644
--- a/addressbook/libedata-book/e-book-backend-factory.c
+++ b/addressbook/libedata-book/e-book-backend-factory.c
@@ -34,6 +34,7 @@ book_backend_factory_get_hash_key (EBackendFactory *factory)
static EBackend *
book_backend_factory_new_backend (EBackendFactory *factory,
+ ESourceRegistry *registry,
ESource *source)
{
EBookBackendFactoryClass *class;
@@ -42,7 +43,10 @@ book_backend_factory_new_backend (EBackendFactory *factory,
g_return_val_if_fail (g_type_is_a (
class->backend_type, E_TYPE_BOOK_BACKEND), NULL);
- return g_object_new (class->backend_type, "source", source, NULL);
+ return g_object_new (
+ class->backend_type,
+ "registry", registry,
+ "source", source, NULL);
}
static void
diff --git a/addressbook/libedata-book/e-book-backend-sync.c b/addressbook/libedata-book/e-book-backend-sync.c
index e18c3aa..53d1538 100644
--- a/addressbook/libedata-book/e-book-backend-sync.c
+++ b/addressbook/libedata-book/e-book-backend-sync.c
@@ -384,28 +384,6 @@ e_book_backend_sync_get_contact_list_uids (EBookBackendSync *backend,
}
}
-/**
- * e_book_backend_sync_authenticate_user:
- * @backend: an #EBookBackendSync
- * @cancellable: a #GCancellable for the operation
- * @credentials: an #ECredentials to authenticate with
- * @error: #GError to set, when something fails
- *
- * Authenticates @backend with given @credentials.
- **/
-void
-e_book_backend_sync_authenticate_user (EBookBackendSync *backend,
- GCancellable *cancellable,
- ECredentials *credentials,
- GError **error)
-{
- e_return_data_book_error_if_fail (E_IS_BOOK_BACKEND_SYNC (backend), E_DATA_BOOK_STATUS_INVALID_ARG);
- e_return_data_book_error_if_fail (credentials, E_DATA_BOOK_STATUS_INVALID_ARG);
- e_return_data_book_error_if_fail (E_BOOK_BACKEND_SYNC_GET_CLASS (backend)->authenticate_user_sync, E_DATA_BOOK_STATUS_NOT_SUPPORTED);
-
- (* E_BOOK_BACKEND_SYNC_GET_CLASS (backend)->authenticate_user_sync) (backend, cancellable, credentials, error);
-}
-
static void
book_backend_open (EBookBackend *backend,
EDataBook *book,
@@ -587,18 +565,6 @@ book_backend_get_contact_list_uids (EBookBackend *backend,
g_slist_free (uids);
}
-static void
-book_backend_authenticate_user (EBookBackend *backend,
- GCancellable *cancellable,
- ECredentials *credentials)
-{
- GError *error = NULL;
-
- e_book_backend_sync_authenticate_user (E_BOOK_BACKEND_SYNC (backend), cancellable, credentials, &error);
-
- e_book_backend_notify_opened (backend, error);
-}
-
static gboolean
book_backend_sync_get_backend_property (EBookBackendSync *backend,
EDataBook *book,
@@ -634,7 +600,6 @@ e_book_backend_sync_class_init (EBookBackendSyncClass *class)
EBookBackendClass *backend_class = E_BOOK_BACKEND_CLASS (class);
backend_class->open = book_backend_open;
- backend_class->authenticate_user = book_backend_authenticate_user;
backend_class->remove = book_backend_remove;
backend_class->refresh = book_backend_refresh;
backend_class->get_backend_property = book_backend_get_backend_property;
diff --git a/addressbook/libedata-book/e-book-backend-sync.h b/addressbook/libedata-book/e-book-backend-sync.h
index de27624..770e5d8 100644
--- a/addressbook/libedata-book/e-book-backend-sync.h
+++ b/addressbook/libedata-book/e-book-backend-sync.h
@@ -39,8 +39,6 @@ struct _EBookBackendSyncClass {
void (*get_contact_sync) (EBookBackendSync *backend, EDataBook *book, GCancellable *cancellable, const gchar *id, gchar **vcard, GError **error);
void (*get_contact_list_sync) (EBookBackendSync *backend, EDataBook *book, GCancellable *cancellable, const gchar *query, GSList **contacts, GError **error);
void (*get_contact_list_uids_sync) (EBookBackendSync *backend, EDataBook *book, GCancellable *cancellable, const gchar *query, GSList **contacts_uids, GError **error);
-
- void (*authenticate_user_sync) (EBookBackendSync *backend, GCancellable *cancellable, ECredentials *credentials, GError **error);
};
GType e_book_backend_sync_get_type (void);
@@ -59,8 +57,6 @@ void e_book_backend_sync_get_contact (EBookBackendSync *backend, EDataBook *bo
void e_book_backend_sync_get_contact_list (EBookBackendSync *backend, EDataBook *book, GCancellable *cancellable, const gchar *query, GSList **contacts, GError **error);
void e_book_backend_sync_get_contact_list_uids (EBookBackendSync *backend, EDataBook *book, GCancellable *cancellable, const gchar *query, GSList **contacts_uids, GError **error);
-void e_book_backend_sync_authenticate_user (EBookBackendSync *backend, GCancellable *cancellable, ECredentials *credentials, GError **error);
-
G_END_DECLS
#endif /* __E_BOOK_BACKEND_SYNC_H__ */
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index 4787c6f..90918dc 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -48,21 +48,19 @@ book_backend_set_default_cache_dir (EBookBackend *backend)
{
ESource *source;
const gchar *user_cache_dir;
- gchar *mangled_uri;
+ const gchar *uid;
gchar *filename;
user_cache_dir = e_get_user_cache_dir ();
source = e_backend_get_source (E_BACKEND (backend));
- /* Mangle the URI to not contain invalid characters. */
- mangled_uri = g_strdelimit (e_source_get_uri (source), ":/", '_');
+ uid = e_source_get_uid (source);
+ g_return_if_fail (uid != NULL);
filename = g_build_filename (
- user_cache_dir, "addressbook", mangled_uri, NULL);
+ user_cache_dir, "addressbook", uid, NULL);
e_book_backend_set_cache_dir (backend, filename);
g_free (filename);
-
- g_free (mangled_uri);
}
static void
@@ -667,37 +665,6 @@ e_book_backend_stop_book_view (EBookBackend *backend,
}
/**
- * e_book_backend_authenticate_user:
- * @backend: an #EBookBackend
- * @cancellable: a #GCancellable for the operation
- * @credentials: #ECredentials to use for authentication
- *
- * Notifies @backend about @credentials provided by user to use
- * for authentication. This notification is usually called during
- * opening phase as a response to e_book_backend_notify_auth_required()
- * on the client side and it results in setting property 'opening' to %TRUE
- * unless the backend is already opened. This function finishes opening
- * phase, thus it should be finished with e_book_backend_notify_opened().
- *
- * See information at e_book_backend_open() for more details
- * how the opening phase works.
- **/
-void
-e_book_backend_authenticate_user (EBookBackend *backend,
- GCancellable *cancellable,
- ECredentials *credentials)
-{
- g_return_if_fail (E_IS_BOOK_BACKEND (backend));
- g_return_if_fail (credentials != NULL);
- g_return_if_fail (E_BOOK_BACKEND_GET_CLASS (backend)->authenticate_user);
-
- if (backend->priv->opened)
- backend->priv->opening = TRUE;
-
- (* E_BOOK_BACKEND_GET_CLASS (backend)->authenticate_user) (backend, cancellable, credentials);
-}
-
-/**
* e_book_backend_add_book_view:
* @backend: an #EBookBackend
* @view: an #EDataBookView
@@ -1168,48 +1135,6 @@ e_book_backend_notify_online (EBookBackend *backend,
}
/**
- * e_book_backend_notify_auth_required:
- * @backend: an #EBookBackend
- * @is_self: Use %TRUE to indicate the authentication is required
- * for the @backend, otheriwse the authentication is for any
- * other source. Having @credentials %NULL means @is_self
- * automatically.
- * @credentials: an #ECredentials that contains extra information for
- * a source for which authentication is requested.
- * This parameter can be %NULL to indicate "for this book".
- *
- * Notifies clients that @backend requires authentication in order to
- * connect. This function call does not influence 'opening', but
- * influences 'opened' property, which is set to %FALSE when @is_self
- * is %TRUE or @credentials is %NULL. Opening phase is finished
- * by e_book_backend_notify_opened() if this is requested for @backend.
- *
- * See e_book_backend_open() for a description how the whole opening
- * phase works.
- *
- * Meant to be used by backend implementations.
- **/
-void
-e_book_backend_notify_auth_required (EBookBackend *backend,
- gboolean is_self,
- const ECredentials *credentials)
-{
- EBookBackendPrivate *priv;
- GSList *clients;
-
- priv = backend->priv;
- g_mutex_lock (priv->clients_mutex);
-
- if (is_self || !credentials)
- priv->opened = FALSE;
-
- for (clients = priv->clients; clients != NULL; clients = g_slist_next (clients))
- e_data_book_report_auth_required (E_DATA_BOOK (clients->data), credentials);
-
- g_mutex_unlock (priv->clients_mutex);
-}
-
-/**
* e_book_backend_notify_opened:
* @backend: an #EBookBackend
* @error: a #GError corresponding to the error encountered during
diff --git a/addressbook/libedata-book/e-book-backend.h b/addressbook/libedata-book/e-book-backend.h
index 7973876..9487f12 100644
--- a/addressbook/libedata-book/e-book-backend.h
+++ b/addressbook/libedata-book/e-book-backend.h
@@ -148,7 +148,6 @@ struct _EBookBackendClass {
void (* open) (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable, gboolean only_if_exists);
void (* remove) (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable);
- void (* authenticate_user) (EBookBackend *backend, GCancellable *cancellable, ECredentials *credentials);
void (* refresh) (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable);
void (* create_contacts) (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable, const GSList *vcards);
@@ -180,7 +179,6 @@ gboolean e_book_backend_is_opened (EBookBackend *backend);
gboolean e_book_backend_is_opening (EBookBackend *backend);
gboolean e_book_backend_is_readonly (EBookBackend *backend);
gboolean e_book_backend_is_removed (EBookBackend *backend);
-void e_book_backend_authenticate_user (EBookBackend *backend, GCancellable *cancellable, ECredentials *credentials);
void e_book_backend_get_backend_property (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable, const gchar *prop_name);
void e_book_backend_set_backend_property (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable, const gchar *prop_name, const gchar *prop_value);
@@ -208,7 +206,6 @@ void e_book_backend_notify_complete (EBookBackend *backend);
void e_book_backend_notify_error (EBookBackend *backend, const gchar *message);
void e_book_backend_notify_readonly (EBookBackend *backend, gboolean is_readonly);
void e_book_backend_notify_online (EBookBackend *backend, gboolean is_online);
-void e_book_backend_notify_auth_required (EBookBackend *backend, gboolean is_self, const ECredentials *credentials);
void e_book_backend_notify_opened (EBookBackend *backend, GError *error);
void e_book_backend_notify_property_changed (EBookBackend *backend, const gchar *prop_name, const gchar *prop_value);
diff --git a/addressbook/libedata-book/e-data-book-factory.c b/addressbook/libedata-book/e-data-book-factory.c
index 96ee3c8..46a08e8 100644
--- a/addressbook/libedata-book/e-data-book-factory.c
+++ b/addressbook/libedata-book/e-data-book-factory.c
@@ -35,6 +35,8 @@
#define GOA_KEY "goa-account-id"
#endif
+#include <libedataserver/e-source-address-book.h>
+
#include "e-book-backend.h"
#include "e-book-backend-factory.h"
#include "e-data-book.h"
@@ -67,39 +69,43 @@ struct _EDataBookFactoryPrivate {
#endif
};
-static gchar *
-e_data_book_factory_extract_proto_from_uri (const gchar *uri)
-{
- gchar *proto, *cp;
-
- cp = strchr (uri, ':');
- if (cp == NULL)
- return NULL;
-
- proto = g_malloc0 (cp - uri + 1);
- strncpy (proto, uri, cp - uri);
-
- return proto;
-}
-
static EBackend *
-e_data_book_factory_get_backend (EDataBookFactory *factory,
+e_data_book_factory_get_backend (EDataFactory *factory,
ESource *source,
- const gchar *uri)
+ GError **error)
{
EBackend *backend;
- gchar *hash_key;
+ ESourceBackend *extension;
+ const gchar *extension_name;
+ gchar *backend_name;
+
+ /* For address books the hash key is simply the backend name.
+ * (cf. calendar hash keys, which are slightly more complex) */
- hash_key = e_data_book_factory_extract_proto_from_uri (uri);
- if (hash_key == NULL) {
- g_warning ("Cannot extract protocol from URI %s", uri);
+ extension_name = E_SOURCE_EXTENSION_ADDRESS_BOOK;
+ extension = e_source_get_extension (source, extension_name);
+ backend_name = e_source_backend_dup_backend_name (extension);
+
+ if (backend_name == NULL || *backend_name == '\0') {
+ g_set_error (
+ error, E_DATA_BOOK_ERROR,
+ E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
+ _("No backend name in source '%s'"),
+ e_source_get_display_name (source));
+ g_free (backend_name);
return NULL;
}
- backend = e_data_factory_get_backend (
- E_DATA_FACTORY (factory), hash_key, source);
+ backend = e_data_factory_get_backend (factory, backend_name, source);
- g_free (hash_key);
+ if (backend == NULL)
+ g_set_error (
+ error, E_DATA_BOOK_ERROR,
+ E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
+ _("Invalid backend name '%s' in source '%s'"),
+ backend_name, e_source_get_display_name (source));
+
+ g_free (backend_name);
return backend;
}
@@ -160,16 +166,16 @@ book_freed_cb (EDataBookFactory *factory,
static gboolean
impl_BookFactory_get_book (EGdbusBookFactory *object,
GDBusMethodInvocation *invocation,
- const gchar *in_source,
+ const gchar *uid,
EDataBookFactory *factory)
{
EDataBook *book;
EBackend *backend;
EDataBookFactoryPrivate *priv = factory->priv;
GDBusConnection *connection;
+ ESourceRegistry *registry;
ESource *source;
gchar *path;
- gchar *uri;
const gchar *sender;
GList *list;
GError *error = NULL;
@@ -177,66 +183,50 @@ impl_BookFactory_get_book (EGdbusBookFactory *object,
sender = g_dbus_method_invocation_get_sender (invocation);
connection = g_dbus_method_invocation_get_connection (invocation);
- if (in_source == NULL || in_source[0] == '\0') {
- error = g_error_new (
- E_DATA_BOOK_ERROR,
- E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
- _("Empty URI"));
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
-
- return TRUE;
- }
+ registry = e_data_factory_get_registry (E_DATA_FACTORY (factory));
- source = e_source_new_from_standalone_xml (in_source);
- if (!source) {
- error = g_error_new (
+ if (uid == NULL || *uid == '\0') {
+ error = g_error_new_literal (
E_DATA_BOOK_ERROR,
E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
- _("Invalid source"));
+ _("Missing source UID"));
g_dbus_method_invocation_return_gerror (invocation, error);
g_error_free (error);
return TRUE;
}
- uri = e_source_get_uri (source);
-
- if (uri == NULL || *uri == '\0') {
- g_object_unref (source);
- g_free (uri);
+ source = e_source_registry_ref_source (registry, uid);
+ if (source == NULL) {
error = g_error_new (
E_DATA_BOOK_ERROR,
E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
- _("Empty URI"));
+ _("No such source for UID '%s'"), uid);
g_dbus_method_invocation_return_gerror (invocation, error);
g_error_free (error);
return TRUE;
}
- backend = e_data_book_factory_get_backend (factory, source, uri);
+ backend = e_data_book_factory_get_backend (
+ E_DATA_FACTORY (factory), source, &error);
- if (backend == NULL) {
- g_free (uri);
- g_object_unref (source);
+ g_object_unref (source);
- error = g_error_new (
- E_DATA_BOOK_ERROR,
- E_DATA_BOOK_STATUS_NO_SUCH_BOOK,
- _("Invalid source"));
+ if (error != NULL) {
g_dbus_method_invocation_return_gerror (invocation, error);
g_error_free (error);
return TRUE;
}
- g_mutex_lock (priv->books_lock);
+ g_return_val_if_fail (E_IS_BACKEND (backend), FALSE);
e_dbus_server_hold (E_DBUS_SERVER (factory));
#ifdef HAVE_GOA
+#if 0 /* ACCOUNT_MGMT */
{
GoaObject *goa_object = NULL;
const gchar *goa_account_id;
@@ -255,6 +245,7 @@ impl_BookFactory_get_book (EGdbusBookFactory *object,
g_object_ref (goa_object),
(GDestroyNotify) g_object_unref);
}
+#endif /* ACCOUNT_MGMT */
#endif
path = construct_book_factory_path ();
@@ -275,9 +266,6 @@ impl_BookFactory_get_book (EGdbusBookFactory *object,
g_mutex_unlock (priv->books_lock);
- g_object_unref (source);
- g_free (uri);
-
e_gdbus_book_factory_complete_get_book (
object, invocation, path, error);
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 03d7506..873eba3 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -65,7 +65,6 @@ typedef enum {
OP_GET_CONTACT,
OP_GET_CONTACTS,
OP_GET_CONTACTS_UIDS,
- OP_AUTHENTICATE,
OP_ADD_CONTACTS,
OP_REMOVE_CONTACTS,
OP_MODIFY_CONTACTS,
@@ -88,8 +87,6 @@ typedef struct {
gboolean only_if_exists;
/* OP_GET_CONTACT */
gchar *uid;
- /* OP_AUTHENTICATE */
- ECredentials *credentials;
/* OP_REMOVE_CONTACTS */
GSList *ids;
/* OP_ADD_CONTACT */
@@ -233,10 +230,6 @@ operation_thread (gpointer data,
}
g_free (op->d.query);
break;
- case OP_AUTHENTICATE:
- e_book_backend_authenticate_user (backend, op->cancellable, op->d.credentials);
- e_credentials_free (op->d.credentials);
- break;
case OP_CANCEL_OPERATION:
g_static_rec_mutex_lock (&op->book->priv->pending_ops_lock);
@@ -746,31 +739,6 @@ impl_Book_get_view (EGdbusBook *object,
}
static gboolean
-impl_Book_authenticate_user (EGdbusBook *object,
- GDBusMethodInvocation *invocation,
- const gchar * const *in_credentials,
- EDataBook *book)
-{
- OperationData *op;
-
- if (in_credentials == NULL) {
- GError *error = e_data_book_create_error (E_DATA_BOOK_STATUS_INVALID_ARG, NULL);
- /* Translators: This is prefix to a detailed error message */
- data_book_return_error (invocation, error, _("Cannot authenticate user: "));
- g_error_free (error);
- return TRUE;
- }
-
- op = op_new (OP_AUTHENTICATE, book);
- op->d.credentials = e_credentials_new_strv (in_credentials);
-
- e_gdbus_book_complete_authenticate_user (book->priv->gdbus_object, invocation, NULL);
- e_operation_pool_push (ops_pool, op);
-
- return TRUE;
-}
-
-static gboolean
impl_Book_cancel_operation (EGdbusBook *object,
GDBusMethodInvocation *invocation,
guint in_opid,
@@ -1163,29 +1131,6 @@ e_data_book_report_online (EDataBook *book,
e_gdbus_book_emit_online (book->priv->gdbus_object, is_online);
}
-/* credentilas contains extra information for a source for which authentication is requested.
- * This parameter can be NULL to indicate "for this book".
-*/
-void
-e_data_book_report_auth_required (EDataBook *book,
- const ECredentials *credentials)
-{
- gchar *empty_strv[2];
- gchar **strv = NULL;
-
- g_return_if_fail (book != NULL);
-
- empty_strv[0] = NULL;
- empty_strv[1] = NULL;
-
- if (credentials)
- strv = e_credentials_to_strv (credentials);
-
- e_gdbus_book_emit_auth_required (book->priv->gdbus_object, (const gchar * const *) (strv ? strv : empty_strv));
-
- g_strfreev (strv);
-}
-
/**
* e_data_book_report_opened:
*
@@ -1404,9 +1349,6 @@ e_data_book_init (EDataBook *ebook)
gdbus_object, "handle-get-contact-list-uids",
G_CALLBACK (impl_Book_get_contact_list_uids), ebook);
g_signal_connect (
- gdbus_object, "handle-authenticate-user",
- G_CALLBACK (impl_Book_authenticate_user), ebook);
- g_signal_connect (
gdbus_object, "handle-add-contacts",
G_CALLBACK (impl_Book_add_contacts), ebook);
g_signal_connect (
diff --git a/addressbook/libedata-book/e-data-book.h b/addressbook/libedata-book/e-data-book.h
index 2bd6d65..471c3c0 100644
--- a/addressbook/libedata-book/e-data-book.h
+++ b/addressbook/libedata-book/e-data-book.h
@@ -146,7 +146,6 @@ void e_data_book_respond_get_contact_list_uids (EDataBook *book, guint32 opid,
void e_data_book_report_error (EDataBook *book, const gchar *message);
void e_data_book_report_readonly (EDataBook *book, gboolean readonly);
void e_data_book_report_online (EDataBook *book, gboolean is_online);
-void e_data_book_report_auth_required (EDataBook *book, const ECredentials *credentials);
void e_data_book_report_opened (EDataBook *book, const GError *error);
void e_data_book_report_backend_property_changed (EDataBook *book, const gchar *prop_name, const gchar *prop_value);
diff --git a/addressbook/libedata-book/e-data-book.xml b/addressbook/libedata-book/e-data-book.xml
index 8be711e..d6595a0 100644
--- a/addressbook/libedata-book/e-data-book.xml
+++ b/addressbook/libedata-book/e-data-book.xml
@@ -17,7 +17,6 @@
<signal name="connection">
<arg name="connected" type="b"/>
</signal>
- <signal name="auth_required"/>
<method name="open">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_AddressBook_Book_open"/>
@@ -44,14 +43,6 @@
<arg name="vcards" type="as" direction="out"/>
</method>
- <method name="authenticateUser">
- <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_AddressBook_Book_authenticateUser"/>
- <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
- <arg name="user" type="s" direction="in"/>
- <arg name="passwd" type="s" direction="in"/>
- <arg name="auth_method" type="s" direction="in"/>
- </method>
-
<method name="addContact">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_AddressBook_Book_addContact"/>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
diff --git a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
index 8a17ae2..9e26295 100644
--- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
+++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
@@ -20,7 +20,6 @@ e_book_backend_is_opened
e_book_backend_is_opening
e_book_backend_is_readonly
e_book_backend_is_removed
-e_book_backend_authenticate_user
e_book_backend_get_backend_property
e_book_backend_set_backend_property
e_book_backend_open
@@ -32,7 +31,6 @@ e_book_backend_modify_contacts
e_book_backend_get_contact
e_book_backend_get_contact_list
e_book_backend_get_contact_list_uids
-e_book_backend_authenticate_user
e_book_backend_start_book_view
e_book_backend_stop_book_view
e_book_backend_add_book_view
@@ -44,7 +42,6 @@ e_book_backend_notify_complete
e_book_backend_notify_error
e_book_backend_notify_readonly
e_book_backend_notify_online
-e_book_backend_notify_auth_required
e_book_backend_notify_opened
e_book_backend_notify_property_changed
e_book_backend_sync
@@ -244,7 +241,6 @@ e_book_backend_sync_modify_contacts
e_book_backend_sync_get_contact
e_book_backend_sync_get_contact_list
e_book_backend_sync_get_contact_list_uids
-e_book_backend_sync_authenticate_user
<SUBSECTION Standard>
E_BOOK_BACKEND_SYNC
E_IS_BOOK_BACKEND_SYNC
@@ -285,7 +281,6 @@ e_data_book_respond_get_contact_list_uids
e_data_book_report_error
e_data_book_report_readonly
e_data_book_report_online
-e_data_book_report_auth_required
e_data_book_report_opened
e_data_book_report_backend_property_changed
e_data_book_string_slist_to_comma_string
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]