Class

PurpleContactInfo

unstable since: 3.0

Description [src]

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

The information about a contact. This information is used everywhere you need to refer to a user. Be it a chat, an direct message, a file transfer, etc.

Available since: 3.0

Ancestors

Descendants

Constructors

purple_contact_info_new

Creates a new PurpleContactInfo.

unstable since: 3.0

Instance methods

purple_contact_info_compare

Compares contacts a and b.

unstable since: 3.0

purple_contact_info_equal

Checks two PurpleContactInfo objects for equality.

unstable since: 3.0

purple_contact_info_get_alias

Gets the alias for info.

unstable since: 3.0

purple_contact_info_get_avatar

Gets the avatar for info if one is set.

unstable since: 3.0

purple_contact_info_get_color

Gets the color that should be used to render this contact info. This is a RGB hex code in a string format.

unstable since: 3.0

purple_contact_info_get_display_name

Gets the display name for info. The display name is typically set by the contact and is handled by the protocol plugin.

unstable since: 3.0

purple_contact_info_get_email

Gets the primary email address from info.

unstable since: 3.0

purple_contact_info_get_favorite

Gets whether or not info is a favorite or starred contact.

unstable since: 3.0

purple_contact_info_get_id

Gets the id of info.

unstable since: 3.0

purple_contact_info_get_menu

Gets a BirbActionMenu that can be used as a context menu for info.

unstable since: 3.0

purple_contact_info_get_name_for_display

Gets the name that should be displayed for info. See PurpleContactInfo:name-for-display for more information.

unstable since: 3.0

purple_contact_info_get_note

Gets the “note” for and info.

unstable since: 3.0

purple_contact_info_get_permission

Gets the PurpleContactInfoPermission for info.

unstable since: 3.0

purple_contact_info_get_person

Gets the PurplePerson that info belongs to.

unstable since: 3.0

purple_contact_info_get_phone_number

Gets the primary phone number for the contact.

unstable since: 3.0

purple_contact_info_get_presence

Gets the PurplePresence for info.

unstable since: 3.0

purple_contact_info_get_sid

Gets the sid, or secondary id, of info.

unstable since: 3.0

purple_contact_info_get_tags

Gets the PurpleTags instance for info.

unstable since: 3.0

purple_contact_info_get_time_zone

Gets the GTimeZone for info.

unstable since: 3.0

purple_contact_info_get_username

Gets the username of info.

unstable since: 3.0

purple_contact_info_matches

This will determine if the alias, display name, or username matches needle. The id is ignored because generally it is a UUID or hex string which will give very confusing results to end users.

unstable since: 3.0

purple_contact_info_set_alias

Sets the alias of info to alias.

unstable since: 3.0

purple_contact_info_set_avatar

Sets the avatar for info to avatar. If avatar is NULL an existing avatar will be removed.

unstable since: 3.0

purple_contact_info_set_color

Sets the color to use when rendering info to color.

unstable since: 3.0

purple_contact_info_set_display_name

Sets the display name of info to display_name.

unstable since: 3.0

purple_contact_info_set_email

Sets the primary email address for info.

unstable since: 3.0

purple_contact_info_set_favorite

Sets whether or not info is a favorite.

unstable since: 3.0

purple_contact_info_set_id

Sets the identifier of info to id. Note, this should be used rarely if at all. The main intent of this, is for protocols to update the id of an an account when it is connected if the id is missing.

unstable since: 3.0

purple_contact_info_set_note

Sets the note for info to note.

unstable since: 3.0

purple_contact_info_set_permission

Sets the permission of info to permission.

unstable since: 3.0

purple_contact_info_set_person

Sets the person that info belongs to to person.

unstable since: 3.0

purple_contact_info_set_phone_number

Sets the primary phone number for info.

unstable since: 3.0

purple_contact_info_set_sid

Sets the sid, or secondary id, of info to sid.

unstable since: 3.0

purple_contact_info_set_time_zone

Sets the time zone of info to time_zone.

unstable since: 3.0

purple_contact_info_set_username

Sets the username of info to username.

unstable since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.ContactInfo:alias

The alias for this contact. This is controlled by the libpurple user and may be used by the protocol if it allows for aliasing.

unstable since: 3.0

Purple.ContactInfo:avatar

The avatar for this contact. This is typically controlled by the protocol and should only be read by others.

unstable since: 3.0

Purple.ContactInfo:color

The color for this contact. This is an RGB hex code that user interfaces can use when rendering the contact. This may also be controlled via a protocol plugin in the event that the protocol allows people to set a highlight/branding color.

unstable since: 3.0

Purple.ContactInfo:display-name

The display name for this contact. This is generally set by the person the contact is representing and controlled via the protocol plugin.

unstable since: 3.0

Purple.ContactInfo:email

The primary email address for the contact. This may also be controlled via a protocol plugin in the event that the protocol makes it available.

unstable since: 3.0

Purple.ContactInfo:favorite

Whether or not the contact info has been marked as a favorite or stared.

unstable since: 3.0

Purple.ContactInfo:id

The protocol specific id for the contact.

unstable since: 3.0

Purple.ContactInfo:name-for-display

The name that the user interface should display for this contact info.

unstable since: 3.0

Purple.ContactInfo:note

A note for this contact. Many protocols will allow you to set a note on a contact and store it server side. This property is where that is kept track of.

unstable since: 3.0

Purple.ContactInfo:permission

The permission level for the contact.

unstable since: 3.0

Purple.ContactInfo:person

The PurplePerson that this contact belongs to.

unstable since: 3.0

Purple.ContactInfo:phone-number

The primary phone number for the contact. This may also be set via a protocol plugin in the event that the protocol knows it.

unstable since: 3.0

Purple.ContactInfo:presence

The PurplePresence for this contact. This is typically controlled by the protocol and should only be read by others.

unstable since: 3.0

Purple.ContactInfo:sid

The sid, or secondary id, is an additional identifier field for a contact.

unstable since: 3.0

Purple.ContactInfo:tags

The PurpleTags for this contact.

unstable since: 3.0

Purple.ContactInfo:time-zone

The time zone for this contact. This is typically controlled by the protocol and should only be read by others.

unstable since: 3.0

Purple.ContactInfo:username

The username for this contact. In rare cases this can change, like when a user changes their “nick” on IRC which is their user name.

unstable since: 3.0

Signals

Purple.ContactInfo::populate-menu

Emitted in response to purple_contact_info_get_menu() being called, so that plugins can add additional items to menu.

unstable since: 3.0

Purple.ContactInfo::presence-changed

This is a propagation of the notify signal from presence. This means that your callback will be called when anything in the presence changes.

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.

Class structure

struct PurpleContactInfoClass {
  /* no available fields */
}

No description available.