diff options
author | mathieui <mathieui@mathieui.net> | 2015-09-04 01:05:56 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-09-04 01:05:56 +0200 |
commit | 00a069872054b79fec1e29172df995e065485585 (patch) | |
tree | 63ba1062ade9bb2e1bfc0a9eaa1ecef32246f032 /slixmpp/plugins/xep_0118/user_tune.py | |
parent | 804b23d390fe5733f4f2cbd1b588fbc9b7c42e21 (diff) | |
download | slixmpp-00a069872054b79fec1e29172df995e065485585.tar.gz slixmpp-00a069872054b79fec1e29172df995e065485585.tar.bz2 slixmpp-00a069872054b79fec1e29172df995e065485585.tar.xz slixmpp-00a069872054b79fec1e29172df995e065485585.zip |
Add timeout_callback to a bunch of plugins as a parameter
Diffstat (limited to 'slixmpp/plugins/xep_0118/user_tune.py')
-rw-r--r-- | slixmpp/plugins/xep_0118/user_tune.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0118/user_tune.py b/slixmpp/plugins/xep_0118/user_tune.py index bfb1762a..0882a5ba 100644 --- a/slixmpp/plugins/xep_0118/user_tune.py +++ b/slixmpp/plugins/xep_0118/user_tune.py @@ -35,7 +35,7 @@ class XEP_0118(BasePlugin): def publish_tune(self, artist=None, length=None, rating=None, source=None, title=None, track=None, uri=None, options=None, - ifrom=None, callback=None, timeout=None): + ifrom=None, callback=None, timeout=None, timeout_callback=None): """ Publish the user's current tune. @@ -68,9 +68,10 @@ class XEP_0118(BasePlugin): options=options, ifrom=ifrom, callback=callback, - timeout=timeout) + timeout=timeout, + timeout_callback=timeout_callback) - def stop(self, ifrom=None, callback=None, timeout=None): + def stop(self, ifrom=None, callback=None, timeout=None, timeout_callback=None): """ Clear existing user tune information to stop notifications. @@ -87,4 +88,5 @@ class XEP_0118(BasePlugin): node=UserTune.namespace, ifrom=ifrom, callback=callback, - timeout=timeout) + timeout=timeout, + timeout_callback=timeout_callback) |