The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server. More...
#include <QXmppOutgoingServer.h>
Public Slots | |
| void | connectToHost (const QString &domain) |
| void | queueData (const QByteArray &data) |
Public Slots inherited from QXmppStream | |
| virtual void | disconnectFromHost () |
| virtual bool | sendData (const QByteArray &) |
Signals | |
| void | dialbackResponseReceived (const QXmppDialback &response) |
| This signal is emitted when a dialback verify response is received. | |
Signals inherited from QXmppStream | |
| void | connected () |
| This signal is emitted when the stream is connected. | |
| void | disconnected () |
| This signal is emitted when the stream is disconnected. | |
Signals inherited from QXmppLoggable | |
| void | logMessage (QXmppLogger::MessageType type, const QString &msg) |
| This signal is emitted to send logging messages. | |
Public Member Functions | |
| QXmppOutgoingServer (const QString &domain, QObject *parent) | |
| ~QXmppOutgoingServer () | |
| bool | isConnected () const |
| QString | localStreamKey () const |
| Returns the stream's local dialback key. | |
| void | setLocalStreamKey (const QString &key) |
| void | setVerify (const QString &id, const QString &key) |
| QString | remoteDomain () const |
| Returns the remote server's domain. | |
Public Member Functions inherited from QXmppStream | |
| QXmppStream (QObject *parent) | |
| ~QXmppStream () | |
| Destroys a base XMPP stream. | |
| bool | sendPacket (const QXmppStanza &) |
Public Member Functions inherited from QXmppLoggable | |
| QXmppLoggable (QObject *parent=0) | |
Additional Inherited Members | |
Protected Member Functions inherited from QXmppStream | |
| QSslSocket * | socket () const |
| void | setSocket (QSslSocket *socket) |
| virtual void | handleStart () |
| virtual void | handleStanza (const QDomElement &element)=0 |
| virtual void | handleStream (const QDomElement &element)=0 |
Protected Member Functions inherited from QXmppLoggable | |
| void | debug (const QString &message) |
| void | info (const QString &message) |
| void | warning (const QString &message) |
| void | logReceived (const QString &message) |
| void | logSent (const QString &message) |
The QXmppOutgoingServer class represents an outgoing XMPP stream to another XMPP server.
| QXmppOutgoingServer::QXmppOutgoingServer | ( | const QString & | domain, |
| QObject * | parent | ||
| ) |
Constructs a new outgoing server-to-server stream.
| domain | the local domain |
| parent | the parent object |
| QXmppOutgoingServer::~QXmppOutgoingServer | ( | ) |
Destroys the stream.
|
slot |
Attempts to connect to an XMPP server for the specified domain.
| domain |
|
virtual |
Returns true if the socket is connected and authentication succeeded.
Reimplemented from QXmppStream.
|
slot |
Sends or queues data until connected.
| data |
| void QXmppOutgoingServer::setLocalStreamKey | ( | const QString & | key | ) |
Sets the stream's local dialback key.
| key |
| void QXmppOutgoingServer::setVerify | ( | const QString & | id, |
| const QString & | key | ||
| ) |
Sets the stream's verification information.
| id | |
| key |
1.8.1