The QXmppStream class is the base class for all XMPP streams.  
 More...
#include <QXmppStream.h>
| 
Signals | 
| void | connected () | 
|  | This signal is emitted when the stream is connected. 
 | 
| void | disconnected () | 
|  | This signal is emitted when the stream is disconnected. 
 | 
| void | setGauge (const QString &gauge, double value) | 
|  | Sets the given gauge to value. 
 | 
| void | logMessage (QXmppLogger::MessageType type, const QString &msg) | 
|  | This signal is emitted to send logging messages. 
 | 
| void | updateCounter (const QString &counter, qint64 amount=1) | 
|  | Updates the given counter by amount. 
 | 
Detailed Description
The QXmppStream class is the base class for all XMPP streams. 
Constructor & Destructor Documentation
      
        
          | QXmppStream::QXmppStream | ( | QObject * | parent | ) |  | 
      
 
Constructs a base XMPP stream.
- Parameters
- 
  
  
 
 
Member Function Documentation
  
  | 
        
          | void QXmppStream::disconnectFromHost | ( |  | ) |  |  | virtualslot | 
 
Disconnects from the remote host. 
 
 
  
  | 
        
          | virtual void QXmppStream::handleStanza | ( | const QDomElement & | element | ) |  |  | protectedpure virtual | 
 
Handles an incoming XMPP stanza.
- Parameters
- 
  
  
 
 
  
  | 
        
          | void QXmppStream::handleStart | ( |  | ) |  |  | protectedvirtual | 
 
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 | ) |  |  | protectedpure virtual | 
 
Handles an incoming XMPP stream start.
- Parameters
- 
  
  
 
 
  
  | 
        
          | bool QXmppStream::isConnected | ( |  | ) | const |  | virtual | 
 
 
  
  | 
        
          | bool QXmppStream::sendData | ( | const QByteArray & | data | ) |  |  | virtualslot | 
 
Sends raw data to the peer.
- Parameters
- 
  
  
 
 
      
        
          | bool QXmppStream::sendPacket | ( | const QXmppStanza & | packet | ) |  | 
      
 
Sends an XMPP packet to the peer.
- Parameters
- 
  
  
 
 
  
  | 
        
          | void QXmppStream::setSocket | ( | QSslSocket * | socket | ) |  |  | protected | 
 
Sets the QSslSocket used for this stream. 
 
 
  
  | 
        
          | QSslSocket * QXmppStream::socket | ( |  | ) | const |  | protected | 
 
 
The documentation for this class was generated from the following files: