QXmppByteStreamIq Class

Header: #include <QXmppByteStreamIq.h>
Inherits: QXmppIq

Public Types

class StreamHost
enum Mode { None, Tcp, Udp }

Public Functions

QString activate() const
QXmppByteStreamIq::Mode mode() const
void setActivate(const QString &activate)
void setMode(QXmppByteStreamIq::Mode mode)
void setSid(const QString &sid)
void setStreamHostUsed(const QString &jid)
void setStreamHosts(const QList<QXmppByteStreamIq::StreamHost> &streamHosts)
QString sid() const
QString streamHostUsed() const
QList<QXmppByteStreamIq::StreamHost> streamHosts() const

Detailed Description

QXmppByteStreamIq represents a SOCKS5 bytestreams negoatiation IQ as defined by XEP-0065: SOCKS5 Bytestreams.

Member Type Documentation

enum QXmppByteStreamIq::Mode

Used to select the transport layer protocol (TCP or UDP).

ConstantValueDescription
QXmppByteStreamIq::None0No transport protocol selected.
QXmppByteStreamIq::Tcp1TCP transport.
QXmppByteStreamIq::Udp2UDP transport.

Member Function Documentation

QString QXmppByteStreamIq::activate() const

Returns the jid of the target.

See also setActivate().

QXmppByteStreamIq::Mode QXmppByteStreamIq::mode() const

Returns the protocol type (UDP or TCP).

See also setMode().

void QXmppByteStreamIq::setActivate(const QString &activate)

Sets the jid of the target.

activate.

See also activate().

void QXmppByteStreamIq::setMode(QXmppByteStreamIq::Mode mode)

Sets the protocol type (UDP or TCP).

mode.

See also mode().

void QXmppByteStreamIq::setSid(const QString &sid)

Sets the bytestream stream ID.

sid.

See also sid().

void QXmppByteStreamIq::setStreamHostUsed(const QString &jid)

Sets the JID of the used stream host.

jid.

See also streamHostUsed().

void QXmppByteStreamIq::setStreamHosts(const QList<QXmppByteStreamIq::StreamHost> &streamHosts)

Sets available SOCKS5 stream hosts.

streamHosts.

See also streamHosts().

QString QXmppByteStreamIq::sid() const

Returns the bytestream stream ID.

See also setSid().

QString QXmppByteStreamIq::streamHostUsed() const

Returns the JID of the used stream host.

See also setStreamHostUsed().

QList<QXmppByteStreamIq::StreamHost> QXmppByteStreamIq::streamHosts() const

Returns available SOCKS5 stream hosts.

See also setStreamHosts().