QXmpp Version: 1.5.6
|
Public Types | |
enum | Direction { IncomingDirection , OutgoingDirection } |
This enum is used to describe the direction of a call. More... | |
enum | State { ConnectingState = 0 , ActiveState = 1 , DisconnectingState = 2 , FinishedState = 3 } |
This enum is used to describe the state of a call. More... | |
Public Member Functions | |
QXmppCall::Direction | direction () const |
QString | jid () const |
QString | sid () const |
QXmppCall::State | state () const |
GstElement * | pipeline () const |
QXmppCallStream * | audioStream () const |
QXmppCallStream * | videoStream () const |
Q_SIGNAL void | connected () |
This signal is emitted when a call is connected. | |
Q_SIGNAL void | finished () |
This signal is emitted when a call is finished. | |
Q_SIGNAL void | ringing () |
This signal is emitted when the remote party is ringing. | |
Q_SIGNAL void | stateChanged (QXmppCall::State state) |
This signal is emitted when the call state changes. | |
Q_SIGNAL void | streamCreated (QXmppCallStream *stream) |
This signal is emitted when a stream is created. | |
Q_SLOT void | accept () |
Q_SLOT void | hangup () |
Q_SLOT void | addVideo () |
Public Member Functions inherited from QXmppLoggable | |
QXmppLoggable (QObject *parent=nullptr) | |
Properties | |
Direction | direction |
The call's direction. | |
QString | jid |
The remote party's JID. | |
State | state |
The call's state. | |
Friends | |
class | QXmppCallManager |
class | QXmppCallManagerPrivate |
class | QXmppCallPrivate |
Additional Inherited Members | |
Signals inherited from QXmppLoggable | |
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. | |
Protected Member Functions inherited from QXmppLoggable | |
void | debug (const QString &message) |
void | info (const QString &message) |
void | warning (const QString &message) |
void | logReceived (const QString &message) |
void | logSent (const QString &message) |
The QXmppCall class represents a Voice-Over-IP call to a remote party.
enum QXmppCall::Direction |
enum QXmppCall::State |
void QXmppCall::accept | ( | ) |
Call this method if you wish to accept an incoming call.
void QXmppCall::addVideo | ( | ) |
Starts sending video to the remote party.
QXmppCallStream * QXmppCall::audioStream | ( | ) | const |
Returns the RTP stream for the audio data.
Q_SIGNAL void QXmppCall::connected | ( | ) |
This signal is emitted when a call is connected.
Once this signal is emitted, you can connect a QAudioOutput and QAudioInput to the call. You can determine the appropriate clockrate and the number of channels by calling payloadType().
QXmppCall::Direction QXmppCall::direction | ( | ) | const |
Returns the call's direction.
Q_SIGNAL void QXmppCall::finished | ( | ) |
This signal is emitted when a call is finished.
Note: Do not delete the call in the slot connected to this signal, instead use deleteLater().
void QXmppCall::hangup | ( | ) |
Hangs up the call.
QString QXmppCall::jid | ( | ) | const |
Returns the remote party's JID.
GstElement * QXmppCall::pipeline | ( | ) | const |
Returns the GStreamer pipeline.
QString QXmppCall::sid | ( | ) | const |
Returns the call's session identifier.
QXmppCall::State QXmppCall::state | ( | ) | const |
Returns the call's state.
QXmppCallStream * QXmppCall::videoStream | ( | ) | const |
Returns the RTP stream for the video data.