Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/presenceservice.py
diff options
context:
space:
mode:
authorDafydd Harries <dafydd.harries@collabora.co.uk>2007-12-10 18:21:47 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2008-01-30 10:06:42 (GMT)
commit7c7d017ed7a2802610366baea9f0851ada860165 (patch)
tree4b452d7fb1f44a473f48827d25816148245ce7e3 /src/presenceservice.py
parent9239a4d24ed7f2c65d436dc1428b0faee330ae33 (diff)
Add SyncFriends method
The idea is that Sugar will call SyncFriends to tell us who our friends are so we can sync the list to the server. Patch by Guillaume Desmottes.
Diffstat (limited to 'src/presenceservice.py')
-rw-r--r--src/presenceservice.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py
index 30c6dab..fa38efd 100644
--- a/src/presenceservice.py
+++ b/src/presenceservice.py
@@ -834,6 +834,11 @@ class PresenceService(ExportedGObject):
else:
activity.set_properties(props)
+ @dbus.service.method(PRESENCE_INTERFACE, in_signature="as",
+ out_signature="")
+ def SyncFriends(self, keys):
+ if self._server_plugin is not None:
+ self._server_plugin.sync_friends(keys)
def main(test_num=0, randomize=False):
loop = gobject.MainLoop()