comparison sat/plugins/plugin_xep_0234.py @ 2589:282d1314d574

plugin XEP-0329: new methods/signals to handle shares: 2 new methods: - FISLocalSharesGet retrieve paths shared locally - FISUnsharePath stop sharing a file or directory 2 new signals: - FISSharedPathNew triggered when a new path is shared - FISSharedPathRemoved triggered when a path is not shared anymore
author Goffi <goffi@goffi.org>
date Tue, 22 May 2018 10:06:07 +0200
parents 26edcf3a30eb
children 3e4e78de9cca
comparison
equal deleted inserted replaced
2588:4011e4ee3151 2589:282d1314d574
275 @defer.inlineCallbacks 275 @defer.inlineCallbacks
276 def fileJingleRequest(self, client, peer_jid, filepath, name=None, file_hash=None, hash_algo=None, extra=None): 276 def fileJingleRequest(self, client, peer_jid, filepath, name=None, file_hash=None, hash_algo=None, extra=None):
277 """Request a file using jingle file transfer 277 """Request a file using jingle file transfer
278 278
279 @param peer_jid(jid.JID): destinee jid 279 @param peer_jid(jid.JID): destinee jid
280 @param filepath(str): absolute path of the file 280 @param filepath(str): absolute path where the file will be downloaded
281 @param name(unicode, None): name of the file 281 @param name(unicode, None): name of the file
282 @param file_hash(unicode, None): hash of the file 282 @param file_hash(unicode, None): hash of the file
283 @return (D(unicode)): progress id 283 @return (D(unicode)): progress id
284 """ 284 """
285 progress_id_d = defer.Deferred() 285 progress_id_d = defer.Deferred()