Class

PurplePerson

Description [src]

final class Purple.Person : GObject.Object {
  /* No available fields */
}

A collection of PurpleContactInfo that contains a user selectable custom avatar and alias.

Available since:3.0.0

Ancestors

Implements

Constructors

purple_person_new

Creates a new PurplePerson.

Available since: 3.0.0

Instance methods

purple_person_add_contact_info
No description available.
purple_person_get_alias

Gets the alias of person that was set by the libpurple user.

Available since: 3.0.0

purple_person_get_avatar

Gets the avatar of person or NULL if no avatar is set.

Available since: 3.0.0

purple_person_get_id

Gets the id of person. This is created internally and is read-only.

Available since: 3.0.0

purple_person_get_priority_contact_info

Gets the contact info for the most available contact info in person.

Available since: 3.0.0

purple_person_get_tags

Gets the PurpleTags instance for person.

Available since: 3.0.0

purple_person_remove_contact_info

Removes info from person.

Available since: 3.0.0

purple_person_set_alias

Sets the alias of person to alias.

Available since: 3.0.0

purple_person_set_avatar

Sets the avatar of person to avatar. If avatar is NULL then the previous avatar is cleared.

Available since: 3.0.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.

Available since: 2.44

g_list_model_get_item_type

Gets the type of the items in list.

Available since: 2.44

g_list_model_get_n_items

Gets the number of items in list.

Available since: 2.44

g_list_model_get_object

Get the item at position.

Available since: 2.44

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Available since: 2.44

Properties

Purple.Person:alias

The alias for this person. This is controlled by the libpurple user.

Available since: 3.0.0

Purple.Person:avatar

The avatar for this person. This is controlled by the libpurple user, which they can use to set a custom avatar.

Available since: 3.0.0

Purple.Person:id

The protocol specific id for the contact.

Available since: 3.0.0

Purple.Person:priority-contact-info

The PurpleContactInfo that currently has the highest priority.

Available since: 3.0.0

Purple.Person:tags

The PurpleTags for this person.

Available since: 3.0.0

Signals

Signals inherited from GObject (1)
GObject.Object::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)
Gio.ListModel::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.

Available since: 2.44

Class structure

struct PurplePersonClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.