Use e_data_book_respond_open() instead.
e_book_backend_notify_online (E_BOOK_BACKEND (backend), TRUE);
e_book_backend_notify_readonly (E_BOOK_BACKEND (backend), FALSE);
- e_book_backend_notify_opened (E_BOOK_BACKEND (backend), NULL /* Success */);
}
static gboolean
e_book_backend_notify_readonly (backend, FALSE);
cache_refresh_if_needed (backend);
}
-
- e_book_backend_notify_opened (backend, NULL /* Success */);
}
/* This function frees the GError passed to it. */
* Meant to be used by backend implementations.
*
* Since: 3.2
+ *
+ * Deprecated: 3.8: Use e_data_book_respond_open() instead.
**/
void
e_book_backend_notify_opened (EBookBackend *backend,
guint32 opid,
GError *error)
{
- GError *copy = NULL;
-
g_return_if_fail (backend != NULL);
g_return_if_fail (E_IS_BOOK_BACKEND (backend));
g_return_if_fail (book != NULL);
g_return_if_fail (opid != 0);
- if (error)
- copy = g_error_copy (error);
-
- e_book_backend_notify_opened (backend, copy);
e_data_book_respond_open (book, opid, error);
}
gboolean is_readonly);
void e_book_backend_notify_online (EBookBackend *backend,
gboolean is_online);
-void e_book_backend_notify_opened (EBookBackend *backend,
- GError *error);
void e_book_backend_notify_property_changed
(EBookBackend *backend,
const gchar *prop_name,
gboolean (*callback) (EDataBookView *view,
gpointer user_data),
gpointer user_data);
+void e_book_backend_notify_opened (EBookBackend *backend,
+ GError *error);
#endif /* EDS_DISABLE_DEPRECATED */
G_END_DECLS
guint opid,
GError *error)
{
+ GError *copy = NULL;
+
g_return_if_fail (E_IS_DATA_BOOK (book));
op_complete (book, opid);
/* Translators: This is prefix to a detailed error message */
g_prefix_error (&error, "%s", _("Cannot open book: "));
+ /* This function is deprecated, but it's the only way to
+ * set EBookBackend's internal 'opened' flag. We should
+ * be the only ones calling this. */
+ if (error != NULL)
+ copy = g_error_copy (error);
+ e_book_backend_notify_opened (book->priv->backend, copy);
+
e_gdbus_book_emit_open_done (book->priv->dbus_interface, opid, error);
if (error != NULL)
e_book_backend_notify_error
e_book_backend_notify_readonly
e_book_backend_notify_online
-e_book_backend_notify_opened
e_book_backend_notify_property_changed
e_book_backend_sync
e_book_backend_set_is_removed
e_book_backend_is_opening
e_book_backend_set_backend_property
e_book_backend_foreach_view
+e_book_backend_notify_opened
<SUBSECTION Standard>
E_BOOK_BACKEND
E_IS_BOOK_BACKEND