9#include "QXmppLogger.h"
10#include "QXmppSendResult.h"
15#include <QAbstractSocket>
24class QFutureInterface;
30class QXmppStreamPrivate;
43 virtual bool isConnected()
const;
49 using IqResult = std::variant<QDomElement, QXmppError>;
52 void cancelOngoingIqs();
53 bool hasIqId(
const QString &
id)
const;
55 void resetPacketCache();
66 QSslSocket *socket()
const;
67 void setSocket(QSslSocket *socket);
70 virtual void handleStart();
83 void enableStreamManagement(
bool resetSequenceNumber);
84 unsigned int lastIncomingSequenceNumber()
const;
85 void setAcknowledgedSequenceNumber(
unsigned int sequenceNumber);
88 virtual void disconnectFromHost();
89 virtual bool sendData(
const QByteArray &);
92 void _q_socketConnected();
93 void _q_socketEncrypted();
94 void _q_socketError(QAbstractSocket::SocketError error);
95 void _q_socketReadyRead();
98 friend class QXmppStreamManager;
99 friend class tst_QXmppStream;
100 friend class TestClient;
103 void processData(
const QString &data);
104 bool handleIqResponse(
const QDomElement &);
106 QXmppStreamPrivate *
const d;
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
The QXmppLoggable class represents a source of logging messages.
Definition QXmppLogger.h:105
Definition QXmppNonza.h:14
The QXmppStanza class is the base class for all XMPP stanzas.
Definition QXmppStanza.h:88
The QXmppStream class is the base class for all XMPP streams.
Definition QXmppStream.h:36
void connected()
This signal is emitted when the stream is connected.
std::variant< QDomElement, QXmppError > IqResult
Definition QXmppStream.h:49
void disconnected()
This signal is emitted when the stream is disconnected.
virtual void handleStream(const QDomElement &element)=0
virtual void handleStanza(const QDomElement &element)=0
Definition QXmppTask.h:62