1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
<link rel="home" href="index.html" title="Evolution-Data-Server Reference Manual">
8
<link rel="up" href="ch03.html" title="Shared Interaces">
9
<link rel="prev" href="ch03.html" title="Shared Interaces">
10
<link rel="next" href="ch04.html" title="Addressbook">
11
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="ch03.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Evolution-Data-Server Reference Manual</th>
21
<td><a accesskey="n" href="ch04.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#eds-EClient.synopsis" class="shortcut">Top</a>
26
<a href="#eds-EClient.description" class="shortcut">Description</a>
29
<div class="refentry">
30
<a name="eds-EClient"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="eds-EClient.top_of_page"></a>EClient</span></h2>
34
<p>EClient — Base class for client handles</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
39
<a name="eds-EClient.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">
41
#include <libedataserver/libedataserver.h>
43
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-ONLINE:CAPS" title="CLIENT_BACKEND_PROPERTY_ONLINE">CLIENT_BACKEND_PROPERTY_ONLINE</a>
44
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-READONLY:CAPS" title="CLIENT_BACKEND_PROPERTY_READONLY">CLIENT_BACKEND_PROPERTY_READONLY</a>
45
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-CACHE-DIR:CAPS" title="CLIENT_BACKEND_PROPERTY_CACHE_DIR">CLIENT_BACKEND_PROPERTY_CACHE_DIR</a>
46
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-CAPABILITIES:CAPS" title="CLIENT_BACKEND_PROPERTY_CAPABILITIES">CLIENT_BACKEND_PROPERTY_CAPABILITIES</a>
47
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-REVISION:CAPS" title="CLIENT_BACKEND_PROPERTY_REVISION">CLIENT_BACKEND_PROPERTY_REVISION</a>
48
#define <a class="link" href="eds-EClient.html#E-CLIENT-ERROR:CAPS" title="E_CLIENT_ERROR">E_CLIENT_ERROR</a>
49
<span class="returnvalue">GQuark</span> <a class="link" href="eds-EClient.html#e-client-error-quark" title="e_client_error_quark ()">e_client_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
50
enum <a class="link" href="eds-EClient.html#EClientError" title="enum EClientError">EClientError</a>;
51
const <span class="returnvalue">gchar</span> * <a class="link" href="eds-EClient.html#e-client-error-to-string" title="e_client_error_to_string ()">e_client_error_to_string</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> code</code></em>);
52
struct <a class="link" href="eds-EClient.html#EClient" title="struct EClient">EClient</a>;
53
struct <a class="link" href="eds-EClient.html#EClientClass" title="struct EClientClass">EClientClass</a>;
54
<a class="link" href="eds-ESource.html#ESource" title="struct ESource"><span class="returnvalue">ESource</span></a> * <a class="link" href="eds-EClient.html#e-client-get-source" title="e_client_get_source ()">e_client_get_source</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
55
const <span class="returnvalue">GSList</span> * <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()">e_client_get_capabilities</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
56
<span class="returnvalue">GMainContext</span> * <a class="link" href="eds-EClient.html#e-client-ref-main-context" title="e_client_ref_main_context ()">e_client_ref_main_context</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
57
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-check-capability" title="e_client_check_capability ()">e_client_check_capability</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
58
<em class="parameter"><code>const <span class="type">gchar</span> *capability</code></em>);
59
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-check-refresh-supported" title="e_client_check_refresh_supported ()">e_client_check_refresh_supported</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
60
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-is-readonly" title="e_client_is_readonly ()">e_client_is_readonly</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
61
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-is-online" title="e_client_is_online ()">e_client_is_online</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
62
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-get-backend-property" title="e_client_get_backend_property ()">e_client_get_backend_property</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
63
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
64
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
65
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
66
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
67
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-get-backend-property-finish" title="e_client_get_backend_property_finish ()">e_client_get_backend_property_finish</a>
68
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
69
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
70
<em class="parameter"><code><span class="type">gchar</span> **prop_value</code></em>,
71
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
72
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-get-backend-property-sync" title="e_client_get_backend_property_sync ()">e_client_get_backend_property_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
73
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
74
<em class="parameter"><code><span class="type">gchar</span> **prop_value</code></em>,
75
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
76
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
77
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-refresh" title="e_client_refresh ()">e_client_refresh</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
78
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
79
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
80
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
81
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-refresh-finish" title="e_client_refresh_finish ()">e_client_refresh_finish</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
82
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
83
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
84
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-refresh-sync" title="e_client_refresh_sync ()">e_client_refresh_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
85
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
86
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
87
<span class="returnvalue">GSList</span> * <a class="link" href="eds-EClient.html#e-client-util-parse-comma-strings" title="e_client_util_parse_comma_strings ()">e_client_util_parse_comma_strings</a> (<em class="parameter"><code>const <span class="type">gchar</span> *strings</code></em>);
88
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-OPENED:CAPS" title="CLIENT_BACKEND_PROPERTY_OPENED">CLIENT_BACKEND_PROPERTY_OPENED</a>
89
#define <a class="link" href="eds-EClient.html#CLIENT-BACKEND-PROPERTY-OPENING:CAPS" title="CLIENT_BACKEND_PROPERTY_OPENING">CLIENT_BACKEND_PROPERTY_OPENING</a>
90
<span class="returnvalue">GError</span> * <a class="link" href="eds-EClient.html#e-client-error-create" title="e_client_error_create ()">e_client_error_create</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> code</code></em>,
91
<em class="parameter"><code>const <span class="type">gchar</span> *custom_msg</code></em>);
92
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-is-opened" title="e_client_is_opened ()">e_client_is_opened</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
93
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-cancel-all" title="e_client_cancel_all ()">e_client_cancel_all</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);
94
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-unwrap-dbus-error" title="e_client_unwrap_dbus_error ()">e_client_unwrap_dbus_error</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
95
<em class="parameter"><code><span class="type">GError</span> *dbus_error</code></em>,
96
<em class="parameter"><code><span class="type">GError</span> **out_error</code></em>);
97
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-retrieve-capabilities" title="e_client_retrieve_capabilities ()">e_client_retrieve_capabilities</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
98
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
99
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
100
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
101
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-retrieve-capabilities-finish" title="e_client_retrieve_capabilities_finish ()">e_client_retrieve_capabilities_finish</a>
102
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
103
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
104
<em class="parameter"><code><span class="type">gchar</span> **capabilities</code></em>,
105
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
106
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-retrieve-capabilities-sync" title="e_client_retrieve_capabilities_sync ()">e_client_retrieve_capabilities_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
107
<em class="parameter"><code><span class="type">gchar</span> **capabilities</code></em>,
108
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
109
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
110
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-set-backend-property" title="e_client_set_backend_property ()">e_client_set_backend_property</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
111
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
112
<em class="parameter"><code>const <span class="type">gchar</span> *prop_value</code></em>,
113
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
114
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
115
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
116
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-set-backend-property-finish" title="e_client_set_backend_property_finish ()">e_client_set_backend_property_finish</a>
117
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
118
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
119
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
120
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-set-backend-property-sync" title="e_client_set_backend_property_sync ()">e_client_set_backend_property_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
121
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
122
<em class="parameter"><code>const <span class="type">gchar</span> *prop_value</code></em>,
123
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
124
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
125
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-open" title="e_client_open ()">e_client_open</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
126
<em class="parameter"><code><span class="type">gboolean</span> only_if_exists</code></em>,
127
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
128
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
129
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
130
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-open-finish" title="e_client_open_finish ()">e_client_open_finish</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
131
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
132
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
133
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-open-sync" title="e_client_open_sync ()">e_client_open_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
134
<em class="parameter"><code><span class="type">gboolean</span> only_if_exists</code></em>,
135
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
136
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
137
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-remove" title="e_client_remove ()">e_client_remove</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
138
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
139
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
140
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
141
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-remove-finish" title="e_client_remove_finish ()">e_client_remove_finish</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
142
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
143
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
144
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-remove-sync" title="e_client_remove_sync ()">e_client_remove_sync</a> (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
145
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
146
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
147
<span class="returnvalue">gchar</span> ** <a class="link" href="eds-EClient.html#e-client-util-slist-to-strv" title="e_client_util_slist_to_strv ()">e_client_util_slist_to_strv</a> (<em class="parameter"><code>const <span class="type">GSList</span> *strings</code></em>);
148
<span class="returnvalue">GSList</span> * <a class="link" href="eds-EClient.html#e-client-util-strv-to-slist" title="e_client_util_strv_to_slist ()">e_client_util_strv_to_slist</a> (<em class="parameter"><code>const <span class="type">gchar</span> * const *strv</code></em>);
149
<span class="returnvalue">GSList</span> * <a class="link" href="eds-EClient.html#e-client-util-copy-string-slist" title="e_client_util_copy_string_slist ()">e_client_util_copy_string_slist</a> (<em class="parameter"><code><span class="type">GSList</span> *copy_to</code></em>,
150
<em class="parameter"><code>const <span class="type">GSList</span> *strings</code></em>);
151
<span class="returnvalue">GSList</span> * <a class="link" href="eds-EClient.html#e-client-util-copy-object-slist" title="e_client_util_copy_object_slist ()">e_client_util_copy_object_slist</a> (<em class="parameter"><code><span class="type">GSList</span> *copy_to</code></em>,
152
<em class="parameter"><code>const <span class="type">GSList</span> *objects</code></em>);
153
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-util-free-string-slist" title="e_client_util_free_string_slist ()">e_client_util_free_string_slist</a> (<em class="parameter"><code><span class="type">GSList</span> *strings</code></em>);
154
<span class="returnvalue">void</span> <a class="link" href="eds-EClient.html#e-client-util-free-object-slist" title="e_client_util_free_object_slist ()">e_client_util_free_object_slist</a> (<em class="parameter"><code><span class="type">GSList</span> *objects</code></em>);
155
struct <a class="link" href="eds-EClient.html#EClientErrorsList" title="struct EClientErrorsList">EClientErrorsList</a>;
156
<span class="returnvalue">gboolean</span> <a class="link" href="eds-EClient.html#e-client-util-unwrap-dbus-error" title="e_client_util_unwrap_dbus_error ()">e_client_util_unwrap_dbus_error</a> (<em class="parameter"><code><span class="type">GError</span> *dbus_error</code></em>,
157
<em class="parameter"><code><span class="type">GError</span> **client_error</code></em>,
158
<em class="parameter"><code>const <a class="link" href="eds-EClient.html#EClientErrorsList" title="struct EClientErrorsList"><span class="type">EClientErrorsList</span></a> *known_errors</code></em>,
159
<em class="parameter"><code><span class="type">guint</span> known_errors_count</code></em>,
160
<em class="parameter"><code><span class="type">GQuark</span> known_errors_domain</code></em>,
161
<em class="parameter"><code><span class="type">gboolean</span> fail_when_none_matched</code></em>);
164
<div class="refsect1">
165
<a name="eds-EClient.description"></a><h2>Description</h2>
167
This class provides some base functionality for clients
168
such as <a class="link" href="eds-EBookClient.html#EBookClient" title="struct EBookClient"><span class="type">EBookClient</span></a> and <a class="link" href="eds-ECalClient.html#ECalClient" title="struct ECalClient"><span class="type">ECalClient</span></a>.
171
<div class="refsect1">
172
<a name="eds-EClient.details"></a><h2>Details</h2>
173
<div class="refsect2">
174
<a name="CLIENT-BACKEND-PROPERTY-ONLINE:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_ONLINE</h3>
175
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_ONLINE "online"
178
The "online" property is "TRUE" when the client is fully opened and
179
online, "FALSE" at all other times. See also <a class="link" href="eds-EClient.html#e-client-is-online" title="e_client_is_online ()"><code class="function">e_client_is_online()</code></a>.
181
<p class="since">Since 3.2</p>
184
<div class="refsect2">
185
<a name="CLIENT-BACKEND-PROPERTY-READONLY:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_READONLY</h3>
186
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_READONLY "readonly"
189
The "online" property is "TRUE" if the backend has only read access
190
to its data, "FALSE" if the backend can modify its data. See also
191
<a class="link" href="eds-EClient.html#e-client-is-readonly" title="e_client_is_readonly ()"><code class="function">e_client_is_readonly()</code></a>.
193
<p class="since">Since 3.2</p>
196
<div class="refsect2">
197
<a name="CLIENT-BACKEND-PROPERTY-CACHE-DIR:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_CACHE_DIR</h3>
198
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_CACHE_DIR "cache-dir"
201
The "cache-dir" property indicates the backend's local directory for
204
<p class="since">Since 3.2</p>
207
<div class="refsect2">
208
<a name="CLIENT-BACKEND-PROPERTY-CAPABILITIES:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_CAPABILITIES</h3>
209
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_CAPABILITIES</pre>
213
<p class="since">Since 3.2</p>
216
<div class="refsect2">
217
<a name="CLIENT-BACKEND-PROPERTY-REVISION:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_REVISION</h3>
218
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_REVISION "revision"
221
The current overall revision string, this can be used as
222
a quick check to see if data has changed at all since the
223
last time the revision was observed.
225
<p class="since">Since 3.4</p>
228
<div class="refsect2">
229
<a name="E-CLIENT-ERROR:CAPS"></a><h3>E_CLIENT_ERROR</h3>
230
<pre class="programlisting">#define E_CLIENT_ERROR e_client_error_quark ()
233
Error domain for <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> operations. Errors in this domain will be
234
from the <a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> enumeration. See <span class="type">GError</span> for more information
237
<p class="since">Since 3.2</p>
240
<div class="refsect2">
241
<a name="e-client-error-quark"></a><h3>e_client_error_quark ()</h3>
242
<pre class="programlisting"><span class="returnvalue">GQuark</span> e_client_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
245
<div class="refsect2">
246
<a name="EClientError"></a><h3>enum EClientError</h3>
247
<pre class="programlisting">typedef enum {
248
E_CLIENT_ERROR_INVALID_ARG,
250
E_CLIENT_ERROR_SOURCE_NOT_LOADED,
251
E_CLIENT_ERROR_SOURCE_ALREADY_LOADED,
252
E_CLIENT_ERROR_AUTHENTICATION_FAILED,
253
E_CLIENT_ERROR_AUTHENTICATION_REQUIRED,
254
E_CLIENT_ERROR_REPOSITORY_OFFLINE,
255
E_CLIENT_ERROR_OFFLINE_UNAVAILABLE,
256
E_CLIENT_ERROR_PERMISSION_DENIED,
257
E_CLIENT_ERROR_CANCELLED,
258
E_CLIENT_ERROR_COULD_NOT_CANCEL,
259
E_CLIENT_ERROR_NOT_SUPPORTED,
260
E_CLIENT_ERROR_TLS_NOT_AVAILABLE,
261
E_CLIENT_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD,
262
E_CLIENT_ERROR_SEARCH_SIZE_LIMIT_EXCEEDED,
263
E_CLIENT_ERROR_SEARCH_TIME_LIMIT_EXCEEDED,
264
E_CLIENT_ERROR_INVALID_QUERY,
265
E_CLIENT_ERROR_QUERY_REFUSED,
266
E_CLIENT_ERROR_DBUS_ERROR,
267
E_CLIENT_ERROR_OTHER_ERROR,
268
E_CLIENT_ERROR_NOT_OPENED,
269
E_CLIENT_ERROR_OUT_OF_SYNC
273
FIXME Document each code.
276
Error codes for <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> operations.
278
<div class="variablelist"><table border="0">
279
<col align="left" valign="top">
282
<td><p><a name="E-CLIENT-ERROR-INVALID-ARG:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_INVALID_ARG</code></span></p></td>
286
<td><p><a name="E-CLIENT-ERROR-BUSY:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_BUSY</code></span></p></td>
290
<td><p><a name="E-CLIENT-ERROR-SOURCE-NOT-LOADED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_SOURCE_NOT_LOADED</code></span></p></td>
294
<td><p><a name="E-CLIENT-ERROR-SOURCE-ALREADY-LOADED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_SOURCE_ALREADY_LOADED</code></span></p></td>
298
<td><p><a name="E-CLIENT-ERROR-AUTHENTICATION-FAILED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_AUTHENTICATION_FAILED</code></span></p></td>
302
<td><p><a name="E-CLIENT-ERROR-AUTHENTICATION-REQUIRED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_AUTHENTICATION_REQUIRED</code></span></p></td>
306
<td><p><a name="E-CLIENT-ERROR-REPOSITORY-OFFLINE:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_REPOSITORY_OFFLINE</code></span></p></td>
310
<td><p><a name="E-CLIENT-ERROR-OFFLINE-UNAVAILABLE:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_OFFLINE_UNAVAILABLE</code></span></p></td>
314
<td><p><a name="E-CLIENT-ERROR-PERMISSION-DENIED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_PERMISSION_DENIED</code></span></p></td>
318
<td><p><a name="E-CLIENT-ERROR-CANCELLED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_CANCELLED</code></span></p></td>
322
<td><p><a name="E-CLIENT-ERROR-COULD-NOT-CANCEL:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_COULD_NOT_CANCEL</code></span></p></td>
326
<td><p><a name="E-CLIENT-ERROR-NOT-SUPPORTED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_NOT_SUPPORTED</code></span></p></td>
330
<td><p><a name="E-CLIENT-ERROR-TLS-NOT-AVAILABLE:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_TLS_NOT_AVAILABLE</code></span></p></td>
334
<td><p><a name="E-CLIENT-ERROR-UNSUPPORTED-AUTHENTICATION-METHOD:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD</code></span></p></td>
338
<td><p><a name="E-CLIENT-ERROR-SEARCH-SIZE-LIMIT-EXCEEDED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_SEARCH_SIZE_LIMIT_EXCEEDED</code></span></p></td>
342
<td><p><a name="E-CLIENT-ERROR-SEARCH-TIME-LIMIT-EXCEEDED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_SEARCH_TIME_LIMIT_EXCEEDED</code></span></p></td>
346
<td><p><a name="E-CLIENT-ERROR-INVALID-QUERY:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_INVALID_QUERY</code></span></p></td>
350
<td><p><a name="E-CLIENT-ERROR-QUERY-REFUSED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_QUERY_REFUSED</code></span></p></td>
354
<td><p><a name="E-CLIENT-ERROR-DBUS-ERROR:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_DBUS_ERROR</code></span></p></td>
358
<td><p><a name="E-CLIENT-ERROR-OTHER-ERROR:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_OTHER_ERROR</code></span></p></td>
362
<td><p><a name="E-CLIENT-ERROR-NOT-OPENED:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_NOT_OPENED</code></span></p></td>
366
<td><p><a name="E-CLIENT-ERROR-OUT-OF-SYNC:CAPS"></a><span class="term"><code class="literal">E_CLIENT_ERROR_OUT_OF_SYNC</code></span></p></td>
371
<p class="since">Since 3.2</p>
374
<div class="refsect2">
375
<a name="e-client-error-to-string"></a><h3>e_client_error_to_string ()</h3>
376
<pre class="programlisting">const <span class="returnvalue">gchar</span> * e_client_error_to_string (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> code</code></em>);</pre>
380
<p class="since">Since 3.2</p>
383
<div class="refsect2">
384
<a name="EClient"></a><h3>struct EClient</h3>
385
<pre class="programlisting">struct EClient {
387
EClientPrivate *priv;
391
Contains only private data that should be read and manipulated using the
394
<p class="since">Since 3.2</p>
397
<div class="refsect2">
398
<a name="EClientClass"></a><h3>struct EClientClass</h3>
399
<pre class="programlisting">struct EClientClass {
402
/* This method is deprecated. */
403
GDBusProxy * (*get_dbus_proxy) (EClient *client);
405
/* This method is deprecated. */
406
void (*unwrap_dbus_error) (EClient *client,
410
/* This method is deprecated. */
411
void (*retrieve_capabilities)
413
GCancellable *cancellable,
414
GAsyncReadyCallback callback,
416
gboolean (*retrieve_capabilities_finish)
418
GAsyncResult *result,
419
gchar **capabilities,
421
gboolean (*retrieve_capabilities_sync)
423
gchar **capabilities,
424
GCancellable *cancellable,
427
void (*get_backend_property) (EClient *client,
428
const gchar *prop_name,
429
GCancellable *cancellable,
430
GAsyncReadyCallback callback,
432
gboolean (*get_backend_property_finish)
434
GAsyncResult *result,
437
gboolean (*get_backend_property_sync)
439
const gchar *prop_name,
441
GCancellable *cancellable,
444
/* This method is deprecated. */
445
void (*set_backend_property) (EClient *client,
446
const gchar *prop_name,
447
const gchar *prop_value,
448
GCancellable *cancellable,
449
GAsyncReadyCallback callback,
451
gboolean (*set_backend_property_finish)
453
GAsyncResult *result,
455
gboolean (*set_backend_property_sync)
457
const gchar *prop_name,
458
const gchar *prop_value,
459
GCancellable *cancellable,
462
void (*open) (EClient *client,
463
gboolean only_if_exists,
464
GCancellable *cancellable,
465
GAsyncReadyCallback callback,
467
gboolean (*open_finish) (EClient *client,
468
GAsyncResult *result,
470
gboolean (*open_sync) (EClient *client,
471
gboolean only_if_exists,
472
GCancellable *cancellable,
475
void (*remove) (EClient *client,
476
GCancellable *cancellable,
477
GAsyncReadyCallback callback,
479
gboolean (*remove_finish) (EClient *client,
480
GAsyncResult *result,
482
gboolean (*remove_sync) (EClient *client,
483
GCancellable *cancellable,
486
void (*refresh) (EClient *client,
487
GCancellable *cancellable,
488
GAsyncReadyCallback callback,
490
gboolean (*refresh_finish) (EClient *client,
491
GAsyncResult *result,
493
gboolean (*refresh_sync) (EClient *client,
494
GCancellable *cancellable,
497
void (*opened) (EClient *client,
498
const GError *error);
499
void (*backend_error) (EClient *client,
500
const gchar *error_msg);
501
void (*backend_died) (EClient *client);
502
void (*backend_property_changed)
504
const gchar *prop_name,
505
const gchar *prop_value);
510
<div class="refsect2">
511
<a name="e-client-get-source"></a><h3>e_client_get_source ()</h3>
512
<pre class="programlisting"><a class="link" href="eds-ESource.html#ESource" title="struct ESource"><span class="returnvalue">ESource</span></a> * e_client_get_source (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
514
Get the <a class="link" href="eds-ESource.html#ESource" title="struct ESource"><span class="type">ESource</span></a> that this client has assigned.
516
<div class="variablelist"><table border="0">
517
<col align="left" valign="top">
520
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
521
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
525
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
526
<td>The source. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
531
<p class="since">Since 3.2</p>
534
<div class="refsect2">
535
<a name="e-client-get-capabilities"></a><h3>e_client_get_capabilities ()</h3>
536
<pre class="programlisting">const <span class="returnvalue">GSList</span> * e_client_get_capabilities (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
538
Get list of strings with capabilities advertised by a backend.
539
This list, together with inner strings, is owned by the <em class="parameter"><code>client</code></em>.
540
To check for individual capabilities use <a class="link" href="eds-EClient.html#e-client-check-capability" title="e_client_check_capability ()"><code class="function">e_client_check_capability()</code></a>.
542
<div class="variablelist"><table border="0">
543
<col align="left" valign="top">
546
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
547
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
551
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
553
<span class="type">GSList</span> of const strings
554
of capabilities. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
559
<p class="since">Since 3.2</p>
562
<div class="refsect2">
563
<a name="e-client-ref-main-context"></a><h3>e_client_ref_main_context ()</h3>
564
<pre class="programlisting"><span class="returnvalue">GMainContext</span> * e_client_ref_main_context (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
566
Returns the <span class="type">GMainContext</span> on which event sources for <em class="parameter"><code>client</code></em> are to
570
The returned <span class="type">GMainContext</span> is referenced for thread-safety and must be
571
unreferenced with <code class="function">g_main_context_unref()</code> when finished with it.
573
<div class="variablelist"><table border="0">
574
<col align="left" valign="top">
577
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
578
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
582
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
583
<td>a <span class="type">GMainContext</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
588
<p class="since">Since 3.8</p>
591
<div class="refsect2">
592
<a name="e-client-check-capability"></a><h3>e_client_check_capability ()</h3>
593
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_check_capability (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
594
<em class="parameter"><code>const <span class="type">gchar</span> *capability</code></em>);</pre>
596
Check if backend supports particular capability.
597
To get all capabilities use <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a>.
599
<div class="variablelist"><table border="0">
600
<col align="left" valign="top">
603
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
604
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
608
<td><p><span class="term"><em class="parameter"><code>capability</code></em> :</span></p></td>
609
<td>a capability</td>
612
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
614
<span class="type">GSList</span> of const strings of capabilities</td>
618
<p class="since">Since 3.2</p>
621
<div class="refsect2">
622
<a name="e-client-check-refresh-supported"></a><h3>e_client_check_refresh_supported ()</h3>
623
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_check_refresh_supported (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
625
Checks whether a client supports explicit refreshing
626
(see <a class="link" href="eds-EClient.html#e-client-refresh" title="e_client_refresh ()"><code class="function">e_client_refresh()</code></a>).
628
<div class="variablelist"><table border="0">
629
<col align="left" valign="top">
632
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
636
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
637
<td>TRUE if the client supports refreshing, FALSE otherwise.</td>
641
<p class="since">Since 3.2</p>
644
<div class="refsect2">
645
<a name="e-client-is-readonly"></a><h3>e_client_is_readonly ()</h3>
646
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_is_readonly (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
648
Check if this <em class="parameter"><code>client</code></em> is read-only.
650
<div class="variablelist"><table border="0">
651
<col align="left" valign="top">
654
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
655
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
659
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
661
<code class="literal">TRUE</code> if this <em class="parameter"><code>client</code></em> is read-only, otherwise <code class="literal">FALSE</code>.</td>
665
<p class="since">Since 3.2</p>
668
<div class="refsect2">
669
<a name="e-client-is-online"></a><h3>e_client_is_online ()</h3>
670
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_is_online (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
672
Check if this <em class="parameter"><code>client</code></em> is connected.
674
<div class="variablelist"><table border="0">
675
<col align="left" valign="top">
678
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
679
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
683
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
685
<code class="literal">TRUE</code> if this <em class="parameter"><code>client</code></em> is connected, otherwise <code class="literal">FALSE</code>.</td>
689
<p class="since">Since 3.2</p>
692
<div class="refsect2">
693
<a name="e-client-get-backend-property"></a><h3>e_client_get_backend_property ()</h3>
694
<pre class="programlisting"><span class="returnvalue">void</span> e_client_get_backend_property (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
695
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
696
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
697
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
698
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
700
Queries <em class="parameter"><code>client</code></em>'s backend for a property of name <em class="parameter"><code>prop_name</code></em>.
701
The call is finished by <a class="link" href="eds-EClient.html#e-client-get-backend-property-finish" title="e_client_get_backend_property_finish ()"><code class="function">e_client_get_backend_property_finish()</code></a>
702
from the <em class="parameter"><code>callback</code></em>.
704
<div class="variablelist"><table border="0">
705
<col align="left" valign="top">
708
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
709
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
713
<td><p><span class="term"><em class="parameter"><code>prop_name</code></em> :</span></p></td>
714
<td>property name, whose value to retrieve; cannot be <code class="literal">NULL</code>
718
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
719
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
723
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
724
<td>callback to call when a result is ready</td>
727
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
728
<td>user data for the <em class="parameter"><code>callback</code></em>
733
<p class="since">Since 3.2</p>
736
<div class="refsect2">
737
<a name="e-client-get-backend-property-finish"></a><h3>e_client_get_backend_property_finish ()</h3>
738
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_get_backend_property_finish
739
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
740
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
741
<em class="parameter"><code><span class="type">gchar</span> **prop_value</code></em>,
742
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
744
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-get-backend-property" title="e_client_get_backend_property ()"><code class="function">e_client_get_backend_property()</code></a>.
746
<div class="variablelist"><table border="0">
747
<col align="left" valign="top">
750
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
751
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
755
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
756
<td>a <span class="type">GAsyncResult</span>
760
<td><p><span class="term"><em class="parameter"><code>prop_value</code></em> :</span></p></td>
761
<td>Retrieved backend property value; cannot be <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
765
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
766
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
770
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
772
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
776
<p class="since">Since 3.2</p>
779
<div class="refsect2">
780
<a name="e-client-get-backend-property-sync"></a><h3>e_client_get_backend_property_sync ()</h3>
781
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_get_backend_property_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
782
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
783
<em class="parameter"><code><span class="type">gchar</span> **prop_value</code></em>,
784
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
785
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
787
Queries <em class="parameter"><code>client</code></em>'s backend for a property of name <em class="parameter"><code>prop_name</code></em>.
789
<div class="variablelist"><table border="0">
790
<col align="left" valign="top">
793
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
794
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
798
<td><p><span class="term"><em class="parameter"><code>prop_name</code></em> :</span></p></td>
799
<td>property name, whose value to retrieve; cannot be <code class="literal">NULL</code>
803
<td><p><span class="term"><em class="parameter"><code>prop_value</code></em> :</span></p></td>
804
<td>Retrieved backend property value; cannot be <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
808
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
809
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
813
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
814
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
818
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
820
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
824
<p class="since">Since 3.2</p>
827
<div class="refsect2">
828
<a name="e-client-refresh"></a><h3>e_client_refresh ()</h3>
829
<pre class="programlisting"><span class="returnvalue">void</span> e_client_refresh (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
830
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
831
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
832
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
834
Initiates refresh on the <em class="parameter"><code>client</code></em>. Finishing the method doesn't mean
835
that the refresh is done, backend only notifies whether it started
836
refreshing or not. Use <a class="link" href="eds-EClient.html#e-client-check-refresh-supported" title="e_client_check_refresh_supported ()"><code class="function">e_client_check_refresh_supported()</code></a> to check
837
whether the backend supports this method.
838
The call is finished by <a class="link" href="eds-EClient.html#e-client-refresh-finish" title="e_client_refresh_finish ()"><code class="function">e_client_refresh_finish()</code></a> from the <em class="parameter"><code>callback</code></em>.
840
<div class="variablelist"><table border="0">
841
<col align="left" valign="top">
844
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
845
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
849
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
850
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
854
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
855
<td>callback to call when a result is ready</td>
858
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
859
<td>user data for the <em class="parameter"><code>callback</code></em>
864
<p class="since">Since 3.2</p>
867
<div class="refsect2">
868
<a name="e-client-refresh-finish"></a><h3>e_client_refresh_finish ()</h3>
869
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_refresh_finish (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
870
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
871
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
873
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-refresh" title="e_client_refresh ()"><code class="function">e_client_refresh()</code></a>.
875
<div class="variablelist"><table border="0">
876
<col align="left" valign="top">
879
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
880
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
884
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
885
<td>a <span class="type">GAsyncResult</span>
889
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
890
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
894
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
896
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
900
<p class="since">Since 3.2</p>
903
<div class="refsect2">
904
<a name="e-client-refresh-sync"></a><h3>e_client_refresh_sync ()</h3>
905
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_refresh_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
906
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
907
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
909
Initiates refresh on the <em class="parameter"><code>client</code></em>. Finishing the method doesn't mean
910
that the refresh is done, backend only notifies whether it started
911
refreshing or not. Use <a class="link" href="eds-EClient.html#e-client-check-refresh-supported" title="e_client_check_refresh_supported ()"><code class="function">e_client_check_refresh_supported()</code></a> to check
912
whether the backend supports this method.
914
<div class="variablelist"><table border="0">
915
<col align="left" valign="top">
918
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
919
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
923
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
924
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
928
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
929
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
933
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
935
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
939
<p class="since">Since 3.2</p>
942
<div class="refsect2">
943
<a name="e-client-util-parse-comma-strings"></a><h3>e_client_util_parse_comma_strings ()</h3>
944
<pre class="programlisting"><span class="returnvalue">GSList</span> * e_client_util_parse_comma_strings (<em class="parameter"><code>const <span class="type">gchar</span> *strings</code></em>);</pre>
946
Parses comma-separated list of values into <span class="type">GSList</span>.
948
<div class="variablelist"><table border="0">
949
<col align="left" valign="top">
952
<td><p><span class="term"><em class="parameter"><code>strings</code></em> :</span></p></td>
953
<td>string of comma-separated values</td>
956
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
957
<td>Newly allocated <span class="type">GSList</span> of
958
newly allocated strings corresponding to values parsed from <em class="parameter"><code>strings</code></em>.
959
Free the returned pointer with <a class="link" href="eds-EClient.html#e-client-util-free-string-slist" title="e_client_util_free_string_slist ()"><code class="function">e_client_util_free_string_slist()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
964
<p class="since">Since 3.2</p>
967
<div class="refsect2">
968
<a name="CLIENT-BACKEND-PROPERTY-OPENED:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_OPENED</h3>
969
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_OPENED "opened"
971
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
972
<h3 class="title">Warning</h3>
973
<p><code class="literal">CLIENT_BACKEND_PROPERTY_OPENED</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients don't need to care if they're fully opened
974
anymore. This property will always return <code class="literal">TRUE</code>.</p>
977
The "opened" property is "TRUE" when the client is fully opened,
978
"FALSE" at all other times.
980
<p class="since">Since 3.2</p>
983
<div class="refsect2">
984
<a name="CLIENT-BACKEND-PROPERTY-OPENING:CAPS"></a><h3>CLIENT_BACKEND_PROPERTY_OPENING</h3>
985
<pre class="programlisting">#define CLIENT_BACKEND_PROPERTY_OPENING "opening"
987
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
988
<h3 class="title">Warning</h3>
989
<p><code class="literal">CLIENT_BACKEND_PROPERTY_OPENING</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients don't need to care if they're fully opened
990
anymore. This property will always return <code class="literal">FALSE</code>.</p>
993
The "opening" property is "TRUE" when the client is in the process of
994
opening, "FALSE" at all other times.
996
<p class="since">Since 3.2</p>
999
<div class="refsect2">
1000
<a name="e-client-error-create"></a><h3>e_client_error_create ()</h3>
1001
<pre class="programlisting"><span class="returnvalue">GError</span> * e_client_error_create (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> code</code></em>,
1002
<em class="parameter"><code>const <span class="type">gchar</span> *custom_msg</code></em>);</pre>
1003
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1004
<h3 class="title">Warning</h3>
1005
<p><code class="literal">e_client_error_create</code> has been deprecated since version 3.8 and should not be used in newly-written code. Just use the <span class="type">GError</span> API directly.</p>
1007
<div class="variablelist"><table border="0">
1008
<col align="left" valign="top">
1011
<td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
1012
<td>an <a class="link" href="eds-EClient.html#EClientError" title="enum EClientError"><span class="type">EClientError</span></a> code to create</td>
1015
<td><p><span class="term"><em class="parameter"><code>custom_msg</code></em> :</span></p></td>
1016
<td>custom message to use for the error; can be <code class="literal">NULL</code>
1020
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1021
<td>a new <span class="type">GError</span> containing an E_CLIENT_ERROR of the given
1022
<em class="parameter"><code>code</code></em>. If the <em class="parameter"><code>custom_msg</code></em> is NULL, then the error message is
1023
the one returned from <a class="link" href="eds-EClient.html#e-client-error-to-string" title="e_client_error_to_string ()"><code class="function">e_client_error_to_string()</code></a> for the <em class="parameter"><code>code</code></em>,
1024
otherwise the given message is used.
1025
Returned pointer should be freed with <code class="function">g_error_free()</code>.</td>
1029
<p class="since">Since 3.2</p>
1032
<div class="refsect2">
1033
<a name="e-client-is-opened"></a><h3>e_client_is_opened ()</h3>
1034
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_is_opened (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
1035
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1036
<h3 class="title">Warning</h3>
1037
<p><code class="literal">e_client_is_opened</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients don't need to care if they're fully opened
1038
anymore. This function always returns <code class="literal">TRUE</code>.</p>
1041
Check if this <em class="parameter"><code>client</code></em> is fully opened. This includes
1042
everything from <a class="link" href="eds-EClient.html#e-client-open" title="e_client_open ()"><code class="function">e_client_open()</code></a> call up to the authentication,
1043
if required by a backend. Client cannot do any other operation
1044
during the opening phase except of authenticate or cancel it.
1045
Every other operation results in an <a class="link" href="eds-EClient.html#E-CLIENT-ERROR-BUSY:CAPS"><code class="literal">E_CLIENT_ERROR_BUSY</code></a> error.
1047
<div class="variablelist"><table border="0">
1048
<col align="left" valign="top">
1051
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1052
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1056
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1057
<td>always <code class="literal">TRUE</code>
1062
<p class="since">Since 3.2.</p>
1065
<div class="refsect2">
1066
<a name="e-client-cancel-all"></a><h3>e_client_cancel_all ()</h3>
1067
<pre class="programlisting"><span class="returnvalue">void</span> e_client_cancel_all (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>);</pre>
1068
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1069
<h3 class="title">Warning</h3>
1070
<p><code class="literal">e_client_cancel_all</code> has been deprecated since version 3.8 and should not be used in newly-written code. The function no longer does anything.</p>
1073
Cancels all pending operations started on <em class="parameter"><code>client</code></em>.
1075
<div class="variablelist"><table border="0">
1076
<col align="left" valign="top">
1078
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1079
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1083
<p class="since">Since 3.2</p>
1086
<div class="refsect2">
1087
<a name="e-client-unwrap-dbus-error"></a><h3>e_client_unwrap_dbus_error ()</h3>
1088
<pre class="programlisting"><span class="returnvalue">void</span> e_client_unwrap_dbus_error (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1089
<em class="parameter"><code><span class="type">GError</span> *dbus_error</code></em>,
1090
<em class="parameter"><code><span class="type">GError</span> **out_error</code></em>);</pre>
1091
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1092
<h3 class="title">Warning</h3>
1093
<p><code class="literal">e_client_unwrap_dbus_error</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <code class="function">g_dbus_error_strip_remote_error()</code> instead.</p>
1096
Unwraps D-Bus error to local error. <em class="parameter"><code>dbus_error</code></em> is automatically freed.
1097
<em class="parameter"><code>dbus_erorr</code></em> and <em class="parameter"><code>out_error</code></em> can point to the same variable.
1099
<div class="variablelist"><table border="0">
1100
<col align="left" valign="top">
1103
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1104
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1108
<td><p><span class="term"><em class="parameter"><code>dbus_error</code></em> :</span></p></td>
1109
<td>a <span class="type">GError</span> returned bu D-Bus</td>
1112
<td><p><span class="term"><em class="parameter"><code>out_error</code></em> :</span></p></td>
1113
<td>a <span class="type">GError</span> variable where to store the result</td>
1117
<p class="since">Since 3.2</p>
1120
<div class="refsect2">
1121
<a name="e-client-retrieve-capabilities"></a><h3>e_client_retrieve_capabilities ()</h3>
1122
<pre class="programlisting"><span class="returnvalue">void</span> e_client_retrieve_capabilities (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1123
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1124
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1125
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1126
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1127
<h3 class="title">Warning</h3>
1128
<p><code class="literal">e_client_retrieve_capabilities</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a> instead.</p>
1131
Initiates retrieval of capabilities on the <em class="parameter"><code>client</code></em>. This is usually
1132
required only once, after the <em class="parameter"><code>client</code></em> is opened. The returned value
1133
is cached and any subsequent call of <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a> and
1134
<a class="link" href="eds-EClient.html#e-client-check-capability" title="e_client_check_capability ()"><code class="function">e_client_check_capability()</code></a> is using the cached value.
1135
The call is finished by <a class="link" href="eds-EClient.html#e-client-retrieve-capabilities-finish" title="e_client_retrieve_capabilities_finish ()"><code class="function">e_client_retrieve_capabilities_finish()</code></a>
1136
from the <em class="parameter"><code>callback</code></em>.
1138
<div class="variablelist"><table border="0">
1139
<col align="left" valign="top">
1142
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1143
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1147
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1148
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1152
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1153
<td>callback to call when a result is ready</td>
1156
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1157
<td>user data for the <em class="parameter"><code>callback</code></em>
1162
<p class="since">Since 3.2</p>
1165
<div class="refsect2">
1166
<a name="e-client-retrieve-capabilities-finish"></a><h3>e_client_retrieve_capabilities_finish ()</h3>
1167
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_retrieve_capabilities_finish
1168
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1169
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1170
<em class="parameter"><code><span class="type">gchar</span> **capabilities</code></em>,
1171
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1172
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1173
<h3 class="title">Warning</h3>
1174
<p><code class="literal">e_client_retrieve_capabilities_finish</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a> instead.</p>
1177
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-retrieve-capabilities" title="e_client_retrieve_capabilities ()"><code class="function">e_client_retrieve_capabilities()</code></a>.
1178
Returned value of <em class="parameter"><code>capabilities</code></em> should be freed with <code class="function">g_free()</code>,
1179
when no longer needed.
1181
<div class="variablelist"><table border="0">
1182
<col align="left" valign="top">
1185
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1186
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1190
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1191
<td>a <span class="type">GAsyncResult</span>
1195
<td><p><span class="term"><em class="parameter"><code>capabilities</code></em> :</span></p></td>
1196
<td>Comma-separated list of capabilities of the <em class="parameter"><code>client</code></em>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1200
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1201
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1205
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1207
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1211
<p class="since">Since 3.2</p>
1214
<div class="refsect2">
1215
<a name="e-client-retrieve-capabilities-sync"></a><h3>e_client_retrieve_capabilities_sync ()</h3>
1216
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_retrieve_capabilities_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1217
<em class="parameter"><code><span class="type">gchar</span> **capabilities</code></em>,
1218
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1219
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1220
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1221
<h3 class="title">Warning</h3>
1222
<p><code class="literal">e_client_retrieve_capabilities_sync</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a> instead.</p>
1225
Initiates retrieval of capabilities on the <em class="parameter"><code>client</code></em>. This is usually
1226
required only once, after the <em class="parameter"><code>client</code></em> is opened. The returned value
1227
is cached and any subsequent call of <a class="link" href="eds-EClient.html#e-client-get-capabilities" title="e_client_get_capabilities ()"><code class="function">e_client_get_capabilities()</code></a> and
1228
<a class="link" href="eds-EClient.html#e-client-check-capability" title="e_client_check_capability ()"><code class="function">e_client_check_capability()</code></a> is using the cached value. Returned value
1229
of <em class="parameter"><code>capabilities</code></em> should be freed with <code class="function">g_free()</code>, when no longer needed.
1231
<div class="variablelist"><table border="0">
1232
<col align="left" valign="top">
1235
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1236
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1240
<td><p><span class="term"><em class="parameter"><code>capabilities</code></em> :</span></p></td>
1241
<td>Comma-separated list of capabilities of the <em class="parameter"><code>client</code></em>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1245
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1246
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1250
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1251
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1255
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1257
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1261
<p class="since">Since 3.2</p>
1264
<div class="refsect2">
1265
<a name="e-client-set-backend-property"></a><h3>e_client_set_backend_property ()</h3>
1266
<pre class="programlisting"><span class="returnvalue">void</span> e_client_set_backend_property (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1267
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
1268
<em class="parameter"><code>const <span class="type">gchar</span> *prop_value</code></em>,
1269
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1270
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1271
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1272
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1273
<h3 class="title">Warning</h3>
1274
<p><code class="literal">e_client_set_backend_property</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients cannot set backend properties. Any attempt
1275
will fail with an <a class="link" href="eds-EClient.html#E-CLIENT-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">E_CLIENT_ERROR_NOT_SUPPORTED</code></a> error.</p>
1278
Sets <em class="parameter"><code>client</code></em>'s backend property of name <em class="parameter"><code>prop_name</code></em>
1279
to value <em class="parameter"><code>prop_value</code></em>. The call is finished
1280
by <a class="link" href="eds-EClient.html#e-client-set-backend-property-finish" title="e_client_set_backend_property_finish ()"><code class="function">e_client_set_backend_property_finish()</code></a> from the <em class="parameter"><code>callback</code></em>.
1282
<div class="variablelist"><table border="0">
1283
<col align="left" valign="top">
1286
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1287
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1291
<td><p><span class="term"><em class="parameter"><code>prop_name</code></em> :</span></p></td>
1292
<td>property name, whose value to change; cannot be <code class="literal">NULL</code>
1296
<td><p><span class="term"><em class="parameter"><code>prop_value</code></em> :</span></p></td>
1297
<td>property value, to set; cannot be <code class="literal">NULL</code>
1301
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1302
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1306
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1307
<td>callback to call when a result is ready</td>
1310
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1311
<td>user data for the <em class="parameter"><code>callback</code></em>
1316
<p class="since">Since 3.2</p>
1319
<div class="refsect2">
1320
<a name="e-client-set-backend-property-finish"></a><h3>e_client_set_backend_property_finish ()</h3>
1321
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_set_backend_property_finish
1322
(<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1323
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1324
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1325
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1326
<h3 class="title">Warning</h3>
1327
<p><code class="literal">e_client_set_backend_property_finish</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients cannot set backend properties. Any attempt
1328
will fail with an <a class="link" href="eds-EClient.html#E-CLIENT-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">E_CLIENT_ERROR_NOT_SUPPORTED</code></a> error.</p>
1331
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-set-backend-property" title="e_client_set_backend_property ()"><code class="function">e_client_set_backend_property()</code></a>.
1333
<div class="variablelist"><table border="0">
1334
<col align="left" valign="top">
1337
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1338
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1342
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1343
<td>a <span class="type">GAsyncResult</span>
1347
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1348
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1352
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1354
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1358
<p class="since">Since 3.2</p>
1361
<div class="refsect2">
1362
<a name="e-client-set-backend-property-sync"></a><h3>e_client_set_backend_property_sync ()</h3>
1363
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_set_backend_property_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1364
<em class="parameter"><code>const <span class="type">gchar</span> *prop_name</code></em>,
1365
<em class="parameter"><code>const <span class="type">gchar</span> *prop_value</code></em>,
1366
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1367
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1368
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1369
<h3 class="title">Warning</h3>
1370
<p><code class="literal">e_client_set_backend_property_sync</code> has been deprecated since version 3.8 and should not be used in newly-written code. Clients cannot set backend properties. Any attempt
1371
will fail with an <a class="link" href="eds-EClient.html#E-CLIENT-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">E_CLIENT_ERROR_NOT_SUPPORTED</code></a> error.</p>
1374
Sets <em class="parameter"><code>client</code></em>'s backend property of name <em class="parameter"><code>prop_name</code></em>
1375
to value <em class="parameter"><code>prop_value</code></em>.
1377
<div class="variablelist"><table border="0">
1378
<col align="left" valign="top">
1381
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1382
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1386
<td><p><span class="term"><em class="parameter"><code>prop_name</code></em> :</span></p></td>
1387
<td>property name, whose value to change; cannot be <code class="literal">NULL</code>
1391
<td><p><span class="term"><em class="parameter"><code>prop_value</code></em> :</span></p></td>
1392
<td>property value, to set; cannot be <code class="literal">NULL</code>
1396
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1397
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1401
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1402
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1406
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1408
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1412
<p class="since">Since 3.2</p>
1415
<div class="refsect2">
1416
<a name="e-client-open"></a><h3>e_client_open ()</h3>
1417
<pre class="programlisting"><span class="returnvalue">void</span> e_client_open (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1418
<em class="parameter"><code><span class="type">gboolean</span> only_if_exists</code></em>,
1419
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1420
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1421
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1422
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1423
<h3 class="title">Warning</h3>
1424
<p><code class="literal">e_client_open</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EBookClient.html#e-book-client-connect" title="e_book_client_connect ()"><code class="function">e_book_client_connect()</code></a> and
1425
<a class="link" href="eds-EBookClient.html#e-book-client-connect-finish" title="e_book_client_connect_finish ()"><code class="function">e_book_client_connect_finish()</code></a> or
1426
<a class="link" href="eds-ECalClient.html#e-cal-client-connect" title="e_cal_client_connect ()"><code class="function">e_cal_client_connect()</code></a> and
1427
<a class="link" href="eds-ECalClient.html#e-cal-client-connect-finish" title="e_cal_client_connect_finish ()"><code class="function">e_cal_client_connect_finish()</code></a> instead.</p>
1430
Opens the <em class="parameter"><code>client</code></em>, making it ready for queries and other operations.
1431
The call is finished by <a class="link" href="eds-EClient.html#e-client-open-finish" title="e_client_open_finish ()"><code class="function">e_client_open_finish()</code></a> from the <em class="parameter"><code>callback</code></em>.
1433
<div class="variablelist"><table border="0">
1434
<col align="left" valign="top">
1437
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1438
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1442
<td><p><span class="term"><em class="parameter"><code>only_if_exists</code></em> :</span></p></td>
1443
<td>if <code class="literal">TRUE</code>, fail if this book doesn't already exist,
1444
otherwise create it first</td>
1447
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1448
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1452
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1453
<td>callback to call when a result is ready</td>
1456
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1457
<td>user data for the <em class="parameter"><code>callback</code></em>
1462
<p class="since">Since 3.2</p>
1465
<div class="refsect2">
1466
<a name="e-client-open-finish"></a><h3>e_client_open_finish ()</h3>
1467
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_open_finish (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1468
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1469
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1470
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1471
<h3 class="title">Warning</h3>
1472
<p><code class="literal">e_client_open_finish</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EBookClient.html#e-book-client-connect" title="e_book_client_connect ()"><code class="function">e_book_client_connect()</code></a> and
1473
<a class="link" href="eds-EBookClient.html#e-book-client-connect-finish" title="e_book_client_connect_finish ()"><code class="function">e_book_client_connect_finish()</code></a> or
1474
<a class="link" href="eds-ECalClient.html#e-cal-client-connect" title="e_cal_client_connect ()"><code class="function">e_cal_client_connect()</code></a> and
1475
<a class="link" href="eds-ECalClient.html#e-cal-client-connect-finish" title="e_cal_client_connect_finish ()"><code class="function">e_cal_client_connect_finish()</code></a> instead.</p>
1478
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-open" title="e_client_open ()"><code class="function">e_client_open()</code></a>.
1480
<div class="variablelist"><table border="0">
1481
<col align="left" valign="top">
1484
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1485
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1489
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1490
<td>a <span class="type">GAsyncResult</span>
1494
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1495
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1499
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1501
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1505
<p class="since">Since 3.2</p>
1508
<div class="refsect2">
1509
<a name="e-client-open-sync"></a><h3>e_client_open_sync ()</h3>
1510
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_open_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1511
<em class="parameter"><code><span class="type">gboolean</span> only_if_exists</code></em>,
1512
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1513
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1514
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1515
<h3 class="title">Warning</h3>
1516
<p><code class="literal">e_client_open_sync</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-EBookClient.html#e-book-client-connect-sync" title="e_book_client_connect_sync ()"><code class="function">e_book_client_connect_sync()</code></a> or
1517
<a class="link" href="eds-ECalClient.html#e-cal-client-connect-sync" title="e_cal_client_connect_sync ()"><code class="function">e_cal_client_connect_sync()</code></a> instead.</p>
1520
Opens the <em class="parameter"><code>client</code></em>, making it ready for queries and other operations.
1522
<div class="variablelist"><table border="0">
1523
<col align="left" valign="top">
1526
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1527
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1531
<td><p><span class="term"><em class="parameter"><code>only_if_exists</code></em> :</span></p></td>
1532
<td>if <code class="literal">TRUE</code>, fail if this book doesn't already exist,
1533
otherwise create it first</td>
1536
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1537
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1541
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1542
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1546
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1548
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1552
<p class="since">Since 3.2</p>
1555
<div class="refsect2">
1556
<a name="e-client-remove"></a><h3>e_client_remove ()</h3>
1557
<pre class="programlisting"><span class="returnvalue">void</span> e_client_remove (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1558
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1559
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1560
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1561
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1562
<h3 class="title">Warning</h3>
1563
<p><code class="literal">e_client_remove</code> has been deprecated since version 3.6 and should not be used in newly-written code. Use <a class="link" href="eds-ESource.html#e-source-remove" title="e_source_remove ()"><code class="function">e_source_remove()</code></a> instead.</p>
1566
Removes the backing data for this <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>. For example, with the file
1567
backend this deletes the database file. You cannot get it back!
1568
The call is finished by <a class="link" href="eds-EClient.html#e-client-remove-finish" title="e_client_remove_finish ()"><code class="function">e_client_remove_finish()</code></a> from the <em class="parameter"><code>callback</code></em>.
1570
<div class="variablelist"><table border="0">
1571
<col align="left" valign="top">
1574
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1575
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1579
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1580
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1584
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1585
<td>callback to call when a result is ready</td>
1588
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1589
<td>user data for the <em class="parameter"><code>callback</code></em>
1594
<p class="since">Since 3.2</p>
1597
<div class="refsect2">
1598
<a name="e-client-remove-finish"></a><h3>e_client_remove_finish ()</h3>
1599
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_remove_finish (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1600
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1601
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1602
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1603
<h3 class="title">Warning</h3>
1604
<p><code class="literal">e_client_remove_finish</code> has been deprecated since version 3.6 and should not be used in newly-written code. Use <a class="link" href="eds-ESource.html#e-source-remove-finish" title="e_source_remove_finish ()"><code class="function">e_source_remove_finish()</code></a> instead.</p>
1607
Finishes previous call of <a class="link" href="eds-EClient.html#e-client-remove" title="e_client_remove ()"><code class="function">e_client_remove()</code></a>.
1609
<div class="variablelist"><table border="0">
1610
<col align="left" valign="top">
1613
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1614
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1618
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1619
<td>a <span class="type">GAsyncResult</span>
1623
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1624
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1628
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1630
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1634
<p class="since">Since 3.2</p>
1637
<div class="refsect2">
1638
<a name="e-client-remove-sync"></a><h3>e_client_remove_sync ()</h3>
1639
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_remove_sync (<em class="parameter"><code><a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a> *client</code></em>,
1640
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1641
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1642
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1643
<h3 class="title">Warning</h3>
1644
<p><code class="literal">e_client_remove_sync</code> has been deprecated since version 3.6 and should not be used in newly-written code. Use <a class="link" href="eds-ESource.html#e-source-remove-sync" title="e_source_remove_sync ()"><code class="function">e_source_remove_sync()</code></a> instead.</p>
1647
Removes the backing data for this <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>. For example, with the file
1648
backend this deletes the database file. You cannot get it back!
1650
<div class="variablelist"><table border="0">
1651
<col align="left" valign="top">
1654
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
1655
<td>an <a class="link" href="eds-EClient.html#EClient" title="struct EClient"><span class="type">EClient</span></a>
1659
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1660
<td>a <span class="type">GCancellable</span>; can be <code class="literal">NULL</code>
1664
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1665
<td>a <span class="type">GError</span> to set an error, if any. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1669
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1671
<code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> otherwise.</td>
1675
<p class="since">Since 3.2</p>
1678
<div class="refsect2">
1679
<a name="e-client-util-slist-to-strv"></a><h3>e_client_util_slist_to_strv ()</h3>
1680
<pre class="programlisting"><span class="returnvalue">gchar</span> ** e_client_util_slist_to_strv (<em class="parameter"><code>const <span class="type">GSList</span> *strings</code></em>);</pre>
1681
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1682
<h3 class="title">Warning</h3>
1683
<p><code class="literal">e_client_util_slist_to_strv</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-Main-Utility-Toolbox.html#e-util-slist-to-strv" title="e_util_slist_to_strv ()"><code class="function">e_util_slist_to_strv()</code></a> instead.</p>
1686
Convert a list of strings into a <code class="literal">NULL</code>-terminated array of strings.
1688
<div class="variablelist"><table border="0">
1689
<col align="left" valign="top">
1692
<td><p><span class="term"><em class="parameter"><code>strings</code></em> :</span></p></td>
1693
<td>a <span class="type">GSList</span> of strings (const gchar *). <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
1697
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1698
<td>Newly allocated <code class="literal">NULL</code>-terminated array of strings.
1699
The returned pointer should be freed with <code class="function">g_strfreev()</code>.
1700
Note: Paired function for this is <a class="link" href="eds-EClient.html#e-client-util-strv-to-slist" title="e_client_util_strv_to_slist ()"><code class="function">e_client_util_strv_to_slist()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1705
<p class="since">Since 3.2</p>
1708
<div class="refsect2">
1709
<a name="e-client-util-strv-to-slist"></a><h3>e_client_util_strv_to_slist ()</h3>
1710
<pre class="programlisting"><span class="returnvalue">GSList</span> * e_client_util_strv_to_slist (<em class="parameter"><code>const <span class="type">gchar</span> * const *strv</code></em>);</pre>
1711
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1712
<h3 class="title">Warning</h3>
1713
<p><code class="literal">e_client_util_strv_to_slist</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-Main-Utility-Toolbox.html#e-util-strv-to-slist" title="e_util_strv_to_slist ()"><code class="function">e_util_strv_to_slist()</code></a> instead.</p>
1716
Convert a <code class="literal">NULL</code>-terminated array of strings to a list of strings.
1718
<div class="variablelist"><table border="0">
1719
<col align="left" valign="top">
1722
<td><p><span class="term"><em class="parameter"><code>strv</code></em> :</span></p></td>
1723
<td>a <code class="literal">NULL</code>-terminated array of strings (const gchar *)</td>
1726
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1727
<td>Newly allocated <span class="type">GSList</span> of
1728
newly allocated strings. The returned pointer should be freed with
1729
<a class="link" href="eds-EClient.html#e-client-util-free-string-slist" title="e_client_util_free_string_slist ()"><code class="function">e_client_util_free_string_slist()</code></a>.
1730
Note: Paired function for this is <a class="link" href="eds-EClient.html#e-client-util-slist-to-strv" title="e_client_util_slist_to_strv ()"><code class="function">e_client_util_slist_to_strv()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
1735
<p class="since">Since 3.2</p>
1738
<div class="refsect2">
1739
<a name="e-client-util-copy-string-slist"></a><h3>e_client_util_copy_string_slist ()</h3>
1740
<pre class="programlisting"><span class="returnvalue">GSList</span> * e_client_util_copy_string_slist (<em class="parameter"><code><span class="type">GSList</span> *copy_to</code></em>,
1741
<em class="parameter"><code>const <span class="type">GSList</span> *strings</code></em>);</pre>
1742
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1743
<h3 class="title">Warning</h3>
1744
<p><code class="literal">e_client_util_copy_string_slist</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-Main-Utility-Toolbox.html#e-util-copy-string-slist" title="e_util_copy_string_slist ()"><code class="function">e_util_copy_string_slist()</code></a> instead.</p>
1747
Copies the <span class="type">GSList</span> of strings to the end of <em class="parameter"><code>copy_to</code></em>.
1749
<div class="variablelist"><table border="0">
1750
<col align="left" valign="top">
1753
<td><p><span class="term"><em class="parameter"><code>copy_to</code></em> :</span></p></td>
1754
<td>Where to copy; may be <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1758
<td><p><span class="term"><em class="parameter"><code>strings</code></em> :</span></p></td>
1760
<span class="type">GSList</span> of strings to be copied. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
1764
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1765
<td>New head of <em class="parameter"><code>copy_to</code></em>.
1766
The returned pointer can be freed with <a class="link" href="eds-EClient.html#e-client-util-free-string-slist" title="e_client_util_free_string_slist ()"><code class="function">e_client_util_free_string_slist()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
1771
<p class="since">Since 3.2</p>
1774
<div class="refsect2">
1775
<a name="e-client-util-copy-object-slist"></a><h3>e_client_util_copy_object_slist ()</h3>
1776
<pre class="programlisting"><span class="returnvalue">GSList</span> * e_client_util_copy_object_slist (<em class="parameter"><code><span class="type">GSList</span> *copy_to</code></em>,
1777
<em class="parameter"><code>const <span class="type">GSList</span> *objects</code></em>);</pre>
1778
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1779
<h3 class="title">Warning</h3>
1780
<p><code class="literal">e_client_util_copy_object_slist</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <a class="link" href="eds-Main-Utility-Toolbox.html#e-util-copy-object-slist" title="e_util_copy_object_slist ()"><code class="function">e_util_copy_object_slist()</code></a> instead.</p>
1783
Copies a <span class="type">GSList</span> of <span class="type">GObject</span>s to the end of <em class="parameter"><code>copy_to</code></em>.
1785
<div class="variablelist"><table border="0">
1786
<col align="left" valign="top">
1789
<td><p><span class="term"><em class="parameter"><code>copy_to</code></em> :</span></p></td>
1790
<td>Where to copy; may be <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GObject][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1794
<td><p><span class="term"><em class="parameter"><code>objects</code></em> :</span></p></td>
1796
<span class="type">GSList</span> of <span class="type">GObject</span>s to be copied. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GObject]</span>
1800
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1801
<td>New head of <em class="parameter"><code>copy_to</code></em>.
1802
The returned pointer can be freed with <a class="link" href="eds-EClient.html#e-client-util-free-object-slist" title="e_client_util_free_object_slist ()"><code class="function">e_client_util_free_object_slist()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GObject]</span>
1807
<p class="since">Since 3.2</p>
1810
<div class="refsect2">
1811
<a name="e-client-util-free-string-slist"></a><h3>e_client_util_free_string_slist ()</h3>
1812
<pre class="programlisting"><span class="returnvalue">void</span> e_client_util_free_string_slist (<em class="parameter"><code><span class="type">GSList</span> *strings</code></em>);</pre>
1813
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1814
<h3 class="title">Warning</h3>
1815
<p><code class="literal">e_client_util_free_string_slist</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <code class="function">g_slist_free_full()</code> instead.</p>
1818
Frees memory previously allocated by <a class="link" href="eds-EClient.html#e-client-util-strv-to-slist" title="e_client_util_strv_to_slist ()"><code class="function">e_client_util_strv_to_slist()</code></a>.
1820
<div class="variablelist"><table border="0">
1821
<col align="left" valign="top">
1823
<td><p><span class="term"><em class="parameter"><code>strings</code></em> :</span></p></td>
1824
<td>a <span class="type">GSList</span> of strings (gchar *). <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
1828
<p class="since">Since 3.2</p>
1831
<div class="refsect2">
1832
<a name="e-client-util-free-object-slist"></a><h3>e_client_util_free_object_slist ()</h3>
1833
<pre class="programlisting"><span class="returnvalue">void</span> e_client_util_free_object_slist (<em class="parameter"><code><span class="type">GSList</span> *objects</code></em>);</pre>
1834
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1835
<h3 class="title">Warning</h3>
1836
<p><code class="literal">e_client_util_free_object_slist</code> has been deprecated since version 3.8 and should not be used in newly-written code. Use <code class="function">g_slist_free_full()</code> instead.</p>
1839
Calls <code class="function">g_object_unref()</code> on each member of <em class="parameter"><code>objects</code></em> and then frees <em class="parameter"><code>objects</code></em>
1842
<div class="variablelist"><table border="0">
1843
<col align="left" valign="top">
1845
<td><p><span class="term"><em class="parameter"><code>objects</code></em> :</span></p></td>
1846
<td>a <span class="type">GSList</span> of <span class="type">GObject</span>s. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GObject]</span>
1850
<p class="since">Since 3.2</p>
1853
<div class="refsect2">
1854
<a name="EClientErrorsList"></a><h3>struct EClientErrorsList</h3>
1855
<pre class="programlisting">struct EClientErrorsList {
1860
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1861
<h3 class="title">Warning</h3>
1862
<p><code class="literal">EClientErrorsList</code> has been deprecated since version 3.8 and should not be used in newly-written code. This structure is no longer used.</p>
1864
<p class="since">Since 3.2</p>
1867
<div class="refsect2">
1868
<a name="e-client-util-unwrap-dbus-error"></a><h3>e_client_util_unwrap_dbus_error ()</h3>
1869
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_client_util_unwrap_dbus_error (<em class="parameter"><code><span class="type">GError</span> *dbus_error</code></em>,
1870
<em class="parameter"><code><span class="type">GError</span> **client_error</code></em>,
1871
<em class="parameter"><code>const <a class="link" href="eds-EClient.html#EClientErrorsList" title="struct EClientErrorsList"><span class="type">EClientErrorsList</span></a> *known_errors</code></em>,
1872
<em class="parameter"><code><span class="type">guint</span> known_errors_count</code></em>,
1873
<em class="parameter"><code><span class="type">GQuark</span> known_errors_domain</code></em>,
1874
<em class="parameter"><code><span class="type">gboolean</span> fail_when_none_matched</code></em>);</pre>
1875
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1876
<h3 class="title">Warning</h3>
1877
<p><code class="literal">e_client_util_unwrap_dbus_error</code> has been deprecated since version 3.8 and should not be used in newly-written code. This function is no longer used.</p>
1880
The function takes a <em class="parameter"><code>dbus_error</code></em> and tries to find a match in <em class="parameter"><code>known_errors</code></em>
1881
for it, if it is a G_IO_ERROR, G_IO_ERROR_DBUS_ERROR. If it is anything else
1882
then the <em class="parameter"><code>dbus_error</code></em> is moved to <em class="parameter"><code>client_error</code></em>.
1885
The <em class="parameter"><code>fail_when_none_matched</code></em> influences behaviour. If it's <code class="literal">TRUE</code>, and none of
1886
<em class="parameter"><code>known_errors</code></em> matches, or this is not a G_IO_ERROR_DBUS_ERROR, then <code class="literal">FALSE</code>
1887
is returned and the <em class="parameter"><code>client_error</code></em> is left without change. Otherwise, the
1888
<em class="parameter"><code>fail_when_none_matched</code></em> is <code class="literal">FALSE</code>, the error is always processed and will
1889
result in E_CLIENT_ERROR, E_CLIENT_ERROR_OTHER_ERROR if none of <em class="parameter"><code>known_error</code></em>
1892
<div class="variablelist"><table border="0">
1893
<col align="left" valign="top">
1896
<td><p><span class="term"><em class="parameter"><code>dbus_error</code></em> :</span></p></td>
1897
<td>DBus <span class="type">GError</span> to unwrap</td>
1900
<td><p><span class="term"><em class="parameter"><code>client_error</code></em> :</span></p></td>
1901
<td>Resulting <span class="type">GError</span>; can be <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1905
<td><p><span class="term"><em class="parameter"><code>known_errors</code></em> :</span></p></td>
1906
<td>List of known errors against which try to match</td>
1909
<td><p><span class="term"><em class="parameter"><code>known_errors_count</code></em> :</span></p></td>
1910
<td>How many items are stored in <em class="parameter"><code>known_errors</code></em>
1914
<td><p><span class="term"><em class="parameter"><code>known_errors_domain</code></em> :</span></p></td>
1915
<td>Error domain for <em class="parameter"><code>known_errors</code></em>
1919
<td><p><span class="term"><em class="parameter"><code>fail_when_none_matched</code></em> :</span></p></td>
1920
<td>Whether to fail when none of <em class="parameter"><code>known_errors</code></em> matches</td>
1923
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1924
<td>Whether was <em class="parameter"><code>dbus_error</code></em> processed into <em class="parameter"><code>client_error</code></em>.
1925
Note: The <em class="parameter"><code>dbus_error</code></em> is automatically freed if returned <code class="literal">TRUE</code>.</td>
1929
<p class="since">Since 3.2</p>
1933
<div class="footer">
1935
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'