sugar4.presence.presenceservice
STABLE.
Attributes
Classes
Provides simplified access to the Telepathy framework to activities |
Functions
|
Retrieve this process' view of the PresenceService |
Module Contents
- sugar4.presence.presenceservice.CONN_INTERFACE_ACTIVITY_PROPERTIES = 'org.laptop.Telepathy.ActivityProperties'[source]
- class sugar4.presence.presenceservice.PresenceService[source]
Bases:
gi.repository.GObject.GObjectProvides simplified access to the Telepathy framework to activities
Initialise the service and attempt to connect to events
- get_activity(activity_id, warn_if_none=True)[source]
Retrieve single Activity object for the given unique id
activity_id – unique ID for the activity
- returns single Activity object or None if the activity
is not found using GetActivityById on the service
- get_buddy_by_telepathy_handle(tp_conn_name, tp_conn_path, handle)[source]
Retrieve single Buddy object for the given public key
- Parameters:
- tp_conn_namestr
The well-known bus name of a Telepathy connection
- tp_conn_pathdbus.ObjectPath
The object path of the Telepathy connection
- handleint or long
The handle of a Telepathy contact on that connection, of type HANDLE_TYPE_CONTACT. This may not be a channel-specific handle.
- Returns:
the Buddy object, or None if the buddy is not found