add a new dbus signal when a contact changes his status. fixes #3655

This commit is contained in:
Yann Leboulanger 2008-04-20 14:39:08 +00:00
parent 9f8af02c74
commit e54d749eec
2 changed files with 6 additions and 0 deletions

View File

@ -735,6 +735,8 @@ class Interface:
elif new_show > 1: # Status change (not connected/disconnected or error (<1))
notify.notify('status_change', jid, account, [new_show,
status_message])
if self.remote_ctrl:
self.remote_ctrl.raise_signal('ContactStatus', (account, array))
else:
# FIXME: Msn transport (CMSN1.2.1 and PyMSN) doesn't follow the XEP
# still the case in 2008

View File

@ -129,6 +129,10 @@ class SignalObject(dbus.service.Object):
def ContactAbsence(self, account_and_array):
pass
@dbus.service.signal(INTERFACE, signature='av')
def ContactStatus(self, account_and_array):
pass
@dbus.service.signal(INTERFACE, signature='av')
def NewMessage(self, account_and_array):
pass