QXmpp Version: 1.12.0
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;
18class QXmppCall;
19class QXmppCallPrivate;
20
21class 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
Definition QXmppCallStream.h:22
Definition QXmppCall.h:23
The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connec...
Definition QXmppStun.h:225
The QXmppLoggable class represents a source of logging messages.
Definition QXmppLogger.h:110