comparison frontends/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 7e43ea75cce8
comparison
equal deleted inserted replaced
1022:002ee8397208 1023:8bae81e254a2
178 return self.db_core_iface.getProfilesList() 178 return self.db_core_iface.getProfilesList()
179 179
180 def getProgress(self, id, profile): 180 def getProgress(self, id, profile):
181 return self.db_core_iface.getProgress(id, profile) 181 return self.db_core_iface.getProgress(id, profile)
182 182
183 def getReady(self, , callback=None, errback=None):
184 return self.db_core_iface.getReady(reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
185
183 def getVersion(self, ): 186 def getVersion(self, ):
184 return unicode(self.db_core_iface.getVersion()) 187 return unicode(self.db_core_iface.getVersion())
185 188
186 def getWaitingConf(self, profile_key): 189 def getWaitingConf(self, profile_key):
187 return self.db_core_iface.getWaitingConf(profile_key) 190 return self.db_core_iface.getWaitingConf(profile_key)