changeset 2097:4bc408b549cd

quick_frontend(QuickApp): added onBridgeConnected method
author Goffi <goffi@goffi.org>
date Sun, 18 Dec 2016 16:28:46 +0100
parents efe31f0881fb
children e0066920a661
files frontends/src/quick_frontend/quick_app.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Sun Dec 18 16:28:44 2016 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Sun Dec 18 16:28:46 2016 +0100
@@ -255,6 +255,9 @@
     def connectBridge(self):
         self.bridge.bridgeConnect(callback=self._bridgeCb, errback=self._bridgeEb)
 
+    def onBridgeConnected(self):
+        pass
+
     def _bridgeCb(self):
         self.registerSignal("connected")
         self.registerSignal("disconnected")
@@ -281,6 +284,7 @@
         quick_games.Tarot.registerSignals(self)
         quick_games.Quiz.registerSignals(self)
         quick_games.Radiocol.registerSignals(self)
+        self.onBridgeConnected()
 
     def _bridgeEb(self, failure):
         if isinstance(failure, exceptions.BridgeExceptionNoService):