comparison 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
comparison
equal deleted inserted replaced
1022:002ee8397208 1023:8bae81e254a2
354 async_callbacks=None) 354 async_callbacks=None)
355 def getProgress(self, id, profile): 355 def getProgress(self, id, profile):
356 return self._callback("getProgress", unicode(id), unicode(profile)) 356 return self._callback("getProgress", unicode(id), unicode(profile))
357 357
358 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 358 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
359 in_signature='', out_signature='',
360 async_callbacks=('callback', 'errback'))
361 def getReady(self, callback=None, errback=None):
362 return self._callback("getReady", callback=callback, errback=errback)
363
364 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
359 in_signature='', out_signature='s', 365 in_signature='', out_signature='s',
360 async_callbacks=None) 366 async_callbacks=None)
361 def getVersion(self, ): 367 def getVersion(self, ):
362 return self._callback("getVersion", ) 368 return self._callback("getVersion", )
363 369