49
49
#include <libedataserver/libedataserver.h>
51
51
struct <a class="link" href="ESourceRegistry.html#ESourceRegistry-struct" title="struct ESourceRegistry">ESourceRegistry</a>;
52
<a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="returnvalue">ESourceRegistry</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-new-sync" title="e_source_registry_new_sync ()">e_source_registry_new_sync</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-new" title="e_source_registry_new ()">e_source_registry_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
57
<a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="returnvalue">ESourceRegistry</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-new-finish" title="e_source_registry_new_finish ()">e_source_registry_new_finish</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
59
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-authenticate-sync" title="e_source_registry_authenticate_sync ()">e_source_registry_authenticate_sync</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
52
<a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="returnvalue">ESourceRegistry</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-new-sync" title="e_source_registry_new_sync ()">e_source_registry_new_sync</a> (<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
53
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-new" title="e_source_registry_new ()">e_source_registry_new</a> (<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
55
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
56
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
57
<a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="returnvalue">ESourceRegistry</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-new-finish" title="e_source_registry_new_finish ()">e_source_registry_new_finish</a> (<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
58
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
59
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-authenticate-sync" title="e_source_registry_authenticate_sync ()">e_source_registry_authenticate_sync</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
60
60
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
61
61
<em class="parameter"><code><a class="link" href="ESourceAuthenticator.html" title="ESourceAuthenticator"><span class="type">ESourceAuthenticator</span></a> *auth</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
62
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
63
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
64
64
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-authenticate" title="e_source_registry_authenticate ()">e_source_registry_authenticate</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
65
65
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
66
66
<em class="parameter"><code><a class="link" href="ESourceAuthenticator.html" title="ESourceAuthenticator"><span class="type">ESourceAuthenticator</span></a> *auth</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
68
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
70
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-authenticate-finish" title="e_source_registry_authenticate_finish ()">e_source_registry_authenticate_finish</a>
67
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
68
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
69
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
70
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-authenticate-finish" title="e_source_registry_authenticate_finish ()">e_source_registry_authenticate_finish</a>
71
71
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
74
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-commit-source-sync" title="e_source_registry_commit_source_sync ()">e_source_registry_commit_source_sync</a>
72
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
73
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
74
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-commit-source-sync" title="e_source_registry_commit_source_sync ()">e_source_registry_commit_source_sync</a>
75
75
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
76
76
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
77
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
77
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
78
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
79
79
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-commit-source" title="e_source_registry_commit_source ()">e_source_registry_commit_source</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
80
80
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
81
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
83
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
84
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-commit-source-finish" title="e_source_registry_commit_source_finish ()">e_source_registry_commit_source_finish</a>
85
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
86
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
87
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
88
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources-sync" title="e_source_registry_create_sources_sync ()">e_source_registry_create_sources_sync</a>
89
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
90
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list_of_sources</code></em>,
91
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
92
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
81
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
82
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
83
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
84
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-commit-source-finish" title="e_source_registry_commit_source_finish ()">e_source_registry_commit_source_finish</a>
85
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
86
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
87
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
88
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources-sync" title="e_source_registry_create_sources_sync ()">e_source_registry_create_sources_sync</a>
89
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
90
<em class="parameter"><code><span class="type">GList</span> *list_of_sources</code></em>,
91
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
92
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
93
93
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources" title="e_source_registry_create_sources ()">e_source_registry_create_sources</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
94
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list_of_sources</code></em>,
95
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
96
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
97
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
98
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources-finish" title="e_source_registry_create_sources_finish ()">e_source_registry_create_sources_finish</a>
94
<em class="parameter"><code><span class="type">GList</span> *list_of_sources</code></em>,
95
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
96
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
97
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
98
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources-finish" title="e_source_registry_create_sources_finish ()">e_source_registry_create_sources_finish</a>
99
99
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
100
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
101
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
100
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
101
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
102
102
<a class="link" href="ESource.html" title="ESource"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-ref-source" title="e_source_registry_ref_source ()">e_source_registry_ref_source</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
103
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uid</code></em>);
104
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-list-sources" title="e_source_registry_list_sources ()">e_source_registry_list_sources</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
105
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *extension_name</code></em>);
103
<em class="parameter"><code>const <span class="type">gchar</span> *uid</code></em>);
104
<span class="returnvalue">GList</span> * <a class="link" href="ESourceRegistry.html#e-source-registry-list-sources" title="e_source_registry_list_sources ()">e_source_registry_list_sources</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
105
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);
106
106
<a class="link" href="ESource.html" title="ESource"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-find-extension" title="e_source_registry_find_extension ()">e_source_registry_find_extension</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
107
107
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
108
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *extension_name</code></em>);
109
<a href="http://library.gnome.org/devel/glib/unstable/glib-N-ary-Trees.html#GNode"><span class="returnvalue">GNode</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-build-display-tree" title="e_source_registry_build_display_tree ()">e_source_registry_build_display_tree</a>
108
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);
109
<span class="returnvalue">GNode</span> * <a class="link" href="ESourceRegistry.html#e-source-registry-build-display-tree" title="e_source_registry_build_display_tree ()">e_source_registry_build_display_tree</a>
110
110
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
111
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *extension_name</code></em>);
112
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-free-display-tree" title="e_source_registry_free_display_tree ()">e_source_registry_free_display_tree</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> *display_tree</code></em>);
111
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);
112
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-free-display-tree" title="e_source_registry_free_display_tree ()">e_source_registry_free_display_tree</a> (<em class="parameter"><code><span class="type">GNode</span> *display_tree</code></em>);
113
113
<span class="returnvalue">void</span> <a class="link" href="ESourceRegistry.html#e-source-registry-debug-dump" title="e_source_registry_debug_dump ()">e_source_registry_debug_dump</a> (<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
114
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *extension_name</code></em>);
114
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);
115
115
<a class="link" href="ESource.html" title="ESource"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-ref-builtin-address-book" title="e_source_registry_ref_builtin_address_book ()">e_source_registry_ref_builtin_address_book</a>
116
116
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>);
117
117
<a class="link" href="ESource.html" title="ESource"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceRegistry.html#e-source-registry-ref-default-address-book" title="e_source_registry_ref_default_address_book ()">e_source_registry_ref_default_address_book</a>
497
497
<div class="refsect2">
498
498
<a name="e-source-registry-commit-source-sync"></a><h3>e_source_registry_commit_source_sync ()</h3>
499
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> e_source_registry_commit_source_sync
499
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_registry_commit_source_sync
500
500
(<em class="parameter"><code><a class="link" href="ESourceRegistry.html" title="ESourceRegistry"><span class="type">ESourceRegistry</span></a> *registry</code></em>,
501
501
<em class="parameter"><code><a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> *source</code></em>,
502
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
503
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
502
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
503
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
505
505
This is a convenience function intended for use with graphical
506
506
<a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a> editors. Call this function when the user is finished
507
507
making changes to <em class="parameter"><code>source</code></em>.
510
If <em class="parameter"><code>source</code></em> has a <a href="http://library.gnome.org/devel/gio/unstable/GDBusObject.html"><span class="type">GDBusObject</span></a>, its contents are submitted to the D-Bus
510
If <em class="parameter"><code>source</code></em> has a <span class="type">GDBusObject</span>, its contents are submitted to the D-Bus
511
511
service through <a class="link" href="ESource.html#e-source-write-sync" title="e_source_write_sync ()"><code class="function">e_source_write_sync()</code></a>.
514
If <em class="parameter"><code>source</code></em> does NOT have a <a href="http://library.gnome.org/devel/gio/unstable/GDBusObject.html"><span class="type">GDBusObject</span></a> (implying it's a scratch
514
If <em class="parameter"><code>source</code></em> does NOT have a <span class="type">GDBusObject</span> (implying it's a scratch
515
515
<a class="link" href="ESource.html" title="ESource"><span class="type">ESource</span></a>), its contents are submitted to the D-Bus service through
516
516
either <a class="link" href="ESource.html#e-source-remote-create-sync" title="e_source_remote_create_sync ()"><code class="function">e_source_remote_create_sync()</code></a> if <em class="parameter"><code>source</code></em> is to be a collection
517
517
member, or <a class="link" href="ESourceRegistry.html#e-source-registry-create-sources-sync" title="e_source_registry_create_sources_sync ()"><code class="function">e_source_registry_create_sources_sync()</code></a> if <em class="parameter"><code>source</code></em> to be an
518
518
independent data source.
521
If an error occurs, the function will set <em class="parameter"><code>error</code></em> and return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.
521
If an error occurs, the function will set <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>.
523
523
<div class="variablelist"><table border="0">
524
524
<col align="left" valign="top">
1613
1613
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceAddressBook.html#E-SOURCE-EXTENSION-ADDRESS-BOOK:CAPS" title="E_SOURCE_EXTENSION_ADDRESS_BOOK"><span class="type">E_SOURCE_EXTENSION_ADDRESS_BOOK</span></a>, the function
1614
1614
sets <em class="parameter"><code>default_source</code></em> as the default address book. If <em class="parameter"><code>default_source</code></em>
1615
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the default address book is reset to the built-in address book.
1615
is <code class="literal">NULL</code>, the default address book is reset to the built-in address book.
1618
1618
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceCalendar.html#E-SOURCE-EXTENSION-CALENDAR:CAPS" title="E_SOURCE_EXTENSION_CALENDAR"><span class="type">E_SOURCE_EXTENSION_CALENDAR</span></a>, the function sets
1619
<em class="parameter"><code>default_source</code></em> as the default calendar. If <em class="parameter"><code>default_source</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
1619
<em class="parameter"><code>default_source</code></em> as the default calendar. If <em class="parameter"><code>default_source</code></em> is <code class="literal">NULL</code>,
1620
1620
the default calendar is reset to the built-in calendar.
1623
1623
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceMailAccount.html#E-SOURCE-EXTENSION-MAIL-ACCOUNT:CAPS" title="E_SOURCE_EXTENSION_MAIL_ACCOUNT"><span class="type">E_SOURCE_EXTENSION_MAIL_ACCOUNT</span></a>, the function
1624
1624
sets <em class="parameter"><code>default_source</code></em> as the default mail account. If <em class="parameter"><code>default_source</code></em>
1625
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the default mail account is reset to the built-in mail account.
1625
is <code class="literal">NULL</code>, the default mail account is reset to the built-in mail account.
1628
1628
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceMailIdentity.html#E-SOURCE-EXTENSION-MAIL-IDENTITY:CAPS" title="E_SOURCE_EXTENSION_MAIL_IDENTITY"><span class="type">E_SOURCE_EXTENSION_MAIL_IDENTITY</span></a>, the function
1629
1629
sets <em class="parameter"><code>default_source</code></em> as the default mail identity. If <em class="parameter"><code>default_source</code></em>
1630
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the next request for the default mail identity will return
1630
is <code class="literal">NULL</code>, the next request for the default mail identity will return
1631
1631
the mail identity named by the default mail account.
1634
1634
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceMemoList.html#E-SOURCE-EXTENSION-MEMO-LIST:CAPS" title="E_SOURCE_EXTENSION_MEMO_LIST"><span class="type">E_SOURCE_EXTENSION_MEMO_LIST</span></a>, the function sets
1635
<em class="parameter"><code>default_source</code></em> as the default memo list. If <em class="parameter"><code>default_source</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
1635
<em class="parameter"><code>default_source</code></em> as the default memo list. If <em class="parameter"><code>default_source</code></em> is <code class="literal">NULL</code>,
1636
1636
the default memo list is reset to the built-in memo list.
1639
1639
If <em class="parameter"><code>extension_name</code></em> is <a class="link" href="ESourceTaskList.html#E-SOURCE-EXTENSION-TASK-LIST:CAPS" title="E_SOURCE_EXTENSION_TASK_LIST"><span class="type">E_SOURCE_EXTENSION_TASK_LIST</span></a>, the function sets
1640
<em class="parameter"><code>default_source</code></em> as the default task list. If <em class="parameter"><code>default_source</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
1640
<em class="parameter"><code>default_source</code></em> as the default task list. If <em class="parameter"><code>default_source</code></em> is <code class="literal">NULL</code>,
1641
1641
the default task list is reset to the built-in task list.