|
gloox 1.0
|
An abstract base class to handle file transfer (FT) requests. More...
#include <siprofilefthandler.h>
Public Member Functions | |
| virtual | ~SIProfileFTHandler () |
| virtual void | handleFTRequest (const JID &from, const JID &to, const std::string &sid, const std::string &name, long size, const std::string &hash, const std::string &date, const std::string &mimetype, const std::string &desc, int stypes)=0 |
| virtual void | handleFTRequestError (const IQ &iq, const std::string &sid)=0 |
| virtual void | handleFTBytestream (Bytestream *bs)=0 |
| virtual const std::string | handleOOBRequestResult (const JID &from, const JID &to, const std::string &sid)=0 |
An abstract base class to handle file transfer (FT) requests.
See SIProfileFT for more information regarding file transfer.
Definition at line 36 of file siprofilefthandler.h.
| virtual ~SIProfileFTHandler | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 43 of file siprofilefthandler.h.
| virtual void handleFTBytestream | ( | Bytestream * | bs | ) | [pure virtual] |
This function is called to pass a negotiated bytestream (SOCKS5 or IBB). The bytestream is not yet open and not ready to send/receive data.
| bs | The bytestream. |
| virtual void handleFTRequest | ( | const JID & | from, |
| const JID & | to, | ||
| const std::string & | sid, | ||
| const std::string & | name, | ||
| long | size, | ||
| const std::string & | hash, | ||
| const std::string & | date, | ||
| const std::string & | mimetype, | ||
| const std::string & | desc, | ||
| int | stypes | ||
| ) | [pure virtual] |
This function is called to handle incoming file transfer requests, i.e. a remote entity requested to send a file to you. You should use either SIProfileFT::acceptFT() or SIProfileFT::declineFT() to accept or reject the request, respectively.
| from | The file transfer requestor. |
| to | The file transfer recipient. Usuall oneself. Used in component scenario. |
| sid | The requested stream's ID. This sid MUST be supplied to SIProfileFT::acceptFT() and SIProfileFT::declineFT(), respectively. |
| name | The file name. |
| size | The file size. |
| hash | The file content's MD5 sum. |
| date | The file's last modification time. |
| mimetype | The file's mime-type. |
| desc | The file's description. |
| stypes | An ORed list of SIProfileFT::StreamType indicating the StreamTypes the initiator supports. |
| virtual void handleFTRequestError | ( | const IQ & | iq, |
| const std::string & | sid | ||
| ) | [pure virtual] |
This function is called to handle a request error or decline.
| iq | The complete error stanza. |
| sid | The request's SID. |
1.7.4