5#ifndef QXMPPOUTGOINGSERVER_H
6#define QXMPPOUTGOINGSERVER_H
8#include "QXmppLogger.h"
10#include <QAbstractSocket>
17class QXmppOutgoingServerPrivate;
31 bool isConnected()
const;
32 Q_SLOT
void connectToHost(
const QString &domain);
33 void disconnectFromHost();
34 Q_SLOT
void queueData(
const QByteArray &data);
41 bool sendData(
const QByteArray &);
44 QString localStreamKey()
const;
45 void setLocalStreamKey(
const QString &key);
46 void setVerify(
const QString &
id,
const QString &key);
48 QString remoteDomain()
const;
55 void handleStream(
const QDomElement &streamElement);
56 void handleStanza(
const QDomElement &stanzaElement);
58 void onDnsLookupFinished();
59 void onSocketDisconnected();
61 void slotSslErrors(
const QList<QSslError> &errors);
62 void socketError(QAbstractSocket::SocketError error);
64 const std::unique_ptr<QXmppOutgoingServerPrivate> d;
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition: QXmppDialback.h:16
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:110
Definition: QXmppNonza.h:14
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition: QXmppOutgoingServer.h:24
Q_SIGNAL void connected()
This signal is emitted when the stream is connected.
Q_SIGNAL void disconnected()
This signal is emitted when the stream is disconnected.
Q_SIGNAL void dialbackResponseReceived(const QXmppDialback &response)
This signal is emitted when a dialback verify response is received.