AccountManager
Object Hierarchy:
TelepathyGLib.AccountManager
TelepathyGLib.AccountManager
TelepathyGLib.AccountManager
TelepathyGLib.Proxy
TelepathyGLib.Proxy
TelepathyGLib.Proxy->TelepathyGLib.AccountManager
GLib.Object
GLib.Object
GLib.Object->TelepathyGLib.Proxy
Description:
[
CCode ( type_id =
"tp_account_manager_get_type ()" ) ]
[
Version ( since =
"0.7.32" ) ]
public class AccountManager :
Proxy
The Telepathy Account Manager stores real-time communication accounts and their configuration, places accounts online on request, and
manipulates accounts' presence, nicknames and avatars.
AccountManager is the "top level" object. Since 0.16 it always has a non-%NULL
factory , and its
factory will be propagated to all other objects like
AccountManager -> Account ->
Connection -> Contact
and Channel . This means that desired features set on that factory will be prepared
on all those objects. If a factory is not specified when the
AccountManager is constructed, it will use a
AutomaticClientFactory .
TpAccountManager example:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../examples/client/contact-list.c" ><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include>
Content:
Static methods:
public static bool can_set_default ()
Check if
set_default has already successfully been called.
public static AccountManager dup ()
Returns an account manager proxy on the D-Bus daemon on which this
process was activated (if it was launched by D-Bus service activation), or the session bus (otherwise).
public static Quark get_feature_quark_core ()
public static void init_known_interfaces ()
Ensure that the known interfaces for TpAccountManager have been set
up.
Creation methods:
Methods:
public async unowned Account create_account_async (string connection_manager, string protocol, string display_name, HashTable <string ,Value ?> parameters, HashTable <string ,Value ?> properties) throws Error
Requests an asynchronous create of an account on the account manager
this .
public List <Account > dup_valid_accounts ()
Returns a newly allocated List of reffed
valid accounts in this .
public void enable_restart ()
Enable autostarting the account manager D-Bus service.
public unowned Account ensure_account (string path)
Lookup an account in the account manager
this .
public ConnectionPresenceType get_most_available_presence (out string status, out string message)
Gets the most available presence over all accounts in
this .
public List <unowned Account > get_valid_accounts ()
Returns a newly allocated List of valid
accounts in this .
public void set_all_requested_presences (ConnectionPresenceType type, string status, string message)
Iterates through the accounts in this
and requests the presence (type
, status
and message
).
public void set_default ()
Define the AccountManager singleton that
will be returned by dup .
Signals:
Inherited Members:
All known members inherited from class TelepathyGLib.Proxy
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref