Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 541:8b116fa42a31
core, bridge: waiting confirmation management (new getWaitingConf method)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 14 Nov 2012 20:24:28 +0100 |
parents | 2c4016921403 |
children | ca13633d3b6b |
comparison
equal
deleted
inserted
replaced
540:47e45a577ab7 | 541:8b116fa42a31 |
---|---|
114 def actionResultExt(self, answer_type, id, data, profile): | 114 def actionResultExt(self, answer_type, id, data, profile): |
115 pass | 115 pass |
116 | 116 |
117 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, | 117 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, |
118 signature='ssa{ss}s') | 118 signature='ssa{ss}s') |
119 def askConfirmation(self, conf_type, id, data, profile): | 119 def askConfirmation(self, id, conf_type, data, profile): |
120 pass | 120 pass |
121 | 121 |
122 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, | 122 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, |
123 signature='s') | 123 signature='s') |
124 def connected(self, profile): | 124 def connected(self, profile): |
348 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 348 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
349 in_signature='', out_signature='s', | 349 in_signature='', out_signature='s', |
350 async_callbacks=None) | 350 async_callbacks=None) |
351 def getVersion(self, ): | 351 def getVersion(self, ): |
352 return self._callback("getVersion", ) | 352 return self._callback("getVersion", ) |
353 | |
354 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
355 in_signature='s', out_signature='a(ssa{ss})', | |
356 async_callbacks=None) | |
357 def getWaitingConf(self, profile_key): | |
358 return self._callback("getWaitingConf", unicode(profile_key)) | |
353 | 359 |
354 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 360 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
355 in_signature='s', out_signature='a{ss}', | 361 in_signature='s', out_signature='a{ss}', |
356 async_callbacks=None) | 362 async_callbacks=None) |
357 def getWaitingSub(self, profile_key="@DEFAULT@"): | 363 def getWaitingSub(self, profile_key="@DEFAULT@"): |
507 self.dbus_bridge.actionResult(answer_type, id, data, profile) | 513 self.dbus_bridge.actionResult(answer_type, id, data, profile) |
508 | 514 |
509 def actionResultExt(self, answer_type, id, data, profile): | 515 def actionResultExt(self, answer_type, id, data, profile): |
510 self.dbus_bridge.actionResultExt(answer_type, id, data, profile) | 516 self.dbus_bridge.actionResultExt(answer_type, id, data, profile) |
511 | 517 |
512 def askConfirmation(self, conf_type, id, data, profile): | 518 def askConfirmation(self, id, conf_type, data, profile): |
513 self.dbus_bridge.askConfirmation(conf_type, id, data, profile) | 519 self.dbus_bridge.askConfirmation(id, conf_type, data, profile) |
514 | 520 |
515 def connected(self, profile): | 521 def connected(self, profile): |
516 self.dbus_bridge.connected(profile) | 522 self.dbus_bridge.connected(profile) |
517 | 523 |
518 def connectionError(self, error_type, profile): | 524 def connectionError(self, error_type, profile): |