24 #ifndef QXMPPCALLMANAGER_H
25 #define QXMPPCALLMANAGER_H
27 #include "QXmppClientExtension.h"
28 #include "QXmppLogger.h"
35 class QXmppCallPrivate;
37 class QXmppCallManagerPrivate;
56 Q_FLAGS(QIODevice::OpenModeFlag QIODevice::OpenMode)
57 Q_PROPERTY(
Direction direction READ direction CONSTANT)
58 Q_PROPERTY(QString jid READ jid CONSTANT)
59 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
60 Q_PROPERTY(QIODevice::OpenMode audioMode READ audioMode NOTIFY audioModeChanged)
61 Q_PROPERTY(QIODevice::OpenMode videoMode READ videoMode NOTIFY videoModeChanged)
75 DisconnectingState = 2,
101 QIODevice::OpenMode audioMode()
const;
103 QIODevice::OpenMode videoMode()
const;
126 void audioModeChanged(QIODevice::OpenMode mode);
129 void videoModeChanged(QIODevice::OpenMode mode);
138 void localCandidatesChanged();
140 void updateOpenMode();
147 friend class QXmppCallManagerPrivate;
148 friend class QXmppCallPrivate;
179 void setStunServer(
const QHostAddress &host, quint16 port = 3478);
180 void setTurnServer(
const QHostAddress &host, quint16 port = 3478);
181 void setTurnUser(
const QString &user);
182 void setTurnPassword(
const QString &password);
208 void _q_callDestroyed(QObject *
object);
209 void _q_disconnected();
210 void _q_iqReceived(
const QXmppIq &iq);
215 QXmppCallManagerPrivate *d;
217 friend class QXmppCallPrivate;
218 friend class QXmppCallManagerPrivate;
@ IncomingDirection
The call is incoming.
Definition: QXmppCallManager.h:66
The QXmppJinglePayloadType class represents a payload type as specified by XEP-0167: Jingle RTP Sessi...
Definition: QXmppJingleIq.h:40
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:35
The QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166:...
Definition: QXmppJingleIq.h:153
The QXmppJingleCandidate class represents a transport candidate as specified by XEP-0176: Jingle ICE-...
Definition: QXmppJingleIq.h:84
The QXmppRtpVideoChannel class represents an RTP video channel to a remote party.
Definition: QXmppRtpChannel.h:267
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47
virtual void setClient(QXmppClient *client)
Definition: QXmppClientExtension.cpp:79
State
This enum is used to describe the state of a call.
Definition: QXmppCallManager.h:72
virtual QStringList discoveryFeatures() const
Definition: QXmppClientExtension.cpp:54
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:41
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:94
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:123
Direction
This enum is used to describe the direction of a call.
Definition: QXmppCallManager.h:65
The QXmppCallManager class provides support for making and receiving voice calls.
Definition: QXmppCallManager.h:172
virtual bool handleStanza(const QDomElement &stanza)=0
You need to implement this method to process incoming XMPP stanzas.
The QXmppCall class represents a Voice-Over-IP call to a remote party.
Definition: QXmppCallManager.h:53
The QXmppRtpAudioChannel class represents an RTP audio channel to a remote party.
Definition: QXmppRtpChannel.h:75