comparison sat/bridge/dbus_bridge.py @ 2733:e347e32aa07f

core (memory/encryption): new encryptionNamespaceGet and encryptionTrustUIGet methods: - encryptionNamespaceGet retrieves algorithm namespace from its short name - encryptionTrustUIGet retrieves trust mangement XMLUI from encryption plugin - new markAsUntrusted internal helper method, to add untrusted flag to message data
author Goffi <goffi@goffi.org>
date Wed, 02 Jan 2019 18:22:30 +0100
parents 4e130cc9bfc0
children da59ff099b32
comparison
equal deleted inserted replaced
2732:e55f871fa9db 2733:e347e32aa07f
270 async_callbacks=('callback', 'errback')) 270 async_callbacks=('callback', 'errback'))
271 def disconnect(self, profile_key="@DEFAULT@", callback=None, errback=None): 271 def disconnect(self, profile_key="@DEFAULT@", callback=None, errback=None):
272 return self._callback("disconnect", unicode(profile_key), callback=callback, errback=errback) 272 return self._callback("disconnect", unicode(profile_key), callback=callback, errback=errback)
273 273
274 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 274 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
275 in_signature='s', out_signature='s',
276 async_callbacks=None)
277 def encryptionNamespaceGet(self, arg_0):
278 return self._callback("encryptionNamespaceGet", unicode(arg_0))
279
280 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
275 in_signature='', out_signature='aa{ss}', 281 in_signature='', out_signature='aa{ss}',
276 async_callbacks=None) 282 async_callbacks=None)
277 def encryptionPluginsGet(self, ): 283 def encryptionPluginsGet(self, ):
278 return self._callback("encryptionPluginsGet", ) 284 return self._callback("encryptionPluginsGet", )
279 285
280 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 286 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
287 in_signature='sss', out_signature='s',
288 async_callbacks=('callback', 'errback'))
289 def encryptionTrustUIGet(self, namespace, arg_1, profile_key, callback=None, errback=None):
290 return self._callback("encryptionTrustUIGet", unicode(namespace), unicode(arg_1), unicode(profile_key), callback=callback, errback=errback)
291
292 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
281 in_signature='ss', out_signature='s', 293 in_signature='ss', out_signature='s',
282 async_callbacks=None) 294 async_callbacks=None)
283 def getConfig(self, section, name): 295 def getConfig(self, section, name):
284 return self._callback("getConfig", unicode(section), unicode(name)) 296 return self._callback("getConfig", unicode(section), unicode(name))
285 297
410 return self._callback("messageEncryptionGet", unicode(to_jid), unicode(profile_key)) 422 return self._callback("messageEncryptionGet", unicode(to_jid), unicode(profile_key))
411 423
412 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 424 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
413 in_signature='ssbs', out_signature='', 425 in_signature='ssbs', out_signature='',
414 async_callbacks=None) 426 async_callbacks=None)
415 def messageEncryptionStart(self, to_jid, encryption_ns='', replace=False, profile_key="@NONE@"): 427 def messageEncryptionStart(self, to_jid, namespace='', replace=False, profile_key="@NONE@"):
416 return self._callback("messageEncryptionStart", unicode(to_jid), unicode(encryption_ns), replace, unicode(profile_key)) 428 return self._callback("messageEncryptionStart", unicode(to_jid), unicode(namespace), replace, unicode(profile_key))
417 429
418 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 430 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
419 in_signature='ss', out_signature='', 431 in_signature='ss', out_signature='',
420 async_callbacks=None) 432 async_callbacks=None)
421 def messageEncryptionStop(self, to_jid, profile_key): 433 def messageEncryptionStop(self, to_jid, profile_key):