This always returns TRUE now.
return removed;
}
-static gpointer
-cbc_reopen_book_client_thread (gpointer user_data)
-{
- EBookClient *book_client = user_data;
- gboolean done = FALSE;
-
- g_object_ref (book_client);
-
- while (!done) {
- done = TRUE;
-
- if (!e_client_is_opened (E_CLIENT (book_client))) {
- GError *error = NULL;
-
- if (!e_client_open_sync (E_CLIENT (book_client), TRUE, NULL, &error) || error) {
- g_warning ("%s: Failed to open book: %s", G_STRFUNC, error ? error->message : "Unknown error");
- }
-
- g_clear_error (&error);
- }
- }
-
- g_object_unref (book_client);
-
- return NULL;
-}
-
static void
cbc_reopen_book_client (BookRecord *br)
{
- GThread *thread;
-
g_mutex_lock (&br->lock);
g_warn_if_fail (br->book_client_opened_id == 0);
br->book_client, "opened",
G_CALLBACK (book_client_opened_cb), br);
- thread = g_thread_new (
- NULL,
- cbc_reopen_book_client_thread,
- br->book_client);
- g_thread_unref (thread);
-
g_mutex_unlock (&br->lock);
}
GCancellable *use_cancellable;
g_return_if_fail (E_IS_CAL_CLIENT (client));
- g_return_if_fail (e_client_is_opened (E_CLIENT (client)));
g_return_if_fail (start >= 0);
g_return_if_fail (end >= 0);
GSList *objects = NULL;
g_return_if_fail (E_IS_CAL_CLIENT (client));
- g_return_if_fail (e_client_is_opened (E_CLIENT (client)));
g_return_if_fail (start >= 0);
g_return_if_fail (end >= 0);
GCancellable *use_cancellable;
g_return_if_fail (E_IS_CAL_CLIENT (client));
- g_return_if_fail (e_client_is_opened (E_CLIENT (client)));
g_return_if_fail (start >= 0);
g_return_if_fail (end >= 0);
gboolean is_single_instance = FALSE;
g_return_if_fail (E_IS_CAL_CLIENT (client));
- g_return_if_fail (e_client_is_opened (E_CLIENT (client)));
g_return_if_fail (start >= 0);
g_return_if_fail (end >= 0);
e_client_check_refresh_supported
e_client_is_readonly
e_client_is_online
-e_client_is_opened
e_client_unwrap_dbus_error
e_client_cancel_all
e_client_get_backend_property
<SUBSECTION Deprecated>
CLIENT_BACKEND_PROPERTY_OPENED
CLIENT_BACKEND_PROPERTY_OPENING
+e_client_is_opened
e_client_remove
e_client_remove_finish
e_client_remove_sync
gchar *uri;
gboolean online;
gboolean readonly;
- gboolean opened;
gboolean capabilities_retrieved;
GSList *capabilities;
* during the opening phase except of authenticate or cancel it.
* Every other operation results in an %E_CLIENT_ERROR_BUSY error.
*
- * Returns: %TRUE if this @client is fully opened, otherwise %FALSE.
+ * Returns: always %TRUE
*
* Since: 3.2.
+ *
+ * Deprecated: 3.8: Clients don't need to care if they're fully opened
+ * anymore. This function always returns %TRUE.
**/
gboolean
e_client_is_opened (EClient *client)
{
g_return_val_if_fail (E_IS_CLIENT (client), FALSE);
- return client->priv->opened;
+ return TRUE;
}
/*
g_return_if_fail (E_IS_CLIENT (client));
- client->priv->opened = dbus_error == NULL;
-
if (dbus_error) {
local_error = g_error_copy (dbus_error);
e_client_unwrap_dbus_error (client, local_error, &local_error);
(EClient *client);
gboolean e_client_is_readonly (EClient *client);
gboolean e_client_is_online (EClient *client);
-gboolean e_client_is_opened (EClient *client);
void e_client_unwrap_dbus_error (EClient *client,
GError *dbus_error,
GError **out_error);
**/
#define CLIENT_BACKEND_PROPERTY_OPENING "opening"
+gboolean e_client_is_opened (EClient *client);
void e_client_remove (EClient *client,
GCancellable *cancellable,
GAsyncReadyCallback callback,
g_print ("\treadonly:%s\n", e_client_is_readonly (client) ? "yes" : "no");
g_print ("\tonline:%s\n", e_client_is_online (client) ? "yes" : "no");
- g_print ("\topened:%s\n", e_client_is_opened (client) ? "yes" : "no");
g_print ("\tcapabilities: ");
values = e_client_get_capabilities (client);
if (!values) {
g_print ("\treadonly:%s\n", e_client_is_readonly (client) ? "yes" : "no");
g_print ("\tonline:%s\n", e_client_is_online (client) ? "yes" : "no");
- g_print ("\topened:%s\n", e_client_is_opened (client) ? "yes" : "no");
g_print ("\tcache dir: %s%s%s\n", evals->cache_dir ? "'" : "", evals->cache_dir ? evals->cache_dir : "none", evals->cache_dir ? "'" : "");
g_print ("\tcapabilities: ");
values = e_client_get_capabilities (client);