28 #include <QVariantMap>
30 #include "QXmppLogger.h"
33 class QSslCertificate;
43 class QXmppServerPrivate;
62 Q_PROPERTY(
QXmppLogger* logger READ logger WRITE setLogger NOTIFY loggerChanged)
69 QList<QXmppServerExtension*> extensions();
71 QString domain()
const;
72 void setDomain(
const QString &domain);
80 QVariantMap statistics()
const;
82 void addCaCertificates(
const QString &caCertificates);
83 void setLocalCertificate(
const QString &path);
84 void setLocalCertificate(
const QSslCertificate &certificate);
85 void setPrivateKey(
const QString &path);
86 void setPrivateKey(
const QSslKey &key);
89 bool listenForClients(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
90 bool listenForServers(
const QHostAddress &address = QHostAddress::Any, quint16 port = 5269);
92 bool sendElement(
const QDomElement &element);
99 void clientConnected(
const QString &jid);
102 void clientDisconnected(
const QString &jid);
108 void handleElement(
const QDomElement &element);
111 void _q_clientConnection(QSslSocket *socket);
112 void _q_clientConnected();
113 void _q_clientDisconnected();
114 void _q_dialbackRequestReceived(
const QXmppDialback &dialback);
115 void _q_outgoingServerDisconnected();
116 void _q_serverConnection(QSslSocket *socket);
117 void _q_serverDisconnected();
120 friend class QXmppServerPrivate;
121 QXmppServerPrivate *d;
124 class QXmppSslServerPrivate;
137 void addCaCertificates(
const QList<QSslCertificate> &certificates);
138 void setLocalCertificate(
const QSslCertificate &certificate);
139 void setPrivateKey(
const QSslKey &key);
143 void newConnection(QSslSocket *socket);
146 #if QT_VERSION < 0x050000
147 void incomingConnection(
int socketDescriptor);
149 void incomingConnection(qintptr socketDescriptor);
151 QXmppSslServerPrivate *
const d;
The QXmppPasswordChecker class represents an abstract password checker.
Definition: QXmppPasswordChecker.h:101
The QXmppSslServer class represents an SSL-enabled TCP server.
Definition: QXmppServer.h:129
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:90
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition: QXmppDialback.h:34
The QXmppServer class represents an XMPP server.
Definition: QXmppServer.h:59
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:111
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition: QXmppServerExtension.h:48
Interface for password checkers.
Definition: QXmppIncomingClient.h:39
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
The QXmppStream class is the base class for all XMPP streams.
Definition: QXmppStream.h:41
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
Definition: QXmppOutgoingServer.h:40
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:36