Loading...
Searching...
No Matches
QXmppIncomingServer.h
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPINCOMINGSERVER_H
#define QXMPPINCOMINGSERVER_H
#include "QXmppStream.h"
class QXmppDialback;
class QXmppIncomingServerPrivate;
class QXmppOutgoingServer;
class QXMPP_EXPORT QXmppIncomingServer : public QXmppStream
{
Q_OBJECT
public:
QXmppIncomingServer(QSslSocket *socket, const QString &domain, QObject *parent);
~QXmppIncomingServer() override;
bool isConnected() const override;
QString localStreamId() const;
Q_SIGNALS:
void dialbackRequestReceived(const QXmppDialback &result);
void elementReceived(const QDomElement &element);
protected:
void handleStanza(const QDomElement &stanzaElement) override;
void handleStream(const QDomElement &streamElement) override;
private Q_SLOTS:
void slotDialbackResponseReceived(const QXmppDialback &dialback);
void slotSocketDisconnected();
private:
Q_DISABLE_COPY(QXmppIncomingServer)
QXmppIncomingServerPrivate *d;
friend class QXmppIncomingServerPrivate;
};
#endif
QXmppDialback
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition QXmppDialback.h:16
QXmppIncomingServer
The QXmppIncomingServer class represents an incoming XMPP stream from an XMPP server.
Definition QXmppIncomingServer.h:19
QXmppIncomingServer::dialbackRequestReceived
void dialbackRequestReceived(const QXmppDialback &result)
This signal is emitted when a dialback verify request is received.
QXmppIncomingServer::elementReceived
void elementReceived(const QDomElement &element)
This signal is emitted when an element is received.
QXmppOutgoingServer
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition QXmppOutgoingServer.h:22
QXmppStream
The QXmppStream class is the base class for all XMPP streams.
Definition QXmppStream.h:36
QXmppStream::isConnected
virtual bool isConnected() const
Definition QXmppStream.cpp:138
QXmppStream::handleStream
virtual void handleStream(const QDomElement &element)=0
QXmppStream::handleStanza
virtual void handleStanza(const QDomElement &element)=0