implement org.laptop.Sugar.Presence.GetPreferredConnection

This commit is contained in:
Guillaume Desmottes
2007-04-13 18:29:50 +02:00
parent 7b40f9bf60
commit 6b6b72f9c9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -295,6 +295,11 @@ class PresenceService(dbus.service.Object):
activity = self._share_activity(actid, atype, name, properties)
return activity.object_path()
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="so")
def GetPreferredConnection(self):
conn = self._server_plugin.get_connection()
return str(conn.service_name), conn.object_path
def cleanup(self):
for tp in self._handles_buddies:
tp.cleanup()