14 #ifndef SIPROFILEFT_H__
15 #define SIPROFILEFT_H__
17 #include "iqhandler.h"
18 #include "socks5bytestreammanager.h"
19 #include "siprofilehandler.h"
20 #include "sihandler.h"
21 #include "simanager.h"
22 #include "bytestreamhandler.h"
31 class InBandBytestream;
34 class SIProfileFTHandler;
35 class SOCKS5Bytestream;
202 const std::string requestFT(
const JID& to,
const std::string& name,
long size,
207 int streamTypes = FTTypeAll,
221 void acceptFT(
const JID& to,
const std::string& sid,
222 StreamType type = FTTypeS5B,
const JID& from =
JID() );
276 void addStreamHost(
const JID& jid,
const std::string& host,
int port );
284 {
if( m_socks5Manager ) m_socks5Manager->registerSOCKS5BytestreamServer( server ); }
289 void removeSOCKS5BytestreamServer()
290 {
if( m_socks5Manager ) m_socks5Manager->removeSOCKS5BytestreamServer(); }
293 virtual void handleSIRequest(
const JID& from,
const JID& to,
const std::string&
id,
294 const SIManager::SI& si );
297 virtual void handleSIRequestResult(
const JID& from,
const JID& to,
const std::string& sid,
298 const SIManager::SI& si );
301 virtual void handleSIRequestError(
const IQ& iq,
const std::string& sid );
304 virtual void handleIncomingBytestreamRequest(
const std::string& sid,
const JID& from );
307 virtual void handleIncomingBytestream(
Bytestream* bs );
310 virtual void handleOutgoingBytestream(
Bytestream* bs );
313 virtual void handleBytestreamError(
const IQ& iq,
const std::string& sid );
316 virtual bool handleIq(
const IQ& iq ) { (void)iq;
return false; }
319 virtual void handleIqID(
const IQ& iq,
int context );
328 ClientBase* m_parent;
329 SIManager* m_manager;
330 SIProfileFTHandler* m_handler;
331 SOCKS5BytestreamManager* m_socks5Manager;
341 #endif // SIPROFILEFT_H__