QXmpp Version: 1.5.1
Signals | Public Member Functions | Friends | List of all members
QXmppIncomingServer Class Reference

The QXmppIncomingServer class represents an incoming XMPP stream from an XMPP server. More...

#include <QXmppIncomingServer.h>

Inheritance diagram for QXmppIncomingServer:
Inheritance graph
Collaboration diagram for QXmppIncomingServer:
Collaboration graph


void dialbackRequestReceived (const QXmppDialback &result)
 This signal is emitted when a dialback verify request is received.
void elementReceived (const QDomElement &element)
 This signal is emitted when an element 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

 QXmppIncomingServer (QSslSocket *socket, const QString &domain, QObject *parent)
 ~QXmppIncomingServer () override
 Destroys the current stream.
bool isConnected () const override
QString localStreamId () const
- 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)


class QXmppIncomingServerPrivate

Additional Inherited Members

- Public Types inherited from QXmppStream
using IqResult = std::variant< QDomElement, QXmppError >
- Public Slots inherited from QXmppStream
virtual void disconnectFromHost ()
virtual bool sendData (const QByteArray &)
- 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 QXmppIncomingServer class represents an incoming XMPP stream from an XMPP server.

Constructor & Destructor Documentation

◆ QXmppIncomingServer()

QXmppIncomingServer::QXmppIncomingServer ( QSslSocket *  socket,
const QString &  domain,
QObject *  parent 

Constructs a new incoming server stream.

socketThe socket for the XMPP stream.
domainThe local domain.
parentThe parent QObject for the stream (optional).

Member Function Documentation

◆ isConnected()

bool QXmppIncomingServer::isConnected ( ) const

Returns true if the socket is connected and the remote server is authenticated.

Reimplemented from QXmppStream.

◆ localStreamId()

QString QXmppIncomingServer::localStreamId ( ) const

Returns the stream's identifier.

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