102
107
<span class="returnvalue">gboolean</span> <a class="link" href="ESource.html#e-source-write-finish" title="e_source_write_finish ()">e_source_write_finish</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
103
108
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
104
109
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
110
<span class="returnvalue">gboolean</span> <a class="link" href="ESource.html#e-source-remote-create-sync" title="e_source_remote_create_sync ()">e_source_remote_create_sync</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
111
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *scratch_source</code></em>,
112
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
113
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
114
<span class="returnvalue">void</span> <a class="link" href="ESource.html#e-source-remote-create" title="e_source_remote_create ()">e_source_remote_create</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
115
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *scratch_source</code></em>,
116
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
117
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
118
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
119
<span class="returnvalue">gboolean</span> <a class="link" href="ESource.html#e-source-remote-create-finish" title="e_source_remote_create_finish ()">e_source_remote_create_finish</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
120
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
121
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
122
<span class="returnvalue">gboolean</span> <a class="link" href="ESource.html#e-source-remote-delete-sync" title="e_source_remote_delete_sync ()">e_source_remote_delete_sync</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</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="ESource.html#e-source-remote-delete" title="e_source_remote_delete ()">e_source_remote_delete</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
126
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
127
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
128
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
129
<span class="returnvalue">gboolean</span> <a class="link" href="ESource.html#e-source-remote-delete-finish" title="e_source_remote_delete_finish ()">e_source_remote_delete_finish</a> (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
130
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
131
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
107
134
<div class="refsect1">
565
633
<div class="refsect2">
634
<a name="e-source-get-remote-creatable"></a><h3>e_source_get_remote_creatable ()</h3>
635
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_get_remote_creatable (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>);</pre>
637
Returns whether new resources can be created on a remote server by
638
calling <a class="link" href="ESource.html#e-source-remote-create" title="e_source_remote_create ()"><code class="function">e_source_remote_create()</code></a> on <em class="parameter"><code>source</code></em>.
641
Generally this is only <code class="literal">TRUE</code> if <em class="parameter"><code>source</code></em> has an <a class="link" href="ESourceCollection.html" title="ESourceCollection"><span class="type">ESourceCollection</span></a>
642
extension, which means there is an <span class="type">ECollectionBackend</span> in the D-Bus
643
service that can handle create requests. If <em class="parameter"><code>source</code></em> does not have
644
this capability, calls to <a class="link" href="ESource.html#e-source-remote-create" title="e_source_remote_create ()"><code class="function">e_source_remote_create()</code></a> will fail.
646
<div class="variablelist"><table border="0">
647
<col align="left" valign="top">
650
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
651
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
655
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
656
<td>whether <em class="parameter"><code>source</code></em> can create remote resources</td>
660
<p class="since">Since 3.6</p>
663
<div class="refsect2">
664
<a name="e-source-get-remote-deletable"></a><h3>e_source_get_remote_deletable ()</h3>
665
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_get_remote_deletable (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>);</pre>
667
Returns whether the resource represented by <em class="parameter"><code>source</code></em> can be deleted
668
from a remote server by calling <a class="link" href="ESource.html#e-source-remote-delete" title="e_source_remote_delete ()"><code class="function">e_source_remote_delete()</code></a>.
671
Generally this is only <code class="literal">TRUE</code> if <em class="parameter"><code>source</code></em> is a child of an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
672
which has an <a class="link" href="ESourceCollection.html" title="ESourceCollection"><span class="type">ESourceCollection</span></a> extension, which means there is an
673
<span class="type">ECollectionBackend</span> in the D-Bus service that can handle delete
674
requests. If <em class="parameter"><code>source</code></em> does not have this capability, calls to
675
<a class="link" href="ESource.html#e-source-remote-delete" title="e_source_remote_delete ()"><code class="function">e_source_remote_delete()</code></a> will fail.
677
<div class="variablelist"><table border="0">
678
<col align="left" valign="top">
681
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
682
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
686
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
687
<td>whether <em class="parameter"><code>source</code></em> can delete remote resources</td>
691
<p class="since">Since 3.6</p>
694
<div class="refsect2">
566
695
<a name="e-source-get-extension"></a><h3>e_source_get_extension ()</h3>
567
696
<pre class="programlisting"><span class="returnvalue">gpointer</span> e_source_get_extension (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
568
697
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);</pre>
1092
1228
<p class="since">Since 3.6</p>
1231
<div class="refsect2">
1232
<a name="e-source-remote-create-sync"></a><h3>e_source_remote_create_sync ()</h3>
1233
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_remote_create_sync (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1234
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *scratch_source</code></em>,
1235
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1236
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1238
Creates a new remote resource by picking out relevant details from
1239
<em class="parameter"><code>scratch_source</code></em>. The <em class="parameter"><code>scratch_source</code></em> must be an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> with no
1240
<span class="type">GDBusObject</span>. The <em class="parameter"><code>source</code></em> must be <a class="link" href="ESource.html#ESource--remote-creatable" title='The "remote-creatable" property'><span class="type">"remote-creatable"</span></a>.
1243
The details required to create the resource vary by <span class="type">ECollectionBackend</span>,
1244
but in most cases the <em class="parameter"><code>scratch_source</code></em> need only define the resource type
1245
(address book, calendar, etc.), a display name for the resource, and
1246
possibly a server-side path or ID for the resource.
1249
If an error occurs, the function will set <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>.
1251
<div class="variablelist"><table border="0">
1252
<col align="left" valign="top">
1255
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1256
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1260
<td><p><span class="term"><em class="parameter"><code>scratch_source</code></em> :</span></p></td>
1261
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> describing the resource to create</td>
1264
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1265
<td>optional <span class="type">GCancellable</span> object, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1269
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1270
<td>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>
1274
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1276
<code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> on failure</td>
1280
<p class="since">Since 3.6</p>
1283
<div class="refsect2">
1284
<a name="e-source-remote-create"></a><h3>e_source_remote_create ()</h3>
1285
<pre class="programlisting"><span class="returnvalue">void</span> e_source_remote_create (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1286
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *scratch_source</code></em>,
1287
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1288
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1289
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1291
Asynchronously creates a new remote resource by picking out relevant
1292
details from <em class="parameter"><code>scratch_source</code></em>. The <em class="parameter"><code>scratch_source</code></em> must be an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1293
with no <span class="type">GDBusObject</span>. The <em class="parameter"><code>source</code></em> must be <a class="link" href="ESource.html#ESource--remote-creatable" title='The "remote-creatable" property'><span class="type">"remote-creatable"</span></a>.
1296
The details required to create the resource vary by <span class="type">ECollectionBackend</span>,
1297
but in most cases the <em class="parameter"><code>scratch_source</code></em> need only define the resource type
1298
(address book, calendar, etc.), a display name for the resource, and
1299
possibly a server-side path or ID for the resource.
1302
When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You can then
1303
call <code class="function">3_source_remote_create_finish()</code> to get the result of the operation.
1305
<div class="variablelist"><table border="0">
1306
<col align="left" valign="top">
1309
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1310
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1314
<td><p><span class="term"><em class="parameter"><code>scratch_source</code></em> :</span></p></td>
1315
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> describing the resource to create</td>
1318
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1319
<td>optional <span class="type">GCancellable</span> object, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1323
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1324
<td>a <span class="type">GAsyncReadyCallback</span> to call when the request
1325
is satisfied. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
1329
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1330
<td>data to pass to the callback function. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
1335
<p class="since">Since 3.6</p>
1338
<div class="refsect2">
1339
<a name="e-source-remote-create-finish"></a><h3>e_source_remote_create_finish ()</h3>
1340
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_remote_create_finish (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1341
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1342
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1344
Finishes the operation started with <a class="link" href="ESource.html#e-source-remote-create" title="e_source_remote_create ()"><code class="function">e_source_remote_create()</code></a>. If
1345
an error occurred, the function will set <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>.
1347
<div class="variablelist"><table border="0">
1348
<col align="left" valign="top">
1351
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1352
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1356
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1357
<td>a <span class="type">GAsyncResult</span>
1361
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1362
<td>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>
1366
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1368
<code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> on failure</td>
1372
<p class="since">Since 3.6</p>
1375
<div class="refsect2">
1376
<a name="e-source-remote-delete-sync"></a><h3>e_source_remote_delete_sync ()</h3>
1377
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_remote_delete_sync (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1378
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1379
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1381
Deletes the resource represented by <em class="parameter"><code>source</code></em> from a remote server.
1382
The <em class="parameter"><code>source</code></em> must be <a class="link" href="ESource.html#ESource--remote-deletable" title='The "remote-deletable" property'><span class="type">"remote-deletable"</span></a>. This will also delete
1383
the key file for <em class="parameter"><code>source</code></em> and broadcast its removal to all clients,
1384
similar to <a class="link" href="ESource.html#e-source-remove-sync" title="e_source_remove_sync ()"><code class="function">e_source_remove_sync()</code></a>.
1387
If an error occurs, the function will set <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>.
1389
<div class="variablelist"><table border="0">
1390
<col align="left" valign="top">
1393
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1394
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1398
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1399
<td>optional <span class="type">GCancellable</span> object, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1403
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1404
<td>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>
1408
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1410
<code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> on failure</td>
1414
<p class="since">Since 3.6</p>
1417
<div class="refsect2">
1418
<a name="e-source-remote-delete"></a><h3>e_source_remote_delete ()</h3>
1419
<pre class="programlisting"><span class="returnvalue">void</span> e_source_remote_delete (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1420
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1421
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
1422
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
1424
Asynchronously deletes the resource represented by <em class="parameter"><code>source</code></em> from a remote
1425
server. The <em class="parameter"><code>source</code></em> must be <a class="link" href="ESource.html#ESource--remote-deletable" title='The "remote-deletable" property'><span class="type">"remote-deletable"</span></a>. This will also
1426
delete the key file for <em class="parameter"><code>source</code></em> and broadcast its removal to all clients,
1427
similar to <a class="link" href="ESource.html#e-source-remove" title="e_source_remove ()"><code class="function">e_source_remove()</code></a>.
1430
When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You can then
1431
call <a class="link" href="ESource.html#e-source-remote-delete-finish" title="e_source_remote_delete_finish ()"><code class="function">e_source_remote_delete_finish()</code></a> to get the result of the operation.
1433
<div class="variablelist"><table border="0">
1434
<col align="left" valign="top">
1437
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1438
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1442
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1443
<td>optional <span class="type">GCancellable</span> object, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1447
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1448
<td>a <span class="type">GAsyncReadyCallback</span> to call when the request
1449
is satisfied. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
1453
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1454
<td>data to pass to the callback function. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
1459
<p class="since">Since 3.6</p>
1462
<div class="refsect2">
1463
<a name="e-source-remote-delete-finish"></a><h3>e_source_remote_delete_finish ()</h3>
1464
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_remote_delete_finish (<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
1465
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
1466
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1468
Finishes the operation started with <a class="link" href="ESource.html#e-source-remote-delete" title="e_source_remote_delete ()"><code class="function">e_source_remote_delete()</code></a>. If
1469
an error occurred, the function will set <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>.
1471
<div class="variablelist"><table border="0">
1472
<col align="left" valign="top">
1475
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
1476
<td>an <a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>
1480
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1481
<td>a <span class="type">GAsyncResult</span>
1485
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1486
<td>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>
1490
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1492
<code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> on failure</td>
1496
<p class="since">Since 3.6</p>
1095
1499
<div class="refsect1">
1096
1500
<a name="ESource.property-details"></a><h2>Property Details</h2>
1097
1501
<div class="refsect2">
1098
1502
<a name="ESource--dbus-object"></a><h3>The <code class="literal">"dbus-object"</code> property</h3>
1099
<pre class="programlisting"> "dbus-object" <a href="../libedbus-private/EDBusObject.html"><span class="type">EDBusObject</span></a>* : Read / Write / Construct Only</pre>
1503
<pre class="programlisting"> "dbus-object" <span class="type">EDBusObject</span>* : Read / Write / Construct Only</pre>
1100
1504
<p>The D-Bus object for the data source.</p>