Class
PurpleContactManager
unstable since: 3.0
Description [src]
final class Purple.ContactManager : GObject.Object
implements Gio.ListModel {
/* No available fields */
}
A manager for PurpleContact
s.
Available since: 3.0
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_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_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 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.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::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)
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.