Class

PurpleContactManager

since: 3.0

Description [src]

final class Purple.ContactManager : GObject.Object {
  /* 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.

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.

since: 3.0

purple_contact_manager_add_person

Adds all of the contacts contained in person to manager.

since: 3.0

purple_contact_manager_find_with_id

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

since: 3.0

purple_contact_manager_find_with_username

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

since: 3.0

purple_contact_manager_get_all

Gets a GListModel of all contacts that belong to account.

since: 3.0

purple_contact_manager_remove

Attempts to remove contact from manager.

since: 3.0

purple_contact_manager_remove_all

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

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.

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.

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.ContactManager:item-type

The type of items. See GListModel.

since: 3.0

Purple.ContactManager:n-items

The number of items. See GListModel.

since: 3.0

Signals

Purple.ContactManager::added

Emitted after contact has been added to manager.

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.

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.

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.

since: 3.0

Purple.ContactManager::removed

Emitted after contact has been 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 PurpleContactManagerClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.