Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/src/bridge/dbus_bridge.py Thu Jan 05 20:37:01 2017 +0100 +++ b/src/bridge/dbus_bridge.py Thu Jan 05 22:22:13 2017 +0100 @@ -444,6 +444,12 @@ return self._callback("saveParamsTemplate", unicode(filename)) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, + in_signature='s', out_signature='a{ss}', + async_callbacks=('callback', 'errback')) + def sessionInfosGet(self, profile_key, callback=None, errback=None): + return self._callback("sessionInfosGet", unicode(profile_key), callback=callback, errback=errback) + + @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='sssis', out_signature='', async_callbacks=None) def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):