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-02-27 22:51:53 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-02-27 22:51:53 (GMT)
commit81b636c8e1c21e7cb84d593b18612c466204b7ac (patch)
treeaa883f505f9ac8ddabff282696de299f6dc50ade /services/presence2/presenceservice.py
parent152d95f3ded7a7695ac37e42bfece276b6964b80 (diff)
start of support of the org.freedesktop.Telepathy.Connection.Interface.OLPC.BuddyInfo interface
Diffstat (limited to 'services/presence2/presenceservice.py')
-rw-r--r--services/presence2/presenceservice.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/presence2/presenceservice.py b/services/presence2/presenceservice.py
index 32afcf7..9dee12f 100644
--- a/services/presence2/presenceservice.py
+++ b/services/presence2/presenceservice.py
@@ -65,6 +65,8 @@ class PresenceService(dbus.service.Object):
self._server_plugin.connect('contact-online', self._contact_online)
self._server_plugin.connect('contact-offline', self._contact_offline)
self._server_plugin.connect('avatar-updated', self._avatar_updated)
+ self._server_plugin.connect('properties-changed', self._properties_changed)
+ self._server_plugin.connect('activities-changed', self._activities_changed)
self._server_plugin.start()
# Set up the link local connection
@@ -123,6 +125,15 @@ class PresenceService(dbus.service.Object):
if buddy:
buddy.set_icon(avatar)
+ def _properties_changed(self, tp, handle, prop):
+ buddy = self._handles[tp].get(handle)
+
+ if buddy:
+ buddy.set_properties(prop)
+
+ def _activities_changed(self, tp, handle, prop):
+ pass
+
@dbus.service.signal(_PRESENCE_INTERFACE, signature="o")
def ActivityAppeared(self, activity):
pass