core: added a getReady method which can be called by frontends to ensure that backend is fully initialised before doing anything + this ckeck is automatically done in asyncConnect

This commit is contained in:
Goffi 2014-05-15 16:02:16 +02:00
commit f0b2c7dea3

View file

@ -355,6 +355,12 @@ class DbusObject(dbus.service.Object):
def getProgress(self, id, profile):
return self._callback("getProgress", unicode(id), unicode(profile))
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='', out_signature='',
async_callbacks=('callback', 'errback'))
def getReady(self, callback=None, errback=None):
return self._callback("getReady", callback=callback, errback=errback)
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='', out_signature='s',
async_callbacks=None)