Class

PurplePerson

unstable since: 3.0

Description [src]

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

A collection of PurpleContactInfo that contains a user select-able custom avatar and alias.

Available since: 3.0

Ancestors

Implements

Constructors

purple_person_new

Creates a new person.

unstable since: 3.0

Instance methods

purple_person_add_contact_info

Adds the contact info to the person.

unstable since: 3.0

purple_person_get_alias

Gets the alias of the person.

unstable since: 3.0

purple_person_get_avatar

Gets the avatar for the person.

unstable since: 3.0

purple_person_get_avatar_for_display

Gets the avatar that should be displayed for the person.

unstable since: 3.0

purple_person_get_color

Gets the custom color that has been set for this person.

unstable since: 3.0

purple_person_get_color_for_display

Gets the color that should be used for the person.

unstable since: 3.0

purple_person_get_id

Gets the id of the person.

unstable since: 3.0

purple_person_get_name_for_display

Gets the name that should be displayed for the person.

unstable since: 3.0

purple_person_get_priority_contact_info

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

unstable since: 3.0

purple_person_get_tags

Gets the tags for the person.

unstable since: 3.0

purple_person_has_contacts

Gets whether or not the person has any contacts.

unstable since: 3.0

purple_person_matches

Checks if any of the names that could be used for display match the needle.

unstable since: 3.0

purple_person_remove_all_contact_infos

Removes all of the contact infos from a person.

unstable since: 3.0

purple_person_remove_contact_info

Removes the given contact info from the person.

unstable since: 3.0

purple_person_set_alias

Sets the alias of the person.

unstable since: 3.0

purple_person_set_avatar

Sets the avatar of the person.

unstable since: 3.0

purple_person_set_color

Sets the custom color of the person.

unstable 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.

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.Person:alias

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

unstable since: 3.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.

unstable since: 3.0

Purple.Person:avatar-for-display

The avatar to show for the person. If PurplePerson:avatar is set, it will be returned. Otherwise the value of PurpleContactInfo:avatar for PurplePerson:priority-contact-info will be returned.

unstable since: 3.0

Purple.Person:color

A custom color to use for this person which will override any colors for the contacts that belong to this person.

unstable since: 3.0

Purple.Person:color-for-display

The color to use for this person.

unstable since: 3.0

Purple.Person:id

The protocol specific id for the contact.

unstable since: 3.0

Purple.Person:item-type

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

unstable since: 3.0

Purple.Person:n-items

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

unstable since: 3.0

Purple.Person:name-for-display

The name that should be displayed for this person.

unstable since: 3.0

Purple.Person:priority-contact-info

The PurpleContactInfo that currently has the highest priority.

unstable since: 3.0

Purple.Person:tags

The PurpleTags for this person.

unstable since: 3.0

Signals

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.

Class structure

struct PurplePersonClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.