QXmpp Version: 1.15.0
Loading...
Searching...
No Matches
QXmppOutgoingServer Class Reference

The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server. More...

#include <QXmppOutgoingServer.h>

Inheritance diagram for QXmppOutgoingServer:
QXmppLoggable

Public Member Functions

 QXmppOutgoingServer (const QString &domain, QObject *parent)
bool isConnected () const
 Returns true if the socket is connected and authentication succeeded.
Q_SLOT void connectToHost (const QString &domain)
void disconnectFromHost ()
 Disconnects from the remote host.
Q_SLOT void queueData (const QByteArray &data)
 Sends or queues data until connected.
Q_SIGNAL void connected ()
 This signal is emitted when the stream is connected.
Q_SIGNAL void disconnected ()
 This signal is emitted when the stream is disconnected.
bool sendData (const QByteArray &)
 Sends raw data to the peer.
bool sendPacket (const QXmppNonza &)
 Sends an XMPP packet to the peer.
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.
Q_SIGNAL void dialbackResponseReceived (const QXmppDialback &response)
 This signal is emitted when a dialback verify response is received.
Public Member Functions inherited from QXmppLoggable
 QXmppLoggable (QObject *parent=nullptr)
Q_SIGNAL void setGauge (const QString &gauge, double value)
 Sets the given gauge to value.
Q_SIGNAL void logMessage (QXmppLogger::MessageType type, const QString &msg)
 This signal is emitted to send logging messages.
Q_SIGNAL void updateCounter (const QString &counter, qint64 amount=1)
 Updates the given counter by amount.

Additional Inherited Members

Protected Member Functions inherited from QXmppLoggable
void debug (const QString &message)
 Logs a debugging message.
void info (const QString &message)
 Logs an informational message.
void warning (const QString &message)
 Logs a warning message.
void logReceived (const QString &message)
 Logs a received packet.
void logSent (const QString &message)
 Logs a sent packet.

Detailed Description

The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.

Constructor & Destructor Documentation

◆ QXmppOutgoingServer()

QXmppOutgoingServer::QXmppOutgoingServer ( const QString & domain,
QObject * parent )

Constructs a new outgoing server-to-server stream.

Parameters
domainthe local domain
parentthe parent object

Member Function Documentation

◆ connectToHost()

void QXmppOutgoingServer::connectToHost ( const QString & domain)

Attempts to connect to an XMPP server for the specified domain.

Parameters
domain

The documentation for this class was generated from the following files: