gloox
0.9.9.12
|
#include <inbandbytestreamhandler.h>
Public Member Functions | |
virtual | ~InBandBytestreamHandler () |
virtual bool | handleIncomingInBandBytestream (const JID &from, InBandBytestream *ibb)=0 |
virtual void | handleOutgoingInBandBytestream (const JID &to, InBandBytestream *ibb)=0 |
virtual void | handleInBandBytestreamError (const JID &remote, StanzaError se)=0 |
A virtual interface that allows to receive new incoming In-Band Bytestream requests from remote entities.
See InBandBytestreamManager for a detailed description on how to implement In-Band Bytestreams.
Definition at line 33 of file inbandbytestreamhandler.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 39 of file inbandbytestreamhandler.h.
|
pure virtual |
Notifies the handler of errors occuring when a bytestream was requested. For example, if the remote entity does not implement IBB.
remote | The remote entity's JID which relates to the error. |
se | The error. |
|
pure virtual |
Notifies the implementor of a new incoming IBB request. Attach the IBB to a MessageSession using InBandBytestream::attachTo().
For synchronous InBandBytestreamHandler:
If the return value is true the bytestream holds as accepted and the InBandBytestreamHandler becomes the owner of the InBandBytestream object. If false is returned, the InBandBytestream is deleted by the InBandBytestreamManager and the bytestream request will be declined.
For asynchronous InBandBytestreamHandler:
The return value is ignored. You have to call either InBandBytestreamManager::acceptInBandBytestream() or InBandBytestreamManager::rejectInBandBytestream(), respectively.
from | The remote initiator of the bytestream request. |
ibb | The bytestream. |
|
pure virtual |
Notifies the implementor of successful establishing of an outgoing IBB request. Attach the IBB to a MessageSession using InBandBytestream::attachTo(). The stream has been accepted by the remote entity and is ready to send data. The InBandBytestreamHandler becomes the owner of the InBandBytestream object.
to | The remote entity's JID. |
ibb | The new bytestream. |