Class
PurpleStatus
Description [src]
final class Purple.Status : GObject.Object {
/* No available fields */
}
A PurpleStatus can be thought of as an “instance” of a PurpleStatusType. If you’re familiar with object-oriented programming languages then this should be immediately clear. Say, for example, that one of your AIM buddies has set himself as “away.” You have a PurpleBuddy node for this person in your buddy list. Purple wants to mark this buddy as “away,” so it creates a new PurpleStatus. The PurpleStatus has its PurpleStatusType set to the “away” state for the oscar protocol. The PurpleStatus also contains the buddy’s away message. PurpleStatuses are sometimes saved, depending on the context. The current PurpleStatuses associated with each of your accounts are saved so that the next time you start Purple, your accounts will be set to their last known statuses. There is also a list of saved statuses that are written to the status.xml file. Also, each PurpleStatus has a “saveable” boolean. If “saveable” is set to FALSE then the status is NEVER saved. All PurpleStatuses should be inside a PurplePresence.
A PurpleStatus is either “independent” or “exclusive.” Independent statuses can be active or inactive and they don’t affect anything else. However, you can only have one exclusive status per PurplePresence. If you activate one exclusive status, then the previous exclusive status is automatically deactivated.
A PurplePresence is like a collection of PurpleStatuses (plus some other random info).
See Presence API
Instance methods
purple_status_get_attr_boolean
Returns the boolean value of an attribute in a status with the specified ID.
purple_status_get_attr_int
Returns the integer value of an attribute in a status with the specified ID.
purple_status_get_attr_string
Returns the string value of an attribute in a status with the specified ID.
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.