|
QXmpp
Version:0.4.0
|
The QXmppStream class is the base class for all XMPP streams. More...
#include <QXmppStream.h>
Public Slots | |
| virtual void | disconnectFromHost () |
| virtual bool | sendData (const QByteArray &) |
Signals | |
| void | connected () |
| This signal is emitted when the stream is connected. | |
| void | disconnected () |
| This signal is emitted when the stream is disconnected. | |
Public Member Functions | |
| QXmppStream (QObject *parent) | |
| ~QXmppStream () | |
| Destroys a base XMPP stream. | |
| virtual bool | isConnected () const |
| bool | sendPacket (const QXmppPacket &) |
Protected Member Functions | |
| QSslSocket * | socket () const |
| void | setSocket (QSslSocket *socket) |
| virtual void | handleStart () |
| virtual void | handleStanza (const QDomElement &element)=0 |
| virtual void | handleStream (const QDomElement &element)=0 |
The QXmppStream class is the base class for all XMPP streams.
| QXmppStream::QXmppStream | ( | QObject * | parent | ) |
Constructs a base XMPP stream.
| parent |
| void QXmppStream::disconnectFromHost | ( | ) | [virtual, slot] |
Disconnects from the remote host.
| virtual void QXmppStream::handleStanza | ( | const QDomElement & | element | ) | [protected, pure virtual] |
Handles an incoming XMPP stanza.
| element |
| void QXmppStream::handleStart | ( | ) | [protected, virtual] |
Handles a stream start event, which occurs when the underlying transport becomes ready (socket connected, encryption started).
If you redefine handleStart(), make sure to call the base class's method.
| virtual void QXmppStream::handleStream | ( | const QDomElement & | element | ) | [protected, pure virtual] |
Handles an incoming XMPP stream start.
| element |
| bool QXmppStream::isConnected | ( | ) | const [virtual] |
Returns true if the stream is connected.
Reimplemented in QXmppOutgoingClient, QXmppOutgoingServer, QXmppIncomingClient, and QXmppIncomingServer.
| bool QXmppStream::sendData | ( | const QByteArray & | data | ) | [virtual, slot] |
Sends raw data to the peer.
| data |
| bool QXmppStream::sendPacket | ( | const QXmppPacket & | packet | ) |
Sends an XMPP packet to the peer.
| packet |
| void QXmppStream::setSocket | ( | QSslSocket * | socket | ) | [protected] |
Sets the QSslSocket used for this stream.
| QSslSocket * QXmppStream::socket | ( | ) | const [protected] |
Returns the QSslSocket used for this stream.
Reimplemented in QXmppOutgoingClient.
1.7.6.1