Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 1592:d6d655238a93
bridge: new core method profileStartSession to start a session without connecting the profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 Nov 2015 19:18:10 +0100 |
parents | 698d6755d62a |
children | a3d0cfa5b7a6 |
comparison
equal
deleted
inserted
replaced
1591:0df9c6247474 | 1592:d6d655238a93 |
---|---|
421 async_callbacks=None) | 421 async_callbacks=None) |
422 def paramsRegisterApp(self, xml, security_limit=-1, app=''): | 422 def paramsRegisterApp(self, xml, security_limit=-1, app=''): |
423 return self._callback("paramsRegisterApp", unicode(xml), security_limit, unicode(app)) | 423 return self._callback("paramsRegisterApp", unicode(xml), security_limit, unicode(app)) |
424 | 424 |
425 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 425 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
426 in_signature='s', out_signature='b', | |
427 async_callbacks=None) | |
428 def profileIsSessionStarted(self, profile_key="@DEFAULT@"): | |
429 return self._callback("profileIsSessionStarted", unicode(profile_key)) | |
430 | |
431 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
432 in_signature='ss', out_signature='b', | |
433 async_callbacks=('callback', 'errback')) | |
434 def profileStartSession(self, password='', profile_key="@DEFAULT@", callback=None, errback=None): | |
435 return self._callback("profileStartSession", unicode(password), unicode(profile_key), callback=callback, errback=errback) | |
436 | |
437 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
426 in_signature='ss', out_signature='a{ss}', | 438 in_signature='ss', out_signature='a{ss}', |
427 async_callbacks=None) | 439 async_callbacks=None) |
428 def progressGet(self, id, profile): | 440 def progressGet(self, id, profile): |
429 return self._callback("progressGet", unicode(id), unicode(profile)) | 441 return self._callback("progressGet", unicode(id), unicode(profile)) |
430 | 442 |