QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppIncomingServer.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPINCOMINGSERVER_H
6#define QXMPPINCOMINGSERVER_H
7
8#include "QXmppStream.h"
9
10class QXmppDialback;
11class QXmppIncomingServerPrivate;
13
17
18class QXMPP_EXPORT QXmppIncomingServer : public QXmppStream
19{
20 Q_OBJECT
21
22public:
23 QXmppIncomingServer(QSslSocket *socket, const QString &domain, QObject *parent);
24 ~QXmppIncomingServer() override;
25
26 bool isConnected() const override;
27 QString localStreamId() const;
28
29Q_SIGNALS:
32
34 void elementReceived(const QDomElement &element);
35
36protected:
38 void handleStanza(const QDomElement &stanzaElement) override;
39 void handleStream(const QDomElement &streamElement) override;
41
42private Q_SLOTS:
43 void slotDialbackResponseReceived(const QXmppDialback &dialback);
44 void slotSocketDisconnected();
45
46private:
47 Q_DISABLE_COPY(QXmppIncomingServer)
48 QXmppIncomingServerPrivate *d;
49 friend class QXmppIncomingServerPrivate;
50};
51
52#endif
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition QXmppDialback.h:16
The QXmppIncomingServer class represents an incoming XMPP stream from an XMPP server.
Definition QXmppIncomingServer.h:19
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.
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition QXmppOutgoingServer.h:22
The QXmppStream class is the base class for all XMPP streams.
Definition QXmppStream.h:36
virtual bool isConnected() const
Definition QXmppStream.cpp:145
virtual void handleStream(const QDomElement &element)=0
virtual void handleStanza(const QDomElement &element)=0