QXmpp: QXmppCallStream.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppCallStream.h
1// SPDX-FileCopyrightText: 2019 Niels Ole Salscheider <ole@salscheider.org>
2// SPDX-FileCopyrightText: 2025 Linus Jahn <lnj@kaidan.im>
3//
4// SPDX-License-Identifier: LGPL-2.1-or-later
5
6#ifndef QXMPPCALLSTREAM_H
7#define QXMPPCALLSTREAM_H
8
9#include <QXmppLogger.h>
10
11#include <functional>
12
13typedef struct _GstPad GstPad;
14typedef struct _GstElement GstElement;
15
16class QXmppCallStreamPrivate;
17class QXmppIceConnection;
18class QXmppCall;
19class QXmppCallPrivate;
20
21 class QXMPP_EXPORT QXmppCallStream : public QXmppLoggable
22{
23 Q_OBJECT
24
25public:
26 QString creator() const;
27 QString media() const;
28 QString name() const;
29 int id() const;
30 void setReceivePadCallback(std::function<void(GstPad *)> cb);
31 void setSendPadCallback(std::function<void(GstPad *)> cb);
32
33private:
34 QXmppCallStream(GstElement *pipeline, GstElement *rtpbin, QString media, QString creator, QString name, int id, bool useDtls, QObject *parent);
35
36 QXmppCallStreamPrivate *d;
37
38 friend class QXmppCallStreamPrivate;
39 friend class QXmppCall;
40 friend class QXmppCallPrivate;
41};
42
43#endif
QXmppCall
Definition QXmppCall.h:24
QXmppCallStream::name
QString name() const
Definition QXmppCallStream.cpp:500
QXmppCallStream::media
QString media() const
Definition QXmppCallStream.cpp:490
QXmppCallStream::setSendPadCallback
void setSendPadCallback(std::function< void(GstPad *)> cb)
Definition QXmppCallStream.cpp:531
QXmppCallStream::creator
QString creator() const
Definition QXmppCallStream.cpp:482
QXmppCallStream::setReceivePadCallback
void setReceivePadCallback(std::function< void(GstPad *)> cb)
Definition QXmppCallStream.cpp:518
QXmppCallStream::id
int id() const
Definition QXmppCallStream.cpp:508
QXmppIceConnection
The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connec...
Definition QXmppStun.h:228
QXmppLoggable::QXmppLoggable
QXmppLoggable(QObject *parent=nullptr)
Definition QXmppLogger.cpp:57