The QXmppCallManager class provides support for making and receiving voice calls.
More...
#include <QXmppCallManager.h>
|
void | callReceived (QXmppCall *call) |
|
void | callStarted (QXmppCall *call) |
| This signal is emitted when a call (incoming or outgoing) is started.
|
|
void | setGauge (const QString &gauge, double value) |
| Sets the given gauge to value.
|
|
void | logMessage (QXmppLogger::MessageType type, const QString &msg) |
| This signal is emitted to send logging messages.
|
|
void | updateCounter (const QString &counter, qint64 amount=1) |
| Updates the given counter by amount.
|
|
|
class | QXmppCall |
|
class | QXmppCallPrivate |
|
class | QXmppCallManagerPrivate |
|
The QXmppCallManager class provides support for making and receiving voice calls.
Session initiation is performed as described by XEP-0166: Jingle, XEP-0167: Jingle RTP Sessions and XEP-0176: Jingle ICE-UDP Transport Method.
The data stream is connected using Interactive Connectivity Establishment (RFC 5245) and data is transferred using Real Time Protocol (RFC 3550) packets.
To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:
The QXmppCallManager class provides support for making and receiving voice calls.
Definition QXmppCallManager.h:46
QXmppCallManager()
Definition QXmppCallManager.cpp:55
QXmppClient * client()
Definition QXmppClientExtension.cpp:78
bool addExtension(QXmppClientExtension *extension)
Definition QXmppClient.cpp:263
◆ QXmppCallManager()
QXmppCallManager::QXmppCallManager |
( |
| ) |
|
Constructs a QXmppCallManager object to handle incoming and outgoing Voice-Over-IP calls.
◆ ~QXmppCallManager()
QXmppCallManager::~QXmppCallManager |
( |
| ) |
|
|
override |
◆ call
QXmppCall * QXmppCallManager::call |
( |
const QString & |
jid | ) |
|
|
slot |
Initiates a new outgoing call to the specified recipient.
- Parameters
-
◆ callReceived
void QXmppCallManager::callReceived |
( |
QXmppCall * |
call | ) |
|
|
signal |
This signal is emitted when a new incoming call is received.
To accept the call, invoke the call's QXmppCall::accept() method. To refuse the call, invoke the call's QXmppCall::hangup() method.
◆ setStunServer()
void QXmppCallManager::setStunServer |
( |
const QHostAddress & |
host, |
|
|
quint16 |
port = 3478 |
|
) |
| |
Sets a single STUN server to use to determine server-reflexive addresses and ports.
- Note
- This may only be called prior to calling bind().
- Parameters
-
host | The address of the STUN server. |
port | The port of the STUN server. |
◆ setStunServers()
void QXmppCallManager::setStunServers |
( |
const QList< QPair< QHostAddress, quint16 > > & |
servers | ) |
|
Sets multiple STUN servers to use to determine server-reflexive addresses and ports.
- Note
- This may only be called prior to calling bind().
- Parameters
-
servers | List of the STUN servers. |
- Since
- QXmpp 1.3
◆ setTurnPassword()
void QXmppCallManager::setTurnPassword |
( |
const QString & |
password | ) |
|
Sets the password used for authentication with the TURN server.
- Parameters
-
◆ setTurnServer()
void QXmppCallManager::setTurnServer |
( |
const QHostAddress & |
host, |
|
|
quint16 |
port = 3478 |
|
) |
| |
Sets the TURN server to use to relay packets in double-NAT configurations.
- Parameters
-
host | The address of the TURN server. |
port | The port of the TURN server. |
◆ setTurnUser()
void QXmppCallManager::setTurnUser |
( |
const QString & |
user | ) |
|
Sets the user used for authentication with the TURN server.
- Parameters
-
The documentation for this class was generated from the following files: