27 #include "QXmppLogger.h"
30 #include <QVariantMap>
33 class QSslCertificate;
43 class QXmppServerPrivate;
63 Q_PROPERTY(
QXmppLogger *logger READ logger WRITE setLogger NOTIFY loggerChanged)
70 QList<QXmppServerExtension *> extensions();
72 QString domain()
const;
73 void setDomain(
const QString &domain);
83 QVariantMap statistics()
const;
85 void addCaCertificates(
const QString &caCertificates);
86 void setLocalCertificate(
const QString &path);
87 void setLocalCertificate(
const QSslCertificate &certificate);
88 void setPrivateKey(
const QString &path);
89 void setPrivateKey(
const QSslKey &key);
92 bool listenForClients(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
93 bool listenForServers(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5269);
95 bool sendElement(
const QDomElement &element);
102 void clientConnected(
const QString &jid);
105 void clientDisconnected(
const QString &jid);
111 void handleElement(
const QDomElement &element);
114 void _q_clientConnection(QSslSocket *socket);
115 void _q_clientConnected();
116 void _q_clientDisconnected();
117 void _q_dialbackRequestReceived(
const QXmppDialback &dialback);
118 void _q_outgoingServerDisconnected();
119 void _q_serverConnection(QSslSocket *socket);
120 void _q_serverDisconnected();
123 friend class QXmppServerPrivate;
124 QXmppServerPrivate *d;
127 class QXmppSslServerPrivate;
140 void addCaCertificates(
const QList<QSslCertificate> &certificates);
141 void setLocalCertificate(
const QSslCertificate &certificate);
142 void setPrivateKey(
const QSslKey &key);
146 void newConnection(QSslSocket *socket);
149 void incomingConnection(qintptr socketDescriptor)
override;
150 QXmppSslServerPrivate *
const d;
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:35
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:99
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition: QXmppOutgoingServer.h:40
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition: QXmppDialback.h:34
The QXmppSslServer class represents an SSL-enabled TCP server.
Definition: QXmppServer.h:132
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
The QXmppPasswordChecker class represents an abstract password checker.
Definition: QXmppPasswordChecker.h:101
The QXmppStream class is the base class for all XMPP streams.
Definition: QXmppStream.h:41
The QXmppServer class represents an XMPP server.
Definition: QXmppServer.h:59
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:123
Interface for password checkers.
Definition: QXmppIncomingClient.h:39
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition: QXmppServerExtension.h:48