Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/presence2/presenceservice.py
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-07 14:27:47 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-07 14:27:47 (GMT)
commit139b190650331fece7c57a99f14ed09c8b1f720a (patch)
treebdec44f7ec58acd527d4483c58faa39c6e8a86c3 /services/presence2/presenceservice.py
parent375f61c9eecaed64a5113aacab50ed4225bb2515 (diff)
catch invitations request
Diffstat (limited to 'services/presence2/presenceservice.py')
-rw-r--r--services/presence2/presenceservice.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/presence2/presenceservice.py b/services/presence2/presenceservice.py
index 61462ba..86126ca 100644
--- a/services/presence2/presenceservice.py
+++ b/services/presence2/presenceservice.py
@@ -67,6 +67,7 @@ class PresenceService(dbus.service.Object):
self._server_plugin.connect('avatar-updated', self._avatar_updated)
self._server_plugin.connect('properties-changed', self._properties_changed)
self._server_plugin.connect('contact-activities-changed', self._contact_activities_changed)
+ self._server_plugin.connect('activity-invited', self._activity_invited)
self._server_plugin.start()
# Set up the link local connection
@@ -198,6 +199,12 @@ class PresenceService(dbus.service.Object):
if len(activities) > 0:
buddy.set_properties({'current-activity':activities[0]})
+ def _activity_invited(self, tp, act_id):
+ activity = self._activities.get(act_id)
+ if activity:
+ pass
+ # FIXME do something
+
@dbus.service.signal(_PRESENCE_INTERFACE, signature="o")
def ActivityAppeared(self, activity):
pass