Class

PurpleAccountManager

unstable since: 3.0

Description [src]

final class Purple.AccountManager : GObject.Object
  implements Gio.ListModel {
  /* 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.

unstable since: 3.0

purple_account_manager_get_default_as_model

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

unstable since: 3.0

Instance methods

purple_account_manager_add

Adds account to manager.

unstable since: 3.0

purple_account_manager_find

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

unstable since: 3.0

purple_account_manager_find_by_id

Looks up an account based on its id property.

unstable since: 3.0

purple_account_manager_find_custom

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

unstable since: 3.0

purple_account_manager_foreach

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

unstable since: 3.0

purple_account_manager_get_connected

Gets a list of all accounts that are currently connected.

unstable since: 3.0

purple_account_manager_get_disabled

Gets the list of all disabled accounts.

unstable since: 3.0

purple_account_manager_get_enabled

Gets the list of all enabled accounts.

unstable since: 3.0

purple_account_manager_get_online

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

unstable since: 3.0

purple_account_manager_remove

Removes account from manager.

unstable since: 3.0

purple_account_manager_reorder

Moves account to new_index in manager.

unstable since: 3.0

purple_account_manager_set_online

Connects or disconnects all accounts in manager.

unstable 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.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

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

Properties

Purple.AccountManager:item-type

The type of items. See Gio.ListModelInterface.get_item_type.

unstable since: 3.0

Purple.AccountManager:n-items

The number of items. See Gio.ListModelInterface.get_n_items.

unstable since: 3.0

Purple.AccountManager:online

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

unstable 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.

unstable 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.

unstable 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.

unstable 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.

unstable since: 3.0

Purple.AccountManager::added

Emitted after account was added to manager.

unstable since: 3.0

Purple.AccountManager::removed

Emitted after account was removed from manager.

unstable 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.

Class structure

struct PurpleAccountManagerClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.