The QXmppTransferManager class provides support for sending and receiving files.  
 More...
#include <QXmppTransferManager.h>
| 
Public Slots | 
| QXmppTransferJob * | sendFile (const QString &jid, const QString &filePath, const QString &description=QString()) | 
| QXmppTransferJob * | sendFile (const QString &jid, QIODevice *device, const QXmppTransferFileInfo &fileInfo, const QString &sid=QString()) | 
| 
Friends | 
| class | QXmppTransferManagerPrivate | 
Detailed Description
The QXmppTransferManager class provides support for sending and receiving files. 
Stream initiation is performed as described in XEP-0095: Stream Initiation and XEP-0096: SI File Transfer. The actual file transfer is then performed using either XEP-0065: SOCKS5 Bytestreams or XEP-0047: In-Band Bytestreams.
To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:
 Constructor & Destructor Documentation
      
        
          | QXmppTransferManager::QXmppTransferManager | ( |  | ) |  | 
      
 
 
Member Function Documentation
  
  | 
        
          | QXmppTransferJob * QXmppTransferManager::sendFile | ( | const QString & | jid, |  
          |  |  | const QString & | filePath, |  
          |  |  | const QString & | description = QString() |  
          |  | ) |  |  |  | slot | 
 
Send file to a remote party.
The remote party will be given the choice to accept or refuse the transfer. 
 
 
  
  | 
        
          | QXmppTransferJob * QXmppTransferManager::sendFile | ( | const QString & | jid, |  
          |  |  | QIODevice * | device, |  
          |  |  | const QXmppTransferFileInfo & | fileInfo, |  
          |  |  | const QString & | sid = QString() |  
          |  | ) |  |  |  | slot | 
 
Send file to a remote party.
The remote party will be given the choice to accept or refuse the transfer. 
 
 
      
        
          | void QXmppTransferManager::setProxy | ( | const QString & | proxyJid | ) |  | 
      
 
Set the JID of the SOCKS5 bytestream proxy to use for outgoing transfers.
If you set a proxy, when you send a file the proxy will be offered to the recipient in addition to your own IP addresses. 
 
 
      
        
          | void QXmppTransferManager::setProxyOnly | ( | bool | proxyOnly | ) |  | 
      
 
Set whether the proxy should systematically be used for outgoing SOCKS5 bytestream transfers.
- Note
- If you set this to true and do not provide a proxy using setProxy(), your outgoing transfers will fail! 
 
 
      
        
          | void QXmppTransferManager::setSupportedMethods | ( | QXmppTransferJob::Methods | methods | ) |  | 
      
 
Set the supported stream methods. This allows you to selectively enable or disable stream methods (In-Band or SOCKS5 bytestreams).
The methods argument is a combination of zero or more QXmppTransferJob::Method. 
 
 
Property Documentation
  
  | 
        
          | QString QXmppTransferManager::proxy |  | readwrite | 
 
Return the JID of the bytestream proxy to use for outgoing transfers. 
 
 
  
  | 
        
          | bool QXmppTransferManager::proxyOnly |  | readwrite | 
 
Return whether the proxy will systematically be used for outgoing SOCKS5 bytestream transfers. 
 
 
  
  | 
        
          | QXmppTransferJob::Methods QXmppTransferManager::supportedMethods |  | readwrite | 
 
 
The documentation for this class was generated from the following files: