blob: 8f33e416b4539e4dffaf4ee45f4c5848a2e9c422 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// SPDX-FileCopyrightText: 2019 Niels Ole Salscheider <niels_ole@salscheider-online.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPCALLSTREAM_H
#define QXMPPCALLSTREAM_H
#include <QXmppGlobal.h>
#include <functional>
#include <QObject>
typedef struct _GstPad GstPad;
typedef struct _GstElement GstElement;
class QXmppCallStreamPrivate;
class QXmppIceConnection;
class QXmppCall;
class QXmppCallPrivate;
class QXMPP_EXPORT QXmppCallStream : public QObject
{
Q_OBJECT
public:
QString creator() const;
QString media() const;
QString name() const;
int id() const;
void setReceivePadCallback(std::function<void(GstPad *)> cb);
void setSendPadCallback(std::function<void(GstPad *)> cb);
private:
QXmppCallStream(GstElement *pipeline, GstElement *rtpbin,
QString media, QString creator, QString name, int id);
QXmppCallStreamPrivate *d;
friend class QXmppCall;
friend class QXmppCallPrivate;
};
#endif
|