add a new dbus signal when a contact changes his status. fixes #3655
This commit is contained in:
		
							parent
							
								
									9f8af02c74
								
							
						
					
					
						commit
						e54d749eec
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -735,6 +735,8 @@ class Interface: | ||||||
| 			elif new_show > 1: # Status change (not connected/disconnected or error (<1)) | 			elif new_show > 1: # Status change (not connected/disconnected or error (<1)) | ||||||
| 				notify.notify('status_change', jid, account, [new_show, | 				notify.notify('status_change', jid, account, [new_show, | ||||||
| 					status_message]) | 					status_message]) | ||||||
|  | 				if self.remote_ctrl: | ||||||
|  | 					self.remote_ctrl.raise_signal('ContactStatus', (account, array)) | ||||||
| 		else: | 		else: | ||||||
| 			# FIXME: Msn transport (CMSN1.2.1 and PyMSN) doesn't follow the XEP | 			# FIXME: Msn transport (CMSN1.2.1 and PyMSN) doesn't follow the XEP | ||||||
| 			# still the case in 2008 | 			# still the case in 2008 | ||||||
|  |  | ||||||
|  | @ -129,6 +129,10 @@ class SignalObject(dbus.service.Object): | ||||||
| 	def ContactAbsence(self, account_and_array): | 	def ContactAbsence(self, account_and_array): | ||||||
| 		pass | 		pass | ||||||
| 
 | 
 | ||||||
|  | 	@dbus.service.signal(INTERFACE, signature='av') | ||||||
|  | 	def ContactStatus(self, account_and_array): | ||||||
|  | 		pass | ||||||
|  | 
 | ||||||
| 	@dbus.service.signal(INTERFACE, signature='av') | 	@dbus.service.signal(INTERFACE, signature='av') | ||||||
| 	def NewMessage(self, account_and_array): | 	def NewMessage(self, account_and_array): | ||||||
| 		pass | 		pass | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue