QXmppOutgoingServer Class
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server. More...
| Header: | #include <QXmppOutgoingServer.h> |
| Inherits: | QXmppLoggable |
Public Functions
| QXmppOutgoingServer(const QString &domain, QObject *parent) | |
| void | disconnectFromHost() |
| bool | isConnected() const |
| QString | localStreamKey() const |
| QString | remoteDomain() const |
| bool | sendData(const QByteArray &data) |
| bool | sendPacket(const QXmppNonza &nonza) |
| void | setLocalStreamKey(const QString &key) |
| void | setVerify(const QString &id, const QString &key) |
Public Slots
| void | connectToHost(const QString &domain) |
| void | queueData(const QByteArray &data) |
Signals
| void | connected() |
| void | dialbackResponseReceived(const QXmppDialback &response) |
| void | disconnected() |
Detailed Description
Member Function Documentation
QXmppOutgoingServer::QXmppOutgoingServer(const QString &domain, QObject *parent)
Constructs a new outgoing server-to-server stream with local domain domain and parent object parent.
[slot] void QXmppOutgoingServer::connectToHost(const QString &domain)
Attempts to connect to an XMPP server for the specified domain.
[signal] void QXmppOutgoingServer::connected()
This signal is emitted when the stream is connected.
[signal] void QXmppOutgoingServer::dialbackResponseReceived(const QXmppDialback &response)
This signal is emitted when a dialback verify response is received.
void QXmppOutgoingServer::disconnectFromHost()
Disconnects from the remote host.
[signal] void QXmppOutgoingServer::disconnected()
This signal is emitted when the stream is disconnected.
bool QXmppOutgoingServer::isConnected() const
Returns true if the socket is connected and authentication succeeded.
QString QXmppOutgoingServer::localStreamKey() const
Returns the stream's local dialback key.
See also setLocalStreamKey().
[slot] void QXmppOutgoingServer::queueData(const QByteArray &data)
Sends or queues data until connected.
QString QXmppOutgoingServer::remoteDomain() const
Returns the remote server's domain.
bool QXmppOutgoingServer::sendData(const QByteArray &data)
Sends raw data to the peer; returns true on success.
bool QXmppOutgoingServer::sendPacket(const QXmppNonza &nonza)
Sends an XMPP packet to the peer; returns true on success.
nonza.
void QXmppOutgoingServer::setLocalStreamKey(const QString &key)
Sets the stream's local dialback key.
See also localStreamKey().
void QXmppOutgoingServer::setVerify(const QString &id, const QString &key)
Sets the stream's verification information.
key and id.