24 #ifndef QXMPPCALLMANAGER_H
25 #define QXMPPCALLMANAGER_H
31 #include "QXmppClientExtension.h"
32 #include "QXmppLogger.h"
35 class QXmppCallPrivate;
37 class QXmppCallManagerPrivate;
57 Q_FLAGS(QIODevice::OpenModeFlag QIODevice::OpenMode)
58 Q_PROPERTY(
Direction direction READ direction CONSTANT)
59 Q_PROPERTY(QString jid READ jid CONSTANT)
60 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
61 Q_PROPERTY(QIODevice::OpenMode audioMode READ audioMode NOTIFY audioModeChanged)
62 Q_PROPERTY(QIODevice::OpenMode videoMode READ videoMode NOTIFY videoModeChanged)
77 DisconnectingState = 2,
89 QIODevice::OpenMode audioMode()
const;
91 QIODevice::OpenMode videoMode()
const;
126 void localCandidatesChanged();
128 void updateOpenMode();
135 friend class QXmppCallManagerPrivate;
136 friend class QXmppCallPrivate;
167 void setStunServer(
const QHostAddress &host, quint16 port = 3478);
168 void setTurnServer(
const QHostAddress &host, quint16 port = 3478);
169 void setTurnUser(
const QString &user);
170 void setTurnPassword(
const QString &password);
196 void _q_callDestroyed(QObject *
object);
197 void _q_disconnected();
198 void _q_iqReceived(
const QXmppIq &iq);
203 QXmppCallManagerPrivate *d;
205 friend class QXmppCallPrivate;
206 friend class QXmppCallManagerPrivate;
void finished()
This signal is emitted when a call is finished.
@ IncomingDirection
The call is incoming.
Definition: QXmppCallManager.h:68
The QXmppJinglePayloadType class represents a payload type as specified by XEP-0167: Jingle RTP Sessi...
Definition: QXmppJingleIq.h:41
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:37
The QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166:...
Definition: QXmppJingleIq.h:155
The QXmppJingleCandidate class represents a transport candidate as specified by XEP-0176: Jingle ICE-...
Definition: QXmppJingleIq.h:85
The QXmppRtpVideoChannel class represents an RTP video channel to a remote party.
Definition: QXmppRtpChannel.h:256
void stateChanged(QXmppCall::State state)
This signal is emitted when the call state changes.
void videoModeChanged(QIODevice::OpenMode mode)
This signal is emitted when the video channel changes.
void audioModeChanged(QIODevice::OpenMode mode)
This signal is emitted when the audio channel changes.
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:48
virtual void setClient(QXmppClient *client)
Definition: QXmppClientExtension.cpp:79
void ringing()
This signal is emitted when the remote party is ringing.
void callReceived(QXmppCall *call)
State
This enum is used to describe the state of a call.
Definition: QXmppCallManager.h:74
virtual QStringList discoveryFeatures() const
Definition: QXmppClientExtension.cpp:54
void callStarted(QXmppCall *call)
This signal is emitted when a call (incoming or outgoing) is started.
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:43
The QXmppClient class is the main class for using QXmpp.
Definition: QXmppClient.h:81
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:112
Direction
This enum is used to describe the direction of a call.
Definition: QXmppCallManager.h:67
The QXmppCallManager class provides support for making and receiving voice calls.
Definition: QXmppCallManager.h:161
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:54
The QXmppRtpAudioChannel class represents an RTP audio channel to a remote party.
Definition: QXmppRtpChannel.h:76
void connected()
This signal is emitted when a call is connected.