Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/presenceservice.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-05 18:00:30 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-11-05 18:00:30 (GMT)
commitec009439769473d7527f1e14b792e6c58042d5e4 (patch)
treea28843839303a6dd2c5a9b2d2722e25fff7164c3 /src/presenceservice.py
parentd29f92317393a6b9d161bdc8eb67f259bbe58693 (diff)
Re-implement unique-name watching so it actually makes sense (#4585, the return)
Diffstat (limited to 'src/presenceservice.py')
-rw-r--r--src/presenceservice.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py
index 218c974..03a8aaf 100644
--- a/src/presenceservice.py
+++ b/src/presenceservice.py
@@ -729,13 +729,14 @@ class PresenceService(ExportedGObject):
return self._owner.object_path()
@dbus.service.method(PRESENCE_INTERFACE, in_signature="sssa{sv}",
- out_signature="o", async_callbacks=('async_cb', 'async_err_cb'))
+ out_signature="o", async_callbacks=('async_cb', 'async_err_cb'),
+ sender_keyword='sender')
def ShareActivity(self, actid, atype, name, properties, async_cb,
- async_err_cb):
+ async_err_cb, sender):
_logger.debug('ShareActivity(actid=%r, atype=%r, name=%r, '
'properties=%r)', actid, atype, name, properties)
self._share_activity(actid, atype, name, properties, True,
- async_cb, async_err_cb)
+ async_cb, async_err_cb, sender)
def _get_preferred_plugin(self):
for tp in self._plugins:
@@ -757,7 +758,7 @@ class PresenceService(ExportedGObject):
tp.cleanup()
def _share_activity(self, actid, atype, name, properties, private,
- async_cb, async_err_cb):
+ async_cb, async_err_cb, sender):
"""Create the shared Activity.
actid -- XXX
@@ -768,6 +769,7 @@ class PresenceService(ExportedGObject):
False for publicly advertised sharing
async_cb -- function: Callback for success
async_err_cb -- function: Callback for failure
+ sender -- unique name of activity
"""
objid = self._get_next_object_id()
# XXX: is the preferred Telepathy plugin always the right way to
@@ -788,7 +790,8 @@ class PresenceService(ExportedGObject):
self._activities_by_handle[tp][room] = activity
async_cb(activity.object_path())
- activity.join(activity_shared, async_err_cb, True, private)
+ activity.join(activity_shared, async_err_cb, True, private,
+ sender=sender)
# local activities are valid at creation by definition, but we can't
# connect to the activity's validity-changed signal until its already