QXmpp  Version:1.3.1
QXmppCallStream.h
1 /*
2  * Copyright (C) 2020 The QXmpp developers
3  *
4  * Author:
5  * Niels Ole Salscheider
6  *
7  * Source:
8  * https://github.com/qxmpp-project/qxmpp
9  *
10  * This file is a part of QXmpp library.
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  */
23 
24 #ifndef QXMPPCALLSTREAM_H
25 #define QXMPPCALLSTREAM_H
26 
27 #include <QXmppGlobal.h>
28 
29 #include <gst/gst.h>
30 
31 #include <functional>
32 
33 #include <QObject>
34 
35 class QXmppCallStreamPrivate;
36 class QXmppIceConnection;
37 class QXmppCall;
38 class QXmppCallPrivate;
39 
45 
46 class QXMPP_EXPORT QXmppCallStream : public QObject
47 {
48  Q_OBJECT
49 
50 public:
51  QString creator() const;
52  QString media() const;
53  QString name() const;
54  int id() const;
55  void setReceivePadCallback(std::function<void(GstPad *)> cb);
56  void setSendPadCallback(std::function<void(GstPad *)> cb);
57 
58 private:
59  QXmppCallStream(GstElement *pipeline, GstElement *rtpbin,
60  QString media, QString creator, QString name, int id);
61 
62  QXmppCallStreamPrivate *d;
63 
64  friend class QXmppCall;
65  friend class QXmppCallPrivate;
66 };
67 
68 #endif
QXmppIceConnection
The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connec...
Definition: QXmppStun.h:241
QXmppCall
The QXmppCall class represents a Voice-Over-IP call to a remote party.
Definition: QXmppCall.h:43
QXmppCallStream
The QXmppCallStream class represents an RTP stream in a VoIP call.
Definition: QXmppCallStream.h:46