Class
PurpleContactManager
since: 3.0.0
Description [src]
final class Purple.ContactManager : GObject.Object {
/* No available fields */
}
A manager for PurpleContact
s.
Available since: 3.0.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.0
purple_contact_manager_add_buddy
Creates a new PurpleContact
and binds its properties to buddy
and
then adds the new PurpleContact
via
purple_contact_manager_add()
.
since: 3.0.0
purple_contact_manager_add_person
Adds all of the contacts contained in person
to manager
.
since: 3.0.0
purple_contact_manager_find_with_id
Looks for a PurpleContact
that belongs to account
with a id of id
.
since: 3.0.0
purple_contact_manager_find_with_username
Looks for a PurpleContact
that belongs to account
with a username
of username
.
since: 3.0.0
purple_contact_manager_get_all
Gets a GListModel
of all contacts that belong to account
.
since: 3.0.0
purple_contact_manager_remove_all
Removes all of the contacts from manager
that belong to account
.
since: 3.0.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.0
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
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.
since: 3.0.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.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