comparison src/bridge/dbus_bridge.py @ 2146:1bb9bf1b4150

core, frontends: getProfilesList renamed to profilesGetList + behaviour change: - profilesGetList now handles clients and components boolean arguments, to filter profiles - jp: added --clients and --components options to profile/list - profilesGetList now returns sorted profiles
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 19:08:52 +0100
parents 1d3f73e065e1
children 91347fe95384
comparison
equal deleted inserted replaced
2145:33c8c4973743 2146:1bb9bf1b4150
322 async_callbacks=None) 322 async_callbacks=None)
323 def getProfileName(self, profile_key="@DEFAULT@"): 323 def getProfileName(self, profile_key="@DEFAULT@"):
324 return self._callback("getProfileName", unicode(profile_key)) 324 return self._callback("getProfileName", unicode(profile_key))
325 325
326 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 326 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
327 in_signature='', out_signature='as',
328 async_callbacks=None)
329 def getProfilesList(self, ):
330 return self._callback("getProfilesList", )
331
332 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
333 in_signature='', out_signature='', 327 in_signature='', out_signature='',
334 async_callbacks=('callback', 'errback')) 328 async_callbacks=('callback', 'errback'))
335 def getReady(self, callback=None, errback=None): 329 def getReady(self, callback=None, errback=None):
336 return self._callback("getReady", callback=callback, errback=errback) 330 return self._callback("getReady", callback=callback, errback=errback)
337 331
422 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 416 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
423 in_signature='ss', out_signature='b', 417 in_signature='ss', out_signature='b',
424 async_callbacks=('callback', 'errback')) 418 async_callbacks=('callback', 'errback'))
425 def profileStartSession(self, password='', profile_key="@DEFAULT@", callback=None, errback=None): 419 def profileStartSession(self, password='', profile_key="@DEFAULT@", callback=None, errback=None):
426 return self._callback("profileStartSession", unicode(password), unicode(profile_key), callback=callback, errback=errback) 420 return self._callback("profileStartSession", unicode(password), unicode(profile_key), callback=callback, errback=errback)
421
422 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
423 in_signature='bb', out_signature='as',
424 async_callbacks=None)
425 def profilesListGet(self, clients=True, components=False):
426 return self._callback("profilesListGet", clients, components)
427 427
428 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 428 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
429 in_signature='ss', out_signature='a{ss}', 429 in_signature='ss', out_signature='a{ss}',
430 async_callbacks=None) 430 async_callbacks=None)
431 def progressGet(self, id, profile): 431 def progressGet(self, id, profile):