aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppCallStream.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-09-10 12:37:45 +0200
committerLinus Jahn <lnj@kaidan.im>2022-09-10 12:37:45 +0200
commit6eece1867199271a6685635d2eeb0237ab8d0cdf (patch)
tree6655af9628e7cf5289bc9fa0bff38b85370986b6 /src/client/QXmppCallStream.cpp
parent5f3c35655b73f329378f20f71985ba3892e96c67 (diff)
CallStream: Add missing documentation
Fixes #430.
Diffstat (limited to 'src/client/QXmppCallStream.cpp')
-rw-r--r--src/client/QXmppCallStream.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/QXmppCallStream.cpp b/src/client/QXmppCallStream.cpp
index 43310bf1..235bad08 100644
--- a/src/client/QXmppCallStream.cpp
+++ b/src/client/QXmppCallStream.cpp
@@ -329,26 +329,45 @@ QXmppCallStream::QXmppCallStream(GstElement *pipeline, GstElement *rtpbin,
d = new QXmppCallStreamPrivate(this, pipeline, rtpbin, media, creator, name, id);
}
+///
+/// Returns the JID of the creator of the call stream.
+///
QString QXmppCallStream::creator() const
{
return d->creator;
}
+///
+/// Returns the media type of the stream, "audio" or "video".
+///
QString QXmppCallStream::media() const
{
return d->media;
}
+///
+/// Returns the name of the stream (e.g. "webcam" or "voice").
+///
+/// There is no defined format and there are no predefined values for this.
+///
QString QXmppCallStream::name() const
{
return d->name;
}
+///
+/// Returns the local ID of the stream.
+///
int QXmppCallStream::id() const
{
return d->id;
}
+///
+/// Sets a gstreamer receive pad callback.
+///
+/// Can be used to process or display the received data.
+///
void QXmppCallStream::setReceivePadCallback(std::function<void(GstPad *)> cb)
{
d->receivePadCB = cb;
@@ -357,6 +376,11 @@ void QXmppCallStream::setReceivePadCallback(std::function<void(GstPad *)> cb)
}
}
+///
+/// Sets a gstreamer send pad callback.
+///
+/// Can be used to send the stream input.
+///
void QXmppCallStream::setSendPadCallback(std::function<void(GstPad *)> cb)
{
d->sendPadCB = cb;