comparison sat/bridge/dbus_bridge.py @ 2655:b8600f8130ac

core (bridge): new messageEncryptionStarted and messageEncryptionStopped signals (not used yet)
author Goffi <goffi@goffi.org>
date Sat, 11 Aug 2018 18:24:55 +0200
parents 712cb4ff3e13
children 4e130cc9bfc0
comparison
equal deleted inserted replaced
2654:e7bfbded652a 2655:b8600f8130ac
149 pass 149 pass
150 150
151 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, 151 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
152 signature='ssss') 152 signature='ssss')
153 def entityDataUpdated(self, jid, name, value, profile): 153 def entityDataUpdated(self, jid, name, value, profile):
154 pass
155
156 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
157 signature='sss')
158 def messageEncryptionStarted(self, to_jid, encryption_data, profile_key):
159 pass
160
161 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
162 signature='sa{ss}s')
163 def messageEncryptionStopped(self, to_jid, encryption_data, profile_key):
154 pass 164 pass
155 165
156 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, 166 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
157 signature='sdssa{ss}a{ss}sa{ss}s') 167 signature='sdssa{ss}a{ss}sa{ss}s')
158 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): 168 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
654 self.dbus_bridge.disconnected(profile) 664 self.dbus_bridge.disconnected(profile)
655 665
656 def entityDataUpdated(self, jid, name, value, profile): 666 def entityDataUpdated(self, jid, name, value, profile):
657 self.dbus_bridge.entityDataUpdated(jid, name, value, profile) 667 self.dbus_bridge.entityDataUpdated(jid, name, value, profile)
658 668
669 def messageEncryptionStarted(self, to_jid, encryption_data, profile_key):
670 self.dbus_bridge.messageEncryptionStarted(to_jid, encryption_data, profile_key)
671
672 def messageEncryptionStopped(self, to_jid, encryption_data, profile_key):
673 self.dbus_bridge.messageEncryptionStopped(to_jid, encryption_data, profile_key)
674
659 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): 675 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
660 self.dbus_bridge.messageNew(uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) 676 self.dbus_bridge.messageNew(uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile)
661 677
662 def newContact(self, contact_jid, attributes, groups, profile): 678 def newContact(self, contact_jid, attributes, groups, profile):
663 self.dbus_bridge.newContact(contact_jid, attributes, groups, profile) 679 self.dbus_bridge.newContact(contact_jid, attributes, groups, profile)