comparison src/bridge/DBus.py @ 413:dd4caab17008

core: - individual parameters managed through sqlite - new asyncGetParamA method, which allow to get parameter for a not connected profile ==> individual parameters are cached in memory when the profile is connected, but must be accessed though sqlite else, and that must be done asynchronously primitivus: - profile manager updated to use asyncGetParamA /!\ still broken, need more work before being able to run again
author Goffi <goffi@goffi.org>
date Tue, 01 Nov 2011 20:39:22 +0100
parents 3ed53803b3b3
children 6c167a2e04b8
comparison
equal deleted inserted replaced
412:62b17854254e 413:dd4caab17008
133 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 133 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
134 in_signature='s', out_signature='', 134 in_signature='s', out_signature='',
135 async_callbacks=('callback', 'errback')) 135 async_callbacks=('callback', 'errback'))
136 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): 136 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None):
137 return self.cb["asyncConnect"](unicode(profile_key), callback, errback) 137 return self.cb["asyncConnect"](unicode(profile_key), callback, errback)
138
139 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
140 in_signature='ssss', out_signature='s',
141 async_callbacks=('callback', 'errback'))
142 def asyncGetParamA(self, name, category, attribute="value", profile_key="@DEFAULT@", callback=None, errback=None):
143 return self.cb["asyncGetParamA"](unicode(name), unicode(category), unicode(attribute), unicode(profile_key), callback, errback)
138 144
139 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 145 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
140 in_signature='ssss', out_signature='s', 146 in_signature='ssss', out_signature='s',
141 async_callbacks=None) 147 async_callbacks=None)
142 def callMenu(self, category, name, menu_type, profile_key): 148 def callMenu(self, category, name, menu_type, profile_key):