8#include "QXmppLogger.h"
24class QXmppServerPrivate;
45 Q_PROPERTY(
QXmppLogger *logger READ logger WRITE setLogger NOTIFY loggerChanged)
52 QList<QXmppServerExtension *> extensions();
54 QString domain()
const;
55 void setDomain(
const QString &domain);
65 QVariantMap statistics()
const;
67 void addCaCertificates(
const QString &caCertificates);
68 void setLocalCertificate(
const QString &path);
69 void setLocalCertificate(
const QSslCertificate &certificate);
70 void setPrivateKey(
const QString &path);
71 void setPrivateKey(
const QSslKey &key);
74 bool listenForClients(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
75 bool listenForServers(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5269);
77 bool sendElement(
const QDomElement &element);
93 void handleElement(
const QDomElement &element);
96 void _q_clientConnection(QSslSocket *socket);
97 void _q_clientConnected();
98 void _q_clientDisconnected();
99 void _q_dialbackRequestReceived(
const QXmppDialback &dialback);
100 void _q_outgoingServerDisconnected();
101 void _q_serverConnection(QSslSocket *socket);
102 void _q_serverDisconnected();
105 friend class QXmppServerPrivate;
106 const std::unique_ptr<QXmppServerPrivate> d;
109class QXmppSslServerPrivate;
122 void addCaCertificates(
const QList<QSslCertificate> &certificates);
123 void setLocalCertificate(
const QSslCertificate &certificate);
124 void setPrivateKey(
const QSslKey &key);
131 void incomingConnection(qintptr socketDescriptor)
override;
132 const std::unique_ptr<QXmppSslServerPrivate> d;
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition: QXmppDialback.h:16
Interface for password checkers.
Definition: QXmppIncomingClient.h:21
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:110
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:29
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition: QXmppOutgoingServer.h:22
The QXmppPasswordChecker class represents an abstract password checker.
Definition: QXmppPasswordChecker.h:83
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:21
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition: QXmppServerExtension.h:29
The QXmppServer class represents an XMPP server.
Definition: QXmppServer.h:42
QXmppLogger * logger()
Returns the QXmppLogger associated with the server.
void clientDisconnected(const QString &jid)
This signal is emitted when a client has disconnected.
void clientConnected(const QString &jid)
This signal is emitted when a client has connected.
void loggerChanged(QXmppLogger *logger)
This signal is emitted when the logger changes.
The QXmppSslServer class represents an SSL-enabled TCP server.
Definition: QXmppServer.h:115
void newConnection(QSslSocket *socket)
This signal is emitted when a new connection is established.
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:27