14 #ifndef INBANDBYTESTREAM_H__
15 #define INBANDBYTESTREAM_H__
17 #include "messagefilter.h"
18 #include "iqhandler.h"
20 #include "inbandbytestreammanager.h"
26 class InBandBytestreamDataHandler;
53 bool isOpen()
const {
return m_open; }
65 bool sendBlock(
const std::string& data );
71 const std::string&
sid()
const {
return m_sid; }
90 void removeInBandBytestreamDataHandler();
93 virtual void decorate(
Tag *tag );
96 virtual void filter(
Stanza *stanza );
100 void setBlockSize(
int blockSize ) { m_blockSize = blockSize; }
103 void setSid(
const std::string& sid ) { m_sid = sid; }
105 ClientBase *m_clientbase;
106 InBandBytestreamManager *m_manager;
107 InBandBytestreamDataHandler *m_inbandBytestreamDataHandler;
109 std::string::size_type m_blockSize;
111 int m_lastChunkReceived;
118 #endif // INBANDBYTESTREAM_H__