sugar4.presence.activity
UI interface to an activity in the presence service
STABLE.
Attributes
Classes
UI interface for an Activity in the presence service |
Module Contents
- sugar4.presence.activity.CONN_INTERFACE_ACTIVITY_PROPERTIES = 'org.laptop.Telepathy.ActivityProperties'[source]
- class sugar4.presence.activity.Activity(account_path, connection, room_handle=None, properties=None)[source]
Bases:
gi.repository.GObject.GObjectUI interface for an Activity in the presence service
Activities in the presence service represent your and other user’s shared activities.
- Properties:
id color name type joined
- get_joined_buddies()[source]
Retrieve the set of Buddy objects attached to this activity
returns list of presence Buddy objects that we can successfully create from the buddy object paths that PS has for this activity.
- get_buddy_by_handle(handle)[source]
Retrieve the Buddy object given a telepathy handle.
buddy object paths are cached in self._handle_to_buddy_path, so we can get the buddy without calling PS.
- invite(buddy, message, response_cb)[source]
Invite the given buddy to join this activity.
The callback will be called with one parameter: None on success, or an exception on failure.
- join()[source]
Join this activity.
Emits ‘joined’ and otherwise does nothing if we’re already joined.
- get_channels()[source]
Retrieve communications channel descriptions for the activity
- Returns a tuple containing:
the D-Bus well-known service name of the connection (FIXME: this is redundant; in Telepathy it can be derived from that of the connection)
the D-Bus object path of the connection
a list of D-Bus object paths representing the channels associated with this activity