Class

PurplePresence

Description [src]

class Purple.Presence : GObject.Object {
  parent_instance: GObject
}

A PurplePresence is like a collection of PurpleStatuses (plus some other random info). For any buddy, or for any one of your accounts, or for any person with which you’re chatting, you may know various amounts of information. This information is all contained in one PurplePresence. If one of your buddies is away and idle, then the presence contains the PurpleStatus for their awayness, and it contains their current idle time. PurplePresences are never saved to disk. The information they contain is only relevant for the current Purple session.

Note: When a presence is destroyed with the last g_object_unref(), all statuses added to this list will be destroyed along with the presence.

Ancestors

Instance methods

purple_presence_get_active_status

Gets the active exclusive status from presence.

purple_presence_get_idle_time

Gets the idle time of presence.

purple_presence_get_login_time

Gets the login time of presence.

purple_presence_get_status

Gets the status with the specified ID from presence.

purple_presence_get_statuses

Gets a list of all the statuses in presence.

purple_presence_is_available

Gets whether or not presence is available.

purple_presence_is_idle

Gets whether or not presence is idle.

purple_presence_is_online

Gets whether or not presence is online.

purple_presence_is_status_active

Gets whether or not a status in presence is active.

purple_presence_is_status_primitive_active

Gets whether or not a status with the specified primitive type in presence is active.

purple_presence_set_idle

Sets the idle state and time of presence.

purple_presence_set_login_time

Sets the login time on a presence.

purple_presence_set_status_active

Sets the active state of a status in a presence.

purple_presence_switch_status

Switches the active status in a presence.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.Presence:active-status
No description available.
Purple.Presence:idle
No description available.
Purple.Presence:idle-time
No description available.
Purple.Presence:login-time
No description available.

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.

Class structure

struct PurplePresenceClass {
  void (* update_idle) (
    PurplePresence* presence,
    gboolean old_idle
  );
  GList* (* get_statuses) (
    PurplePresence* presence
  );
  
}

The base class for all PurplePresences.

Class members
update_idle
void (* update_idle) (
    PurplePresence* presence,
    gboolean old_idle
  )
  No description available.
get_statuses
GList* (* get_statuses) (
    PurplePresence* presence
  )
  No description available.

Virtual methods

Purple.PresenceClass.get_statuses

Gets a list of all the statuses in presence.

Purple.PresenceClass.update_idle
No description available.