diff 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
line wrap: on
line diff
--- a/sat/bridge/dbus_bridge.py	Sat Aug 11 18:24:55 2018 +0200
+++ b/sat/bridge/dbus_bridge.py	Sat Aug 11 18:24:55 2018 +0200
@@ -154,6 +154,16 @@
         pass
 
     @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
+                         signature='sss')
+    def messageEncryptionStarted(self, to_jid, encryption_data, profile_key):
+        pass
+
+    @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
+                         signature='sa{ss}s')
+    def messageEncryptionStopped(self, to_jid, encryption_data, profile_key):
+        pass
+
+    @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
                          signature='sdssa{ss}a{ss}sa{ss}s')
     def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
         pass
@@ -656,6 +666,12 @@
     def entityDataUpdated(self, jid, name, value, profile):
         self.dbus_bridge.entityDataUpdated(jid, name, value, profile)
 
+    def messageEncryptionStarted(self, to_jid, encryption_data, profile_key):
+        self.dbus_bridge.messageEncryptionStarted(to_jid, encryption_data, profile_key)
+
+    def messageEncryptionStopped(self, to_jid, encryption_data, profile_key):
+        self.dbus_bridge.messageEncryptionStopped(to_jid, encryption_data, profile_key)
+
     def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
         self.dbus_bridge.messageNew(uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile)