diff src/bridge/DBus.py @ 345:e6047415868d

Bridge: added updateContact method
author Goffi <goffi@goffi.org>
date Sat, 28 May 2011 20:24:02 +0200
parents 4402ac630712
children 6b5626c37909
line wrap: on
line diff
--- a/src/bridge/DBus.py	Sat May 28 20:23:41 2011 +0200
+++ b/src/bridge/DBus.py	Sat May 28 20:24:02 2011 +0200
@@ -301,6 +301,12 @@
     def subscription(self, sub_type, entity, profile_key="@DEFAULT@"):
         return self.cb["subscription"](unicode(sub_type), unicode(entity), unicode(profile_key))
 
+    @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
+                         in_signature='ssass', out_signature='',
+                         async_callbacks=None)
+    def updateContact(self, entity, name, groups, profile_key="@DEFAULT@"):
+        return self.cb["updateContact"](unicode(entity), unicode(name), groups, unicode(profile_key))
+
     
     def __attributes(self, in_sign):
         """Return arguments to user given a in_sign