Class

PurpleAccountManager

since: 3.0

Description [src]

final class Purple.AccountManager : GObject.Object {
  /* No available fields */
}

A manager that keeps track of all PurpleAccounts.

Available since: 3.0

Ancestors

Implements

Functions

purple_account_manager_get_default

Gets the default account manager for libpurple.

since: 3.0

purple_account_manager_get_default_as_model

Gets the default account manager for libpurple as a list model.

since: 3.0

Instance methods

purple_account_manager_add

Adds account to manager.

since: 3.0

purple_account_manager_find

Attempts to find an account in manager with the matching username and protocol_id.

since: 3.0

purple_account_manager_find_by_id

Looks up an account based on its id property.

since: 3.0

purple_account_manager_find_custom

Attempts to find an account in manager with a custom matching function.

since: 3.0

purple_account_manager_foreach

Calls callback with data for each account that manager knows about.

since: 3.0

purple_account_manager_get_connected

Gets a list of all accounts that are currently connected.

since: 3.0

purple_account_manager_get_disabled

Gets the list of all disabled accounts.

since: 3.0

purple_account_manager_get_enabled

Gets the list of all enabled accounts.

since: 3.0

purple_account_manager_get_online

Gets whether or not new accounts should automatically have purple_account_connect() called for them.

since: 3.0

purple_account_manager_remove

Removes account from manager.

since: 3.0

purple_account_manager_reorder

Moves account to new_index in manager.

since: 3.0

purple_account_manager_set_online

Sets whether or not new accounts should automatically have purple_account_connect() called for them.

since: 3.0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

since: 2.44

g_list_model_get_item_type

Gets the type of the items in list.

since: 2.44

g_list_model_get_n_items

Gets the number of items in list.

since: 2.44

g_list_model_get_object

Get the item at position.

since: 2.44

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

since: 2.44

Properties

Purple.AccountManager:item-type

The type of items. See GListModel.

since: 3.0

Purple.AccountManager:n-items

The number of items. See GListModel.

since: 3.0

Purple.AccountManager:online

Controls whether or not accounts that the manager knows about should be online or offline.

since: 3.0

Signals

Purple.AccountManager::account-changed

This is a propagation of the notify signal from account. This means that your callback will be called for any account that manager knows about.

since: 3.0

Purple.AccountManager::account-connected

This is a propagation of PurpleAccount::connected signal. This means that your callback will be called for any account that manager knows about.

since: 3.0

Purple.AccountManager::account-disconnected

This is a propagation of PurpleAccount::disconnected signal. This means that your callback will be called for any account that manager knows about.

since: 3.0

Purple.AccountManager::account-setting-changed

This is a propagation of PurpleAccount::setting-changed signal. This means that your callback will be called for any account that manager knows about.

since: 3.0

Purple.AccountManager::added

Emitted after account was added to manager.

since: 3.0

Purple.AccountManager::removed

Emitted after account was removed from manager.

since: 3.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

since: 2.44

Class structure

struct PurpleAccountManagerClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.