Add timeout_callback to a bunch of plugins as a parameter

This commit is contained in:
mathieui
2015-09-04 01:05:56 +02:00
parent 804b23d390
commit 00a0698720
10 changed files with 80 additions and 48 deletions

View File

@@ -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)