The QXmppCall class represents a Voice-Over-IP call to a remote party. More...
#include <QXmppCallManager.h>
Public Types | |
| enum | Direction { IncomingDirection, OutgoingDirection } |
This enum is used to describe the direction of a call. More... | |
| enum | State { OfferState = 0, ConnectingState = 1, ActiveState = 2, DisconnectingState = 3, FinishedState = 4 } |
This enum is used to describe the state of a call. More... | |
Public Slots | |
| void | accept () |
| void | hangup () |
Signals | |
| void | connected () |
| This signal is emitted when a call is connected. | |
| void | finished () |
| This signal is emitted when a call is finished. | |
| void | ringing () |
| This signal is emitted when the remote party is ringing. | |
| void | stateChanged (QXmppCall::State state) |
| This signal is emitted when the call state changes. | |
Public Member Functions | |
| QXmppCall::Direction | direction () const |
| QString | jid () const |
| QString | sid () const |
| QXmppCall::State | state () const |
| QXmppRtpChannel * | audioChannel () const |
Friends | |
| class | QXmppCallManager |
| class | QXmppCallManagerPrivate |
| class | QXmppCallPrivate |
The QXmppCall class represents a Voice-Over-IP call to a remote party.
To get the QIODevice from which you can read / write audio samples, call audioChannel().
| enum QXmppCall::Direction |
| enum QXmppCall::State |
| void QXmppCall::accept | ( | ) | [slot] |
Call this method if you wish to accept an incoming call.
| QXmppRtpChannel * QXmppCall::audioChannel | ( | ) | const |
Returns the RTP channel for the audio data.
It acts as a QIODevice so that you can read / write audio samples, for instance using a QAudioOutput and a QAudioInput.
| void QXmppCall::connected | ( | ) | [signal] |
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.
| void QXmppCall::finished | ( | ) | [signal] |
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 | ( | ) | [slot] |
Hangs up the call.
| QString QXmppCall::jid | ( | ) | const |
Returns the remote party's JID.
| QString QXmppCall::sid | ( | ) | const |
Returns the call's session identifier.
| QXmppCall::State QXmppCall::state | ( | ) | const |
Returns the call's state.
1.7.1