8 #include "QXmppLogger.h" 11 #include <QVariantMap> 14 class QSslCertificate;
24 class QXmppServerPrivate;
44 Q_PROPERTY(
QXmppLogger *logger READ logger WRITE setLogger NOTIFY loggerChanged)
51 QList<QXmppServerExtension *> extensions();
53 QString domain()
const;
54 void setDomain(
const QString &domain);
64 QVariantMap statistics()
const;
66 void addCaCertificates(
const QString &caCertificates);
67 void setLocalCertificate(
const QString &path);
68 void setLocalCertificate(
const QSslCertificate &certificate);
69 void setPrivateKey(
const QString &path);
70 void setPrivateKey(
const QSslKey &key);
73 bool listenForClients(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
74 bool listenForServers(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5269);
76 bool sendElement(
const QDomElement &element);
83 void clientConnected(
const QString &jid);
86 void clientDisconnected(
const QString &jid);
92 void handleElement(
const QDomElement &element);
95 void _q_clientConnection(QSslSocket *socket);
96 void _q_clientConnected();
97 void _q_clientDisconnected();
98 void _q_dialbackRequestReceived(
const QXmppDialback &dialback);
99 void _q_outgoingServerDisconnected();
100 void _q_serverConnection(QSslSocket *socket);
101 void _q_serverDisconnected();
104 friend class QXmppServerPrivate;
105 const std::unique_ptr<QXmppServerPrivate> d;
108 class QXmppSslServerPrivate;
121 void addCaCertificates(
const QList<QSslCertificate> &certificates);
122 void setLocalCertificate(
const QSslCertificate &certificate);
123 void setPrivateKey(
const QSslKey &key);
127 void newConnection(QSslSocket *socket);
130 void incomingConnection(qintptr socketDescriptor)
override;
131 const std::unique_ptr<QXmppSslServerPrivate> d;
The QXmppPasswordChecker class represents an abstract password checker.
Definition: QXmppPasswordChecker.h:82
The QXmppSslServer class represents an SSL-enabled TCP server.
Definition: QXmppServer.h:113
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:87
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition: QXmppDialback.h:15
The QXmppServer class represents an XMPP server.
Definition: QXmppServer.h:40
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:109
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition: QXmppServerExtension.h:28
The QXmppIncomingClient class represents an incoming XMPP stream from an XMPP client.
Definition: QXmppIncomingClient.h:22
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:28
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition: QXmppOutgoingServer.h:23
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:21