The QXmppStream class is the base class for all XMPP streams.
More...
#include <QXmppStream.h>
|
void | connected () |
| This signal is emitted when the stream is connected.
|
|
void | disconnected () |
| This signal is emitted when the stream is disconnected.
|
|
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 | QXmppStreamManager |
|
class | tst_QXmppStream |
|
class | TestClient |
|
The QXmppStream class is the base class for all XMPP streams.
◆ IqResult
Contains a QDomElement if an IQ response of type 'result' has been received. In case of an error response of if an error occurred while sending the IQ request, a QXmppError is used.
- Warning
- THIS API IS NOT FINALIZED YET!
- Since
- QXmpp 1.5
◆ QXmppStream()
QXmppStream::QXmppStream |
( |
QObject * |
parent | ) |
|
Constructs a base XMPP stream.
- Parameters
-
◆ ~QXmppStream()
QXmppStream::~QXmppStream |
( |
| ) |
|
|
override |
Destroys a base XMPP stream.
◆ cancelOngoingIqs()
void QXmppStream::cancelOngoingIqs |
( |
| ) |
|
◆ disconnectFromHost
void QXmppStream::disconnectFromHost |
( |
| ) |
|
|
virtualslot |
Disconnects from the remote host.
◆ enableStreamManagement()
void QXmppStream::enableStreamManagement |
( |
bool |
resetSequenceNumber | ) |
|
|
protected |
Enables Stream Management acks / reqs (XEP-0198).
- Parameters
-
resetSequenceNumber | Indicates if the sequence numbers should be reset. This must be done if the stream is not resumed. |
- Since
- QXmpp 1.0
◆ handleStanza()
virtual void QXmppStream::handleStanza |
( |
const QDomElement & |
element | ) |
|
|
protectedpure virtual |
Handles an incoming XMPP stanza.
- Parameters
-
◆ handleStart()
void QXmppStream::handleStart |
( |
| ) |
|
|
protectedvirtual |
Handles a stream start event, which occurs when the underlying transport becomes ready (socket connected, encryption started).
If you redefine handleStart(), make sure to call the base class's method.
◆ handleStream()
virtual void QXmppStream::handleStream |
( |
const QDomElement & |
element | ) |
|
|
protectedpure virtual |
Handles an incoming XMPP stream start.
- Parameters
-
◆ hasIqId()
bool QXmppStream::hasIqId |
( |
const QString & |
id | ) |
const |
Returns whether the IQ ID is currently in use.
- Since
- QXmpp 1.5
◆ isConnected()
bool QXmppStream::isConnected |
( |
| ) |
const |
|
virtual |
◆ lastIncomingSequenceNumber()
unsigned int QXmppStream::lastIncomingSequenceNumber |
( |
| ) |
const |
|
protected |
Returns the sequence number of the last incoming stanza (XEP-0198).
- Since
- QXmpp 1.0
◆ resetPacketCache()
void QXmppStream::resetPacketCache |
( |
| ) |
|
Resets the stream management packages cache.
This can be done to prevent that packages from the last connection are being resent.
- Since
- QXmpp 1.4
◆ send() [1/2]
Sends an XMPP packet to the peer.
- Since
- QXmpp 1.5
◆ send() [2/2]
Sends an XMPP packet to the peer.
- Since
- QXmpp 1.5
◆ sendData
bool QXmppStream::sendData |
( |
const QByteArray & |
data | ) |
|
|
virtualslot |
Sends raw data to the peer.
- Parameters
-
◆ sendIq() [1/2]
Sends an IQ packet and returns the response asynchronously.
- Warning
- THIS API IS NOT FINALIZED YET!
- Since
- QXmpp 1.5
◆ sendIq() [2/2]
Sends an IQ packet and returns the response asynchronously.
- Warning
- THIS API IS NOT FINALIZED YET!
- Since
- QXmpp 1.5
◆ sendPacket()
bool QXmppStream::sendPacket |
( |
const QXmppNonza & |
nonza | ) |
|
Sends an XMPP packet to the peer.
- Parameters
-
◆ setAcknowledgedSequenceNumber()
void QXmppStream::setAcknowledgedSequenceNumber |
( |
unsigned int |
sequenceNumber | ) |
|
|
protected |
Sets the last acknowledged sequence number for outgoing stanzas (XEP-0198).
- Since
- QXmpp 1.0
◆ setSocket()
void QXmppStream::setSocket |
( |
QSslSocket * |
socket | ) |
|
|
protected |
Sets the QSslSocket used for this stream.
◆ socket()
QSslSocket * QXmppStream::socket |
( |
| ) |
const |
|
protected |
Returns the QSslSocket used for this stream.
The documentation for this class was generated from the following files: