get_valid_accounts


Description:

[ Version ( deprecated = true , since = "0.9.0" ) ]
public List<unowned Account> get_valid_accounts ()

Warning: get_valid_accounts is deprecated.

Returns a newly allocated List of valid accounts in this .

Note:

Since 0.19.9.

New code should use dup_valid_accounts instead.

The list must be freed with g_list_free after used. None of the accounts in the returned list are guaranteed to be ready.

Note that the Accounts in the returned List are not reffed before returning from this function. One could ref every item in the list like the following example:

GList *accounts;
account = tp_account_manager_get_valid_accounts (manager);
g_list_foreach (accounts, (GFunc) g_object_ref, NULL);

The returned Accounts are guaranteed to have TP_ACCOUNT_FEATURE_CORE prepared, along with all features previously passed to add_account_features for the account manager's factory.

The list of valid accounts returned is not guaranteed to have been retrieved until TP_ACCOUNT_MANAGER_FEATURE_CORE is prepared (tp_proxy_prepare_async() has returned). Until this feature has been prepared, an empty list (%NULL) will be returned.

Parameters:

this

a AccountManager

Returns:

a newly allocated List of valid accounts in this