14 #ifndef INBANDBYTESTREAM_H__ 15 #define INBANDBYTESTREAM_H__ 17 #include "bytestream.h" 18 #include "iqhandler.h" 19 #include "messagehandler.h" 25 class BytestreamDataHandler;
71 bool send(
const std::string& data );
74 virtual bool connect();
80 virtual bool handleIq(
const IQ& iq );
83 virtual void handleIqID(
const IQ& iq,
int context );
89 #ifdef INBANDBYTESTREAM_TEST 114 IBB(
const std::string& sid,
int blocksize );
123 IBB(
const std::string& sid,
int seq,
const std::string& data );
129 IBB(
const std::string& sid );
135 IBB(
const Tag* tag = 0 );
146 IBBType type()
const {
return m_type; }
152 int blocksize()
const {
return m_blockSize; }
158 int seq()
const {
return m_seq; }
164 const std::string sid()
const {
return m_sid; }
170 const std::string& data()
const {
return m_data; }
173 virtual const std::string& filterString()
const;
178 return new IBB( tag );
182 virtual Tag* tag()
const;
187 return new IBB( *
this );
199 const JID& target,
const std::string& sid );
202 void returnResult(
const JID& to,
const std::string&
id );
208 int m_lastChunkReceived;
214 #endif // INBANDBYTESTREAM_H__ An implementation of the file transfer SI profile (XEP-0096).
An abstraction of a message session between any two entities.
void setBlockSize(int blockSize)
An implementation of a single In-Band Bytestream (XEP-0047).
An abstraction of an IQ stanza.
virtual ConnectionError recv(int timeout=-1)
An abstraction of a message stanza.
The namespace for the gloox library.
A virtual interface which can be reimplemented to receive incoming message stanzas.
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
An abstraction of a single bytestream.
A virtual interface which can be reimplemented to receive IQ stanzas.
An implementation of log sink and source.
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
This is an abstraction of an XML element.