comparison src/bridge/DBus.py @ 917:a9401694d2dc

bridge, frontends: display presence with the highest priority + reset your own presence when you (dis)connect
author souliane <souliane@mailoo.org>
date Thu, 20 Mar 2014 21:18:18 +0100
parents 308a96bc7c1b
children 71926ec2114d
comparison
equal deleted inserted replaced
916:1a759096ccbd 917:a9401694d2dc
394 async_callbacks=None) 394 async_callbacks=None)
395 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): 395 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):
396 return self._callback("setParam", unicode(name), unicode(value), unicode(category), security_limit, unicode(profile_key)) 396 return self._callback("setParam", unicode(name), unicode(value), unicode(category), security_limit, unicode(profile_key))
397 397
398 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 398 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
399 in_signature='ssia{ss}s', out_signature='', 399 in_signature='ssa{ss}s', out_signature='',
400 async_callbacks=None) 400 async_callbacks=None)
401 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): 401 def setPresence(self, to_jid='', show='', statuses={}, profile_key="@DEFAULT@"):
402 return self._callback("setPresence", unicode(to_jid), unicode(show), priority, statuses, unicode(profile_key)) 402 return self._callback("setPresence", unicode(to_jid), unicode(show), statuses, unicode(profile_key))
403 403
404 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 404 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
405 in_signature='sss', out_signature='', 405 in_signature='sss', out_signature='',
406 async_callbacks=None) 406 async_callbacks=None)
407 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): 407 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"):