QXmpp Version: 1.5.1
Public Slots | Signals | Public Member Functions | List of all members
QXmppOutgoingServer Class Reference

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

#include <QXmppOutgoingServer.h>

Inheritance diagram for QXmppOutgoingServer:
Inheritance graph
Collaboration diagram for QXmppOutgoingServer:
Collaboration graph

Public Slots

void connectToHost (const QString &domain)
void queueData (const QByteArray &data)
- Public Slots inherited from QXmppStream
virtual void disconnectFromHost ()
virtual bool sendData (const QByteArray &)


void dialbackResponseReceived (const QXmppDialback &response)
 This signal is emitted when a dialback verify response is received.
- Signals inherited from QXmppStream
void connected ()
 This signal is emitted when the stream is connected.
void disconnected ()
 This signal is emitted when the stream is disconnected.
- Signals inherited from QXmppLoggable
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

 QXmppOutgoingServer (const QString &domain, QObject *parent)
 ~QXmppOutgoingServer () override
bool isConnected () const override
QString localStreamKey () const
 Returns the stream's local dialback key.
void setLocalStreamKey (const QString &key)
void setVerify (const QString &id, const QString &key)
QString remoteDomain () const
 Returns the remote server's domain.
- Public Member Functions inherited from QXmppStream
 QXmppStream (QObject *parent)
 ~QXmppStream () override
virtual bool isConnected () const
bool sendPacket (const QXmppNonza &)
QXmppTask< QXmpp::SendResultsend (QXmppNonza &&)
QXmppTask< QXmpp::SendResultsend (QXmppPacket &&)
QXmppTask< IqResultsendIq (QXmppIq &&)
QXmppTask< IqResultsendIq (QXmppPacket &&, const QString &id, const QString &to)
void cancelOngoingIqs ()
bool hasIqId (const QString &id) const
void resetPacketCache ()
- Public Member Functions inherited from QXmppLoggable
 QXmppLoggable (QObject *parent=nullptr)

Additional Inherited Members

- Public Types inherited from QXmppStream
using IqResult = std::variant< QDomElement, QXmppError >
- Protected Member Functions inherited from QXmppStream
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)
- Protected Member Functions inherited from QXmppLoggable
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)

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.

domainthe local domain
parentthe parent object

◆ ~QXmppOutgoingServer()

QXmppOutgoingServer::~QXmppOutgoingServer ( )

Destroys the stream.

Member Function Documentation

◆ connectToHost

void QXmppOutgoingServer::connectToHost ( const QString &  domain)

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


◆ isConnected()

bool QXmppOutgoingServer::isConnected ( ) const

Returns true if the socket is connected and authentication succeeded.

Reimplemented from QXmppStream.

◆ queueData

void QXmppOutgoingServer::queueData ( const QByteArray &  data)

Sends or queues data until connected.


◆ setLocalStreamKey()

void QXmppOutgoingServer::setLocalStreamKey ( const QString &  key)

Sets the stream's local dialback key.


◆ setVerify()

void QXmppOutgoingServer::setVerify ( const QString &  id,
const QString &  key 

Sets the stream's verification information.


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