Class
PurpleAccountSettings
unstable since: 3.0
Description [src]
final class Purple.AccountSettings : GObject.Object
implements Gio.ListModel {
/* No available fields */
}
A collection of account settings.
PurpleAccount
starts with an empty instance which is updated when
PurpleAccount:protocol
is set. To do that,
purple_protocol_get_default_account_settings()
is called and the result is
merged into the account’s settings with
purple_account_settings_update_settings()
.
When an account is loaded from disk, the loader will create a new instance
with the settings from disk and then merge them into the account’s settings
with purple_account_settings_update_settings()
.
There is opportunity here for settings to exist on disk but not in the
protocol so it is possible that PurpleAccountSetting:label
s could be
missing. In this event, the PurpleAccountSetting:id
property should be used.
Available since: 3.0
Instance methods
purple_account_settings_set_boolean
Sets the value of a boolean setting if found.
unstable since: 3.0
purple_account_settings_update_settings
Updates a settings object from another settings object.
unstable since: 3.0
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.AccountSettings:item-type
The type of items. See Gio.ListModelInterface.get_item_type
.
unstable since: 3.0
Purple.AccountSettings:n-items
The number of items. See Gio.ListModelInterface.get_n_items
.
unstable since: 3.0
Signals
Purple.AccountSettings::setting-changed
This signal propagates the PurpleAccountSetting::changed
signal for
any PurpleAccountSetting
that the object knows about.
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.