QXmpp
Version: 1.4.0
|
The QXmppOutgoingClient class represents an outgoing XMPP stream to an XMPP server. More...
#include <QXmppOutgoingClient.h>
Public Slots | |
void | disconnectFromHost () override |
![]() | |
virtual void | disconnectFromHost () |
virtual bool | sendData (const QByteArray &) |
Signals | |
void | error (QXmppClient::Error) |
This signal is emitted when an error is encountered. | |
void | elementReceived (const QDomElement &element, bool &handled) |
This signal is emitted when an element is received. | |
void | presenceReceived (const QXmppPresence &) |
This signal is emitted when a presence is received. | |
void | messageReceived (const QXmppMessage &) |
This signal is emitted when a message is received. | |
void | iqReceived (const QXmppIq &) |
void | sslErrors (const QList< QSslError > &errors) |
This signal is emitted when SSL errors are encountered. | |
![]() | |
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. | |
Public Member Functions | |
QXmppOutgoingClient (QObject *parent) | |
~QXmppOutgoingClient () override | |
Destroys an outgoing client stream. | |
void | connectToHost () |
Attempts to connect to the XMPP server. | |
bool | isAuthenticated () const |
Returns true if authentication has succeeded. | |
bool | isConnected () const override |
Returns true if the socket is connected and a session has been started. | |
bool | isClientStateIndicationEnabled () const |
bool | isStreamManagementEnabled () const |
bool | isStreamResumed () const |
QSslSocket * | socket () const |
QXmppStanza::Error::Condition | xmppStreamError () |
Returns the type of the last XMPP stream error that occurred. | |
QXmppConfiguration & | configuration () |
Returns a reference to the stream's configuration. | |
![]() | |
QXmppStream (QObject *parent) | |
~QXmppStream () override | |
bool | sendPacket (const QXmppStanza &) |
void | resetPacketCache () |
![]() | |
QXmppLoggable (QObject *parent=nullptr) | |
Friends | |
class | QXmppOutgoingClientPrivate |
class | tst_QXmppOutgoingClient |
Additional Inherited Members | |
![]() | |
QSslSocket * | socket () const |
void | setSocket (QSslSocket *socket) |
virtual void | handleStart () |
virtual void | handleStanza (const QDomElement &element)=0 |
virtual void | handleStream (const QDomElement &element)=0 |
void | enableStreamManagement (bool resetSequenceNumber) |
unsigned int | lastIncomingSequenceNumber () const |
void | setAcknowledgedSequenceNumber (unsigned int sequenceNumber) |
![]() | |
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 QXmppOutgoingClient class represents an outgoing XMPP stream to an XMPP server.
QXmppOutgoingClient::QXmppOutgoingClient | ( | QObject * | parent | ) |
Constructs an outgoing client stream.
parent |
|
overrideslot |
Disconnects from the server and resets the stream management state.
|
signal |
This signal is emitted when an IQ response (type result or error) has been received that was not handled by elementReceived().
bool QXmppOutgoingClient::isClientStateIndicationEnabled | ( | ) | const |
Returns true if client state indication (xep-0352) is supported by the server
bool QXmppOutgoingClient::isStreamManagementEnabled | ( | ) | const |
Returns whether Stream Management is currently enabled.
bool QXmppOutgoingClient::isStreamResumed | ( | ) | const |
Returns true if the current stream is a successful resumption of a previous stream.
In case a stream has been resumed, some tasks like fetching the roster again are not required.