The QXmppRtpChannel class represents an RTP channel to a remote party. More...
#include <QXmppRtpChannel.h>
Public Types | |
enum | Tone { Tone_0 = 0, Tone_1, Tone_2, Tone_3, Tone_4, Tone_5, Tone_6, Tone_7, Tone_8, Tone_9, Tone_Star, Tone_Pound, Tone_A, Tone_B, Tone_C, Tone_D } |
This enum is used to describe a DTMF tone. More... | |
Public Slots | |
void | datagramReceived (const QByteArray &ba) |
void | startTone (QXmppRtpChannel::Tone tone) |
void | stopTone (QXmppRtpChannel::Tone tone) |
Signals | |
void | sendDatagram (const QByteArray &ba) |
This signal is emitted when a datagram needs to be sent. | |
void | logMessage (QXmppLogger::MessageType type, const QString &msg) |
This signal is emitted to send logging messages. | |
Public Member Functions | |
QXmppRtpChannel (QObject *parent=0) | |
~QXmppRtpChannel () | |
QXmppJinglePayloadType | payloadType () const |
QList< QXmppJinglePayloadType > | localPayloadTypes () const |
void | setRemotePayloadTypes (const QList< QXmppJinglePayloadType > &remotePayloadTypes) |
The QXmppRtpChannel class represents an RTP channel to a remote party.
It acts as a QIODevice so that you can read / write audio samples, for instance using a QAudioOutput and a QAudioInput.
This enum is used to describe a DTMF tone.
QXmppRtpChannel::QXmppRtpChannel | ( | QObject * | parent = 0 |
) |
Creates a new RTP channel.
parent |
QXmppRtpChannel::~QXmppRtpChannel | ( | ) |
Destroys an RTP channel.
void QXmppRtpChannel::datagramReceived | ( | const QByteArray & | ba | ) | [slot] |
Processes an incoming RTP packet.
ba |
QList< QXmppJinglePayloadType > QXmppRtpChannel::localPayloadTypes | ( | ) | const |
Returns the local payload types.
QXmppJinglePayloadType QXmppRtpChannel::payloadType | ( | ) | const |
Returns the RTP channel's payload type.
You can use this to determine the QAudioFormat to use with your QAudioInput/QAudioOutput.
void QXmppRtpChannel::setRemotePayloadTypes | ( | const QList< QXmppJinglePayloadType > & | remotePayloadTypes | ) |
Sets the remote payload types.
remotePayloadTypes |
void QXmppRtpChannel::startTone | ( | QXmppRtpChannel::Tone | tone | ) | [slot] |
Starts sending the specified DTMF tone.
tone |
void QXmppRtpChannel::stopTone | ( | QXmppRtpChannel::Tone | tone | ) | [slot] |
Stops sending the specified DTMF tone.
tone |