Mercurial > libervia-backend
diff src/bridge/DBus.py @ 262:af3d4f11fe43
Added management of connection error
- core: connection_error signal is sent if it's impossible to connect
- bridge: added connection_error signal
- quick_frontend: an error_message is shown when a connection_error is received
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 22 Jan 2011 15:53:56 +0100 |
parents | c8406fe5e81e |
children | c4b84a2d2ad1 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Tue Jan 18 15:22:58 2011 +0100 +++ b/src/bridge/DBus.py Sat Jan 22 15:53:56 2011 +0100 @@ -54,6 +54,11 @@ debug("Disconnected signal") @dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX, + signature='ss') + def connection_error(self, profile, error_type): + debug("Connection_error signal") + + @dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX, signature='sa{ss}ass') def newContact(self, contact, attributes, groups, profile): debug("new contact signal (%s) sended (profile: %s)", contact, profile) @@ -344,6 +349,9 @@ def disconnected(self, profile): self.dbus_bridge.disconnected(profile) + def connection_error(self, profile, error_type): + self.dbus_bridge.connection_error(profile, error_type) + def newContact(self, contact, attributes, groups, profile): self.dbus_bridge.newContact(contact, attributes, groups, profile)