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:labels could be missing. In this event, the PurpleAccountSetting:id property should be used.

Available since: 3.0

Ancestors

Implements

Constructors

purple_account_settings_new

Creates a new instance.

unstable since: 3.0

Instance methods

purple_account_settings_add_setting

Adds a setting to the collection.

unstable since: 3.0

purple_account_settings_get_boolean

Gets the value of a boolean setting.

unstable since: 3.0

purple_account_settings_get_int

Gets the value of an integer setting.

unstable since: 3.0

purple_account_settings_get_string

Gets the value of a string setting.

unstable since: 3.0

purple_account_settings_remove_all_settings

Removes all settings.

unstable since: 3.0

purple_account_settings_remove_setting

Removes a setting from the collection.

unstable since: 3.0

purple_account_settings_set_boolean

Sets the value of a boolean setting if found.

unstable since: 3.0

purple_account_settings_set_int

Sets the value of a integer setting if found.

unstable since: 3.0

purple_account_settings_set_string

Sets the value of a string 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 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.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.

Class structure

struct PurpleAccountSettingsClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.