22 #ifndef KIOINPUTSTREAM_IMPL
23 #define KIOINPUTSTREAM_IMPL
26 #include <tqcstring.h>
27 #include <tdeio/jobclasses.h>
30 #include "stdsynthmodule.h"
34 class TDEIOInputStream_impl :
public TQObject,
virtual public TDEIOInputStream_skel,
35 virtual public InputStream_skel,
36 virtual public StdSynthModule
40 TDEIOInputStream_impl();
41 ~TDEIOInputStream_impl();
51 bool openURL(
const std::string& url);
54 void request_outdata(DataPacket<mcopbyte> *packet);
56 long bufferPackets() {
return m_packetBuffer; }
57 void bufferPackets(
long i) { m_packetBuffer = i; }
59 long packetSize() {
return m_packetSize; }
62 void mimeTypeFound(
const TQString & mimetype);
65 void slotData(TDEIO::Job *,
const TQByteArray &);
66 void slotResult(TDEIO::Job *);
67 void slotScanMimeType(TDEIO::Job *,
const TQString &mimetype);
68 void slotTotalSize(TDEIO::Job *, TDEIO::filesize_t size);
72 TDEIO::TransferJob *m_job;
77 bool m_streamSuspended;
80 unsigned int m_packetBuffer;
81 const unsigned int m_packetSize;
82 TDEIO::filesize_t m_size;
84 static const unsigned int PACKET_COUNT;