The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
More...
#include <QXmppOutgoingServer.h>
|
void | connectToHost (const QString &domain) |
|
void | queueData (const QByteArray &data) |
| Sends or queues data until connected.
|
|
virtual void | disconnectFromHost () |
|
virtual bool | sendData (const QByteArray &) |
|
|
void | dialbackResponseReceived (const QXmppDialback &response) |
| This signal is emitted when a dialback verify response is received.
|
|
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.
|
|
|
| QXmppOutgoingServer (const QString &domain, QObject *parent) |
|
bool | isConnected () const override |
| Returns true if the socket is connected and authentication succeeded.
|
|
QString | localStreamKey () const |
| Returns the stream's local dialback key.
|
|
void | setLocalStreamKey (const QString &key) |
| Sets the stream's local dialback key.
|
|
void | setVerify (const QString &id, const QString &key) |
| Sets the stream's verification information.
|
|
QString | remoteDomain () const |
| Returns the remote server's domain.
|
|
| QXmppStream (QObject *parent) |
|
bool | sendPacket (const QXmppNonza &) |
|
QXmpp::Private::XmppSocket & | xmppSocket () const |
|
| QXmppLoggable (QObject *parent=nullptr) |
|
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
◆ QXmppOutgoingServer()
QXmppOutgoingServer::QXmppOutgoingServer |
( |
const QString & | domain, |
|
|
QObject * | parent ) |
Constructs a new outgoing server-to-server stream.
- Parameters
-
domain | the local domain |
parent | the parent object |
◆ connectToHost
void QXmppOutgoingServer::connectToHost |
( |
const QString & | domain | ) |
|
|
slot |
Attempts to connect to an XMPP server for the specified domain.
- Parameters
-
◆ isConnected()
bool QXmppOutgoingServer::isConnected |
( |
| ) |
const |
|
overridevirtual |
Returns true if the socket is connected and authentication succeeded.
Reimplemented from QXmppStream.
The documentation for this class was generated from the following files: