Class

PurpleContactManager

unstable since: 3.0

[]

Description [src]

final class Purple.ContactManager : GObject.Object
  implements Gio.ListModel {
  /* No available fields */
}

A manager for PurpleContacts.

Available since: 3.0

[]

Ancestors

[]

Implements

[]

Functions

purple_contact_manager_get_default

Gets the default instance of PurpleContactManager.

unstable since: 3.0

[]

Instance methods

purple_contact_manager_add

Adds contact to manager. If a contact with a matching account and id already exists, no action will be taken.

unstable since: 3.0

purple_contact_manager_add_person

Adds all of the contacts contained in person to manager.

unstable since: 3.0

purple_contact_manager_find_or_create

Looks for a PurpleContact that belongs to account with an id of id or creates a new one.

purple_contact_manager_find_with_id

Looks for a PurpleContact that belongs to account with a id of id.

unstable since: 3.0

purple_contact_manager_find_with_username

Looks for a PurpleContact that belongs to account with a username of username.

unstable since: 3.0

purple_contact_manager_get_all

Gets a GListModel of all contacts that belong to account.

unstable since: 3.0

purple_contact_manager_remove

Attempts to remove contact from manager.

unstable since: 3.0

purple_contact_manager_remove_all

Removes all of the contacts from manager that belong to account.

unstable since: 3.0

purple_contact_manager_remove_person

Removes person from manager optionally removing all of the contacts contained in person as well if remove_contacts is TRUE.

unstable since: 3.0

Methods inherited from GObject (43)
Methods inherited from GListModel (5)
[]

Properties

Purple.ContactManager:item-type

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

unstable since: 3.0

Purple.ContactManager:n-items

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

unstable since: 3.0

[]

Signals

Purple.ContactManager::added

Emitted after contact has been added to manager.

unstable since: 3.0

Purple.ContactManager::person-added

Emitted after person has been added to manager. This is typically done when a contact is added via purple_contact_manager_add() but can also happen if purple_contact_manager_add_person() is called.

unstable since: 3.0

Purple.ContactManager::person-removed

Emitted after person has been removed from manager. This typically happens when purple_contact_manager_remove_person() is called.

unstable since: 3.0

Purple.ContactManager::populate-menu

This is a propagation of PurpleContactInfo::populate-menu. This means that your callback will be called for any contact info to populate its context menu.

unstable since: 3.0

Purple.ContactManager::removed

Emitted after contact has been removed from manager.

unstable since: 3.0

Signals inherited from GObject (1)
Signals inherited from GListModel (1)

Class structure