[Telepathy-commits] [telepathy-qt4/master] StreamedMediaChannel: Added MediaStream::remove/requestStreamDirection methods.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Mar 10 22:45:29 PDT 2009
---
TelepathyQt4/Client/streamed-media-channel.cpp | 13 +++++++++++++
TelepathyQt4/Client/streamed-media-channel.h | 2 --
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt4/Client/streamed-media-channel.cpp b/TelepathyQt4/Client/streamed-media-channel.cpp
index 90108ee..8279be3 100644
--- a/TelepathyQt4/Client/streamed-media-channel.cpp
+++ b/TelepathyQt4/Client/streamed-media-channel.cpp
@@ -129,6 +129,19 @@ Telepathy::MediaStreamPendingSend MediaStream::pendingSend() const
return mPriv->pendingSend;
}
+PendingOperation *MediaStream::remove()
+{
+ return new PendingVoidMethodCall(this,
+ mPriv->channel->streamedMediaInterface()->RemoveStreams(Telepathy::UIntList() << mPriv->id));
+}
+
+PendingOperation *MediaStream::requestStreamDirection(
+ Telepathy::MediaStreamDirection direction)
+{
+ return new PendingVoidMethodCall(this,
+ mPriv->channel->streamedMediaInterface()->RequestStreamDirection(mPriv->id, direction));
+}
+
void MediaStream::setDirection(Telepathy::MediaStreamDirection direction,
Telepathy::MediaStreamPendingSend pendingSend)
{
diff --git a/TelepathyQt4/Client/streamed-media-channel.h b/TelepathyQt4/Client/streamed-media-channel.h
index ce4d19f..4b6a86d 100644
--- a/TelepathyQt4/Client/streamed-media-channel.h
+++ b/TelepathyQt4/Client/streamed-media-channel.h
@@ -57,11 +57,9 @@ public:
Telepathy::MediaStreamDirection direction() const;
Telepathy::MediaStreamPendingSend pendingSend() const;
-#if 0
PendingOperation *remove();
PendingOperation *requestStreamDirection(
Telepathy::MediaStreamDirection direction);
-#endif
Q_SIGNALS:
void removed();
--
1.5.6.5
More information about the telepathy-commits
mailing list