14 #ifndef SIPROFILEFT_H__
15 #define SIPROFILEFT_H__
17 #include "siprofilehandler.h"
18 #include "sihandler.h"
19 #include "simanager.h"
20 #include "socks5bytestreamhandler.h"
29 class SIProfileFTHandler;
30 class SOCKS5Bytestream;
31 class SOCKS5BytestreamManager;
171 const std::string requestFT(
const JID& to,
const std::string& name,
long size,
172 const std::string& hash =
"",
const std::string& desc =
"",
173 const std::string& date =
"",
const std::string& mimetype =
"" );
183 void acceptFT(
const JID& to,
const std::string&
id, StreamType type = FTTypeS5B );
194 const std::string& text =
"" );
237 void addStreamHost(
const JID& jid,
const std::string& host,
int port );
245 {
if( m_socks5Manager ) m_socks5Manager->registerSOCKS5BytestreamServer( server ); }
250 void removeSOCKS5BytestreamServer()
251 {
if( m_socks5Manager ) m_socks5Manager->removeSOCKS5BytestreamServer(); }
254 virtual void handleSIRequest(
const JID& from,
const std::string&
id,
const std::string& profile,
258 virtual void handleSIRequestResult(
const JID& from,
const std::string& sid,
262 virtual void handleSIRequestError(
Stanza* stanza,
const std::string& sid );
265 virtual void handleIncomingSOCKS5BytestreamRequest(
const std::string& sid,
const JID& from );
274 virtual void handleSOCKS5BytestreamError(
Stanza* stanza,
const std::string& sid );
290 #endif // SIPROFILEFT_H__