comparison src/bridge/DBus.py @ 1587:698d6755d62a

core, bridge (params): added asyncGetParamsValuesFromCategory (yes that's a long name!) method to retrive params names and values for a given category
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:18:10 +0100
parents 42285d993e68
children d6d655238a93
comparison
equal deleted inserted replaced
1586:42285d993e68 1587:698d6755d62a
241 async_callbacks=('callback', 'errback')) 241 async_callbacks=('callback', 'errback'))
242 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 242 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
243 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback) 243 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback)
244 244
245 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 245 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
246 in_signature='sis', out_signature='a{ss}',
247 async_callbacks=('callback', 'errback'))
248 def asyncGetParamsValuesFromCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
249 return self._callback("asyncGetParamsValuesFromCategory", unicode(category), security_limit, unicode(profile_key), callback=callback, errback=errback)
250
251 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
246 in_signature='sba{ss}s', out_signature='', 252 in_signature='sba{ss}s', out_signature='',
247 async_callbacks=None) 253 async_callbacks=None)
248 def confirmationAnswer(self, id, accepted, data, profile): 254 def confirmationAnswer(self, id, accepted, data, profile):
249 return self._callback("confirmationAnswer", unicode(id), accepted, data, unicode(profile)) 255 return self._callback("confirmationAnswer", unicode(id), accepted, data, unicode(profile))
250 256