[Telepathy-commits] [mingle/master] Add a CallbackList for added streams
Sjoerd Simons
sjoerd at luon.net
Sat Nov 8 14:22:13 PST 2008
---
jingle.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/jingle.py b/jingle.py
index eefe0c9..5d2c06b 100644
--- a/jingle.py
+++ b/jingle.py
@@ -9,7 +9,7 @@ from twisted.internet import defer
from twisted.words.protocols.jabber.client import IQ
from twisted.words.xish import domish, xpath
from twisted.words.protocols.jabber.jid import JID
-
+from twisted.words.xish.utility import CallbackList
import ns
from util import make_iq_result
@@ -740,6 +740,7 @@ class JingleConference(fs2.Conference):
self.sessions = {}
self.streams = {}
self.stream_deferreds = {}
+ self.streamAdded = CallbackList()
def get_participant(self, contact):
if not self.participants.has_key(contact):
@@ -781,6 +782,8 @@ class JingleConference(fs2.Conference):
stream = JingleStream(fsstream, namespace)
self.streams[session][participant] = stream
+ self.streamAdded.callback(participant, fsstream)
+
return stream;
def got_capabilities(self, caps, session, participant):
--
1.5.6.5
More information about the Telepathy-commits
mailing list