diff src/bridge/DBus.py @ 1023:8bae81e254a2

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
author Goffi <goffi@goffi.org>
date Thu, 15 May 2014 16:02:16 +0200
parents fee00f2e11c2
children 15f43b54d697
line wrap: on
line diff
--- a/src/bridge/DBus.py	Wed May 14 13:26:23 2014 +0200
+++ b/src/bridge/DBus.py	Thu May 15 16:02:16 2014 +0200
@@ -356,6 +356,12 @@
         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)
     def getVersion(self, ):