QXmppIncomingServer Class
The QXmppIncomingServer class represents an incoming XMPP stream from an XMPP server. More...
| Header: | #include <QXmppIncomingServer.h> |
| Inherits: | QXmppLoggable |
Public Functions
| QXmppIncomingServer(QSslSocket *socket, const QString &domain, QObject *parent) | |
| void | disconnectFromHost() |
| bool | isConnected() const |
| QString | localStreamId() const |
| bool | sendPacket(const QXmppNonza &nonza) |
Public Slots
| bool | sendData(const QByteArray &data) |
Signals
| void | connected() |
| void | dialbackRequestReceived(const QXmppDialback &result) |
| void | disconnected() |
| void | elementReceived(const QDomElement &element) |
Detailed Description
Member Function Documentation
QXmppIncomingServer::QXmppIncomingServer(QSslSocket *socket, const QString &domain, QObject *parent)
Constructs a new incoming server stream.
socket is the socket for the XMPP stream, domain is the local domain and parent is the optional parent QObject for the stream.
[signal] void QXmppIncomingServer::connected()
This signal is emitted when the stream is connected.
[signal] void QXmppIncomingServer::dialbackRequestReceived(const QXmppDialback &result)
This signal is emitted when a dialback verify request is received.
result.
void QXmppIncomingServer::disconnectFromHost()
Disconnects from the remote host.
[signal] void QXmppIncomingServer::disconnected()
This signal is emitted when the stream is disconnected.
[signal] void QXmppIncomingServer::elementReceived(const QDomElement &element)
This signal is emitted when an element is received.
bool QXmppIncomingServer::isConnected() const
Returns true if the socket is connected and the remote server is authenticated.
QString QXmppIncomingServer::localStreamId() const
Returns the stream's identifier.
[slot] bool QXmppIncomingServer::sendData(const QByteArray &data)
Sends raw data to the peer; returns true on success.
bool QXmppIncomingServer::sendPacket(const QXmppNonza &nonza)
Sends an XMPP packet to the peer; returns true on success.
nonza.