Bridge: rename connection_error to connectionError for function name consistency
This commit is contained in:
parent
01fd9c9d42
commit
cf5ee72a52
4 changed files with 8 additions and 8 deletions
|
|
@ -46,7 +46,7 @@ class QuickApp():
|
|||
sys.exit(1)
|
||||
self.bridge.register("connected", self.connected)
|
||||
self.bridge.register("disconnected", self.disconnected)
|
||||
self.bridge.register("connection_error", self.connection_error)
|
||||
self.bridge.register("connectionError", self.connectionError)
|
||||
self.bridge.register("newContact", self.newContact)
|
||||
self.bridge.register("newMessage", self.newMessage)
|
||||
self.bridge.register("newAlert", self.newAlert)
|
||||
|
|
@ -188,7 +188,7 @@ class QuickApp():
|
|||
self.contactList.clear_contacts()
|
||||
self.setStatusOnline(False)
|
||||
|
||||
def connection_error(self, error_type, profile):
|
||||
def connectionError(self, error_type, profile):
|
||||
"""called when something goest wrong with the connection"""
|
||||
if not self.check_profile(profile):
|
||||
return
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ class DbusObject(dbus.service.Object):
|
|||
|
||||
@dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX,
|
||||
signature='ss')
|
||||
def connection_error(self, error_type, profile):
|
||||
debug ("connection_error")
|
||||
def connectionError(self, error_type, profile):
|
||||
debug ("connectionError")
|
||||
|
||||
@dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX,
|
||||
signature='ss')
|
||||
|
|
@ -375,8 +375,8 @@ class DBusBridge(Bridge):
|
|||
def connected(self, profile):
|
||||
self.dbus_bridge.connected(profile)
|
||||
|
||||
def connection_error(self, error_type, profile):
|
||||
self.dbus_bridge.connection_error(error_type, profile)
|
||||
def connectionError(self, error_type, profile):
|
||||
self.dbus_bridge.connectionError(error_type, profile)
|
||||
|
||||
def contactDeleted(self, entity, profile):
|
||||
self.dbus_bridge.contactDeleted(entity, profile)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ sig_in=s
|
|||
doc=Connection is finished or lost
|
||||
doc_param_0=%(doc_profile)s
|
||||
|
||||
[connection_error]
|
||||
[connectionError]
|
||||
type=signal
|
||||
category=communication
|
||||
sig_in=ss
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class SatXMPPClient(client.XMPPClient):
|
|||
|
||||
def initializationFailed(self, reason):
|
||||
print ("initializationFailed: %s" % reason)
|
||||
self.host_app.bridge.connection_error("AUTH_ERROR", self.profile)
|
||||
self.host_app.bridge.connectionError("AUTH_ERROR", self.profile)
|
||||
try:
|
||||
client.XMPPClient.initializationFailed(self, reason)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue