comparison src/bridge/dbus_bridge.py @ 2113:9c861d07b5b6

core: added sessionGetInfos bridge method to retrieve various data on current profile session + client.started keep start time
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 22:22:13 +0100
parents 4633cfcbcccb
children 2f264f3df280
comparison
equal deleted inserted replaced
2112:877d0a2d0d86 2113:9c861d07b5b6
442 async_callbacks=None) 442 async_callbacks=None)
443 def saveParamsTemplate(self, filename): 443 def saveParamsTemplate(self, filename):
444 return self._callback("saveParamsTemplate", unicode(filename)) 444 return self._callback("saveParamsTemplate", unicode(filename))
445 445
446 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 446 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
447 in_signature='s', out_signature='a{ss}',
448 async_callbacks=('callback', 'errback'))
449 def sessionInfosGet(self, profile_key, callback=None, errback=None):
450 return self._callback("sessionInfosGet", unicode(profile_key), callback=callback, errback=errback)
451
452 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
447 in_signature='sssis', out_signature='', 453 in_signature='sssis', out_signature='',
448 async_callbacks=None) 454 async_callbacks=None)
449 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): 455 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):
450 return self._callback("setParam", unicode(name), unicode(value), unicode(category), security_limit, unicode(profile_key)) 456 return self._callback("setParam", unicode(name), unicode(value), unicode(category), security_limit, unicode(profile_key))
451 457