From e54d749eec657d968976f621ccd3e6ae8cd29f45 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 20 Apr 2008 14:39:08 +0000 Subject: [PATCH] add a new dbus signal when a contact changes his status. fixes #3655 --- src/gajim.py | 2 ++ src/remote_control.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 5e3187510..65de1d2e1 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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 diff --git a/src/remote_control.py b/src/remote_control.py index 1ff760d15..20c111b64 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -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