55
57
<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> * <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-new" title="tp_account_manager_new ()">tp_account_manager_new</a> (<a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon">TpDBusDaemon</a> *bus_daemon);
56
58
void <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-init-known-interfaces" title="tp_account_manager_init_known_interfaces ()">tp_account_manager_init_known_interfaces</a>
60
<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> * <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-dup" title="tp_account_manager_dup ()">tp_account_manager_dup</a> (void);
61
void <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-create-account-async" title="tp_account_manager_create_account_async ()">tp_account_manager_create_account_async</a>
62
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
64
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
65
>gchar</a> *connection_manager,
67
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
70
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
71
>gchar</a> *display_name,
73
href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"
74
>GHashTable</a> *parameters,
76
href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"
77
>GHashTable</a> *properties,
79
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
80
>GAsyncReadyCallback</a> callback,
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
83
>gpointer</a> user_data);
84
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> * <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-create-account-finish" title="tp_account_manager_create_account_finish ()">tp_account_manager_create_account_finish</a>
85
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
87
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
88
>GAsyncResult</a> *result,
90
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
92
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> * <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-ensure-account" title="tp_account_manager_ensure_account ()">tp_account_manager_ensure_account</a> (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
94
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
97
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
98
>GList</a> * <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-get-valid-accounts" title="tp_account_manager_get_valid_accounts ()">tp_account_manager_get_valid_accounts</a>
99
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager);
100
<a class="link" href="telepathy-glib-enums.html#TpConnectionPresenceType" title="enum TpConnectionPresenceType">TpConnectionPresenceType</a> <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-get-most-available-presence" title="tp_account_manager_get_most_available_presence ()">tp_account_manager_get_most_available_presence</a>
101
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
103
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
106
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
107
>gchar</a> **message);
108
void <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-set-all-requested-presences" title="tp_account_manager_set_all_requested_presences ()">tp_account_manager_set_all_requested_presences</a>
109
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
110
<a class="link" href="telepathy-glib-enums.html#TpConnectionPresenceType" title="enum TpConnectionPresenceType">TpConnectionPresenceType</a> type,
112
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
115
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
116
>gchar</a> *message);
117
void <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-enable-restart" title="tp_account_manager_enable_restart ()">tp_account_manager_enable_restart</a> (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager);
119
#define <a class="link" href="telepathy-glib-account-manager.html#TP-ACCOUNT-MANAGER-FEATURE-CORE--CAPS" title="TP_ACCOUNT_MANAGER_FEATURE_CORE">TP_ACCOUNT_MANAGER_FEATURE_CORE</a>
121
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
122
>gboolean</a> <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-is-prepared" title="tp_account_manager_is_prepared ()">tp_account_manager_is_prepared</a> (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
124
href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"
125
>GQuark</a> feature);
126
void <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-async" title="tp_account_manager_prepare_async ()">tp_account_manager_prepare_async</a> (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
128
href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"
129
>GQuark</a> *features,
131
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
132
>GAsyncReadyCallback</a> callback,
134
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
135
>gpointer</a> user_data);
137
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
138
>gboolean</a> <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-finish" title="tp_account_manager_prepare_finish ()">tp_account_manager_prepare_finish</a> (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
140
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
141
>GAsyncResult</a> *result,
143
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
144
>GError</a> **error);
59
147
void (<a class="link" href="telepathy-glib-account-manager.html#tp-cli-account-manager-callback-for-create-account" title="tp_cli_account_manager_callback_for_create_account ()">*tp_cli_account_manager_callback_for_create_account</a>)
60
148
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *proxy,
250
344
<p class="since">Since 0.7.32</p>
347
<div class="refsect2" title="tp_account_manager_dup ()">
348
<a name="tp-account-manager-dup"></a><h3>tp_account_manager_dup ()</h3>
349
<pre class="programlisting"><a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> * tp_account_manager_dup (void);</pre>
351
Returns an account manager proxy on the D-Bus daemon on which this
352
process was activated (if it was launched by D-Bus service activation), or
353
the session bus (otherwise).
356
The returned <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> is cached; the same <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> object
357
will be returned by this function repeatedly, as long as at least one
358
reference exists. Note that the returned <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> is not guaranteed
359
to be ready on return.</p>
362
<div class="variablelist"><table border="0">
363
<col align="left" valign="top">
365
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
366
<td> an account manager proxy on the starter or session bus, or <a
367
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
368
><code class="literal">NULL</code></a>
369
if it wasn't possible to get a dbus daemon proxy for the
375
<p class="since">Since 0.9.0</p>
378
<div class="refsect2" title="tp_account_manager_create_account_async ()">
379
<a name="tp-account-manager-create-account-async"></a><h3>tp_account_manager_create_account_async ()</h3>
380
<pre class="programlisting">void tp_account_manager_create_account_async
381
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
383
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
384
>gchar</a> *connection_manager,
386
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
387
>gchar</a> *protocol,
389
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
390
>gchar</a> *display_name,
392
href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"
393
>GHashTable</a> *parameters,
395
href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"
396
>GHashTable</a> *properties,
398
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
399
>GAsyncReadyCallback</a> callback,
401
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
402
>gpointer</a> user_data);</pre>
404
Requests an asynchronous create of an account on the account manager
405
<em class="parameter"><code>manager</code></em>. When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You can
406
then call <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-create-account-finish" title="tp_account_manager_create_account_finish ()"><code class="function">tp_account_manager_create_account_finish()</code></a> to get the result of
410
<em class="parameter"><code>callback</code></em> will only be called when the newly created <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> has the
411
<a class="link" href="telepathy-glib-account.html#TP-ACCOUNT-FEATURE-CORE--CAPS" title="TP_ACCOUNT_FEATURE_CORE"><code class="literal">TP_ACCOUNT_FEATURE_CORE</code></a> feature ready on it, so when calling
412
<a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-create-account-finish" title="tp_account_manager_create_account_finish ()"><code class="function">tp_account_manager_create_account_finish()</code></a>, one can guarantee this feature
416
<div class="variablelist"><table border="0">
417
<col align="left" valign="top">
420
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
421
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
425
<td><p><span class="term"><em class="parameter"><code>connection_manager</code></em> :</span></p></td>
426
<td> the name of a connection manager
430
<td><p><span class="term"><em class="parameter"><code>protocol</code></em> :</span></p></td>
431
<td> the name of a protocol
435
<td><p><span class="term"><em class="parameter"><code>display_name</code></em> :</span></p></td>
436
<td> the display name for the account
440
<td><p><span class="term"><em class="parameter"><code>parameters</code></em> :</span></p></td>
441
<td> parameters for the new account
445
<td><p><span class="term"><em class="parameter"><code>properties</code></em> :</span></p></td>
446
<td> properties for the new account
450
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
451
<td> a callback to call when the request is satisfied
455
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
456
<td> data to pass to <em class="parameter"><code>callback</code></em>
461
<p class="since">Since 0.9.0</p>
464
<div class="refsect2" title="tp_account_manager_create_account_finish ()">
465
<a name="tp-account-manager-create-account-finish"></a><h3>tp_account_manager_create_account_finish ()</h3>
466
<pre class="programlisting"><a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> * tp_account_manager_create_account_finish
467
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
469
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
470
>GAsyncResult</a> *result,
472
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
473
>GError</a> **error);</pre>
475
Finishes an async create account operation, and returns a new <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
476
object, with the <a class="link" href="telepathy-glib-account.html#TP-ACCOUNT-FEATURE-CORE--CAPS" title="TP_ACCOUNT_FEATURE_CORE"><code class="literal">TP_ACCOUNT_FEATURE_CORE</code></a> feature ready on it.</p>
479
<div class="variablelist"><table border="0">
480
<col align="left" valign="top">
483
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
484
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
488
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
490
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
491
><span class="type">GAsyncResult</span></a>
495
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
497
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
498
><span class="type">GError</span></a> to be filled
502
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
503
<td> a new <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> which was just created on success, otherwise
505
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
506
><code class="literal">NULL</code></a>
512
<p class="since">Since 0.9.0</p>
515
<div class="refsect2" title="tp_account_manager_ensure_account ()">
516
<a name="tp-account-manager-ensure-account"></a><h3>tp_account_manager_ensure_account ()</h3>
517
<pre class="programlisting"><a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> * tp_account_manager_ensure_account (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
519
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
520
>gchar</a> *path);</pre>
522
Lookup an account in the account manager <em class="parameter"><code>manager</code></em>. If the desired account
523
has already been ensured then the same object will be returned, otherwise
524
it will create a new <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> and add it to <em class="parameter"><code>manager</code></em>. As a result, if
525
<em class="parameter"><code>manager</code></em> thinks that the account doesn't exist, this will still add it to
526
<em class="parameter"><code>manager</code></em> to avoid races. Note that the returned <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> is not guaranteed
527
to be ready on return.
530
The caller must keep a ref to the returned object using <a
531
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"
532
><code class="function">g_object_ref()</code></a> if
533
it is to be kept.</p>
536
<div class="variablelist"><table border="0">
537
<col align="left" valign="top">
540
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
541
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
545
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
546
<td> the object path for an account
550
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
551
<td> a new <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> at <em class="parameter"><code>path</code></em>
557
<p class="since">Since 0.9.0</p>
560
<div class="refsect2" title="tp_account_manager_get_valid_accounts ()">
561
<a name="tp-account-manager-get-valid-accounts"></a><h3>tp_account_manager_get_valid_accounts ()</h3>
562
<pre class="programlisting"><a
563
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
564
>GList</a> * tp_account_manager_get_valid_accounts
565
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager);</pre>
567
Returns a newly allocated <a
568
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
569
><span class="type">GList</span></a> of valid accounts in <em class="parameter"><code>manager</code></em>. The list
570
must be freed with <a
571
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"
572
><code class="function">g_list_free()</code></a> after used. None of the accounts in the
573
returned list are guaranteed to be ready.
576
Note that the <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>s in the returned <a
577
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
578
><span class="type">GList</span></a> are not reffed
579
before returning from this function. One could ref every item in the list
580
like the following example:
582
<div class="informalexample"><pre class="programlisting">
584
account = tp_account_manager_get_valid_accounts (manager);
585
g_list_foreach (accounts, (GFunc) g_object_ref, NULL);
590
The list of valid accounts returned is not guaranteed to have been retrieved
591
until <a class="link" href="telepathy-glib-account-manager.html#TP-ACCOUNT-MANAGER-FEATURE-CORE--CAPS" title="TP_ACCOUNT_MANAGER_FEATURE_CORE"><code class="literal">TP_ACCOUNT_MANAGER_FEATURE_CORE</code></a> is prepared
592
(<a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-async" title="tp_account_manager_prepare_async ()"><code class="function">tp_account_manager_prepare_async()</code></a> has returned). Until this feature has
593
been prepared, an empty list (<a
594
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
595
><code class="literal">NULL</code></a>) will be returned.</p>
598
<div class="variablelist"><table border="0">
599
<col align="left" valign="top">
602
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
603
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
607
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
608
<td> a newly allocated <a
609
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
610
><span class="type">GList</span></a> of valid accounts in <em class="parameter"><code>manager</code></em>
616
<p class="since">Since 0.9.0</p>
619
<div class="refsect2" title="tp_account_manager_get_most_available_presence ()">
620
<a name="tp-account-manager-get-most-available-presence"></a><h3>tp_account_manager_get_most_available_presence ()</h3>
621
<pre class="programlisting"><a class="link" href="telepathy-glib-enums.html#TpConnectionPresenceType" title="enum TpConnectionPresenceType">TpConnectionPresenceType</a> tp_account_manager_get_most_available_presence
622
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
624
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
627
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
628
>gchar</a> **message);</pre>
630
Gets the most available presence over all accounts in <em class="parameter"><code>manager</code></em>. This
631
function does not average presences across all accounts, but it merely
632
finds the "most available" presence. As a result, there is a guarantee
633
that there exists at least one account in <em class="parameter"><code>manager</code></em> with the returned
637
If no accounts are enabled or valid the output will be
638
(<a class="link" href="telepathy-glib-enums.html#TP-CONNECTION-PRESENCE-TYPE-OFFLINE--CAPS"><code class="literal">TP_CONNECTION_PRESENCE_TYPE_OFFLINE</code></a>, "offline", "").
641
The return value of this function is not guaranteed to have been retrieved
642
until <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-async" title="tp_account_manager_prepare_async ()"><code class="function">tp_account_manager_prepare_async()</code></a> has finished; until then, the
643
value will be the same as if no accounts are enabled or valid.</p>
646
<div class="variablelist"><table border="0">
647
<col align="left" valign="top">
650
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
651
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
655
<td><p><span class="term"><em class="parameter"><code>status</code></em> :</span></p></td>
656
<td> a string to fill with the actual status
660
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
661
<td> a string to fill with the actual status message
665
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
666
<td> the most available presence across all accounts
672
<p class="since">Since 0.9.0</p>
675
<div class="refsect2" title="tp_account_manager_set_all_requested_presences ()">
676
<a name="tp-account-manager-set-all-requested-presences"></a><h3>tp_account_manager_set_all_requested_presences ()</h3>
677
<pre class="programlisting">void tp_account_manager_set_all_requested_presences
678
(<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
679
<a class="link" href="telepathy-glib-enums.html#TpConnectionPresenceType" title="enum TpConnectionPresenceType">TpConnectionPresenceType</a> type,
681
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
684
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
685
>gchar</a> *message);</pre>
687
Iterates through the accounts in <em class="parameter"><code>manager</code></em> and requests the presence
688
(<em class="parameter"><code>type</code></em>, <em class="parameter"><code>status</code></em> and <em class="parameter"><code>message</code></em>). Note that the presence requested here is
689
merely a request, and if might not be satisfiable.
692
You can find the most available presence across all accounts by calling
693
<a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-get-most-available-presence" title="tp_account_manager_get_most_available_presence ()"><code class="function">tp_account_manager_get_most_available_presence()</code></a>.
696
Setting a requested presence on all accounts will have no effect
697
until <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-async" title="tp_account_manager_prepare_async ()"><code class="function">tp_account_manager_prepare_async()</code></a> has finished.</p>
700
<div class="variablelist"><table border="0">
701
<col align="left" valign="top">
704
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
705
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
709
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
710
<td> a presence type to request
714
<td><p><span class="term"><em class="parameter"><code>status</code></em> :</span></p></td>
715
<td> a status to request
719
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
720
<td> a status message to request
725
<p class="since">Since 0.9.0</p>
728
<div class="refsect2" title="tp_account_manager_enable_restart ()">
729
<a name="tp-account-manager-enable-restart"></a><h3>tp_account_manager_enable_restart ()</h3>
730
<pre class="programlisting">void tp_account_manager_enable_restart (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager);</pre>
732
Enable autostarting the account manager D-Bus service. This means
733
that the account manager will be restarted if it disappears from
737
<div class="variablelist"><table border="0">
738
<col align="left" valign="top">
740
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
741
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
747
<div class="refsect2" title="TP_ACCOUNT_MANAGER_FEATURE_CORE">
748
<a name="TP-ACCOUNT-MANAGER-FEATURE-CORE--CAPS"></a><h3>TP_ACCOUNT_MANAGER_FEATURE_CORE</h3>
749
<pre class="programlisting">#define TP_ACCOUNT_MANAGER_FEATURE_CORE</pre>
751
Expands to a call to a function that returns a quark for the "core" feature
752
on a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>.
755
When this feature is prepared, the list of accounts have been retrieved and
756
are available for use, and change-notification has been set up.
759
One can ask for a feature to be prepared using the
760
<a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-async" title="tp_account_manager_prepare_async ()"><code class="function">tp_account_manager_prepare_async()</code></a> function, and waiting for it to callback.</p>
763
<p class="since">Since 0.9.0</p>
766
<div class="refsect2" title="tp_account_manager_is_prepared ()">
767
<a name="tp-account-manager-is-prepared"></a><h3>tp_account_manager_is_prepared ()</h3>
768
<pre class="programlisting"><a
769
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
770
>gboolean</a> tp_account_manager_is_prepared (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
772
href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"
773
>GQuark</a> feature);</pre>
778
<div class="variablelist"><table border="0">
779
<col align="left" valign="top">
782
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
783
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
787
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
788
<td> a feature which is required
792
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
794
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
795
><code class="literal">TRUE</code></a> whether <em class="parameter"><code>feature</code></em> is ready on <em class="parameter"><code>manager</code></em>, otherwise <a
796
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
797
><code class="literal">FALSE</code></a>
803
<p class="since">Since 0.9.0</p>
806
<div class="refsect2" title="tp_account_manager_prepare_async ()">
807
<a name="tp-account-manager-prepare-async"></a><h3>tp_account_manager_prepare_async ()</h3>
808
<pre class="programlisting">void tp_account_manager_prepare_async (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
810
href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"
811
>GQuark</a> *features,
813
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
814
>GAsyncReadyCallback</a> callback,
816
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
817
>gpointer</a> user_data);</pre>
819
Requests an asynchronous preparation of <em class="parameter"><code>manager</code></em> with the features specified
820
by <em class="parameter"><code>features</code></em>. When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You
821
can then call <a class="link" href="telepathy-glib-account-manager.html#tp-account-manager-prepare-finish" title="tp_account_manager_prepare_finish ()"><code class="function">tp_account_manager_prepare_finish()</code></a> to get the result of the
825
If <em class="parameter"><code>features</code></em> is <a
826
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
827
><code class="literal">NULL</code></a>, then <em class="parameter"><code>callback</code></em> will be called when the implied
828
<a class="link" href="telepathy-glib-account.html#TP-ACCOUNT-FEATURE-CORE--CAPS" title="TP_ACCOUNT_FEATURE_CORE"><code class="literal">TP_ACCOUNT_FEATURE_CORE</code></a> feature is ready.
832
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
833
><code class="literal">NULL</code></a> is given to <em class="parameter"><code>callback</code></em>, then no callback will be called when the
834
operation is finished. Instead, it will simply set <em class="parameter"><code>features</code></em> on <em class="parameter"><code>manager</code></em>.
835
Note that if <em class="parameter"><code>callback</code></em> is <a
836
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
837
><code class="literal">NULL</code></a>, then <em class="parameter"><code>user_data</code></em> must also be <a
838
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
839
><code class="literal">NULL</code></a>.</p>
842
<div class="variablelist"><table border="0">
843
<col align="left" valign="top">
846
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
847
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
851
<td><p><span class="term"><em class="parameter"><code>features</code></em> :</span></p></td>
852
<td> a 0-terminated list of features, or <a
853
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
854
><code class="literal">NULL</code></a>
858
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
859
<td> a callback to call when the request is satisfied
863
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
864
<td> data to pass to <em class="parameter"><code>callback</code></em>
869
<p class="since">Since 0.9.0</p>
872
<div class="refsect2" title="tp_account_manager_prepare_finish ()">
873
<a name="tp-account-manager-prepare-finish"></a><h3>tp_account_manager_prepare_finish ()</h3>
874
<pre class="programlisting"><a
875
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
876
>gboolean</a> tp_account_manager_prepare_finish (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
878
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
879
>GAsyncResult</a> *result,
881
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
882
>GError</a> **error);</pre>
884
Finishes an async preparation of the account manager <em class="parameter"><code>manager</code></em>.</p>
887
<div class="variablelist"><table border="0">
888
<col align="left" valign="top">
891
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
892
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
896
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
898
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
899
><span class="type">GAsyncResult</span></a>
903
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
905
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
906
><span class="type">GError</span></a> to fill
910
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
912
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
913
><code class="literal">TRUE</code></a> if the preparation was successful, otherwise <a
914
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
915
><code class="literal">FALSE</code></a>
921
<p class="since">Since 0.9.0</p>
253
924
<div class="refsect2" title="tp_cli_account_manager_callback_for_create_account ()">
254
925
<a name="tp-cli-account-manager-callback-for-create-account"></a><h3>tp_cli_account_manager_callback_for_create_account ()</h3>
255
926
<pre class="programlisting">void (*tp_cli_account_manager_callback_for_create_account)
1385
<div class="refsect1" title="Signal Details">
1386
<a name="telepathy-glib-account-manager.signal-details"></a><h2>Signal Details</h2>
1387
<div class="refsect2" title='The "account-disabled" signal'>
1388
<a name="TpAccountManager-account-disabled"></a><h3>The <code class="literal">"account-disabled"</code> signal</h3>
1389
<pre class="programlisting">void user_function (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
1390
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> *account,
1392
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
1393
>gpointer</a> user_data) : Run Last</pre>
1395
Emitted when an account from <em class="parameter"><code>manager</code></em> is disabled.</p>
1398
<div class="variablelist"><table border="0">
1399
<col align="left" valign="top">
1402
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
1403
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
1407
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
1408
<td> a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
1412
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1413
<td>user data set when the signal handler was connected.</td>
1420
<div class="refsect2" title='The "account-enabled" signal'>
1421
<a name="TpAccountManager-account-enabled"></a><h3>The <code class="literal">"account-enabled"</code> signal</h3>
1422
<pre class="programlisting">void user_function (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
1423
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> *account,
1425
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
1426
>gpointer</a> user_data) : Run Last</pre>
1428
Emitted when an account from <em class="parameter"><code>manager</code></em> is enabled.</p>
1431
<div class="variablelist"><table border="0">
1432
<col align="left" valign="top">
1435
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
1436
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
1440
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
1441
<td> a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
1445
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1446
<td>user data set when the signal handler was connected.</td>
1453
<div class="refsect2" title='The "account-removed" signal'>
1454
<a name="TpAccountManager-account-removed"></a><h3>The <code class="literal">"account-removed"</code> signal</h3>
1455
<pre class="programlisting">void user_function (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
1456
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> *account,
1458
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
1459
>gpointer</a> user_data) : Run Last</pre>
1461
Emitted when an account is removed from <em class="parameter"><code>manager</code></em>.</p>
1464
<div class="variablelist"><table border="0">
1465
<col align="left" valign="top">
1468
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
1469
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
1473
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
1474
<td> a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
1478
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1479
<td>user data set when the signal handler was connected.</td>
1486
<div class="refsect2" title='The "account-validity-changed" signal'>
1487
<a name="TpAccountManager-account-validity-changed"></a><h3>The <code class="literal">"account-validity-changed"</code> signal</h3>
1488
<pre class="programlisting">void user_function (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
1489
<a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a> *account,
1491
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
1492
>gboolean</a> valid,
1494
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
1495
>gpointer</a> user_data) : Run Last</pre>
1497
Emitted when the validity on <em class="parameter"><code>account</code></em> changes. <em class="parameter"><code>account</code></em> is not guaranteed
1498
to be ready when this signal is emitted.</p>
1501
<div class="variablelist"><table border="0">
1502
<col align="left" valign="top">
1505
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
1506
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
1510
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
1511
<td> a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
1515
<td><p><span class="term"><em class="parameter"><code>valid</code></em> :</span></p></td>
1517
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
1518
><code class="literal">TRUE</code></a> if the account is now valid
1522
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1523
<td>user data set when the signal handler was connected.</td>
1530
<div class="refsect2" title='The "most-available-presence-changed" signal'>
1531
<a name="TpAccountManager-most-available-presence-changed"></a><h3>The <code class="literal">"most-available-presence-changed"</code> signal</h3>
1532
<pre class="programlisting">void user_function (<a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a> *manager,
1534
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
1537
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
1538
>gchar</a> *presence,
1540
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
1543
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
1544
>gpointer</a> user_data) : Run Last</pre>
1546
Emitted when the most available presence on <em class="parameter"><code>manager</code></em> changes.</p>
1549
<div class="variablelist"><table border="0">
1550
<col align="left" valign="top">
1553
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
1554
<td> a <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>
1558
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
1559
<td> a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>
1563
<td><p><span class="term"><em class="parameter"><code>presence</code></em> :</span></p></td>
1564
<td> new presence type
1568
<td><p><span class="term"><em class="parameter"><code>status</code></em> :</span></p></td>
1573
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
1574
<td> new status message
1578
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1579
<td>user data set when the signal handler was connected.</td>
714
1586
<div class="refsect1" title="See Also">
715
1587
<a name="telepathy-glib-account-manager.see-also"></a><h2>See Also</h2>