14 #include "siprofileft.h"
16 #include "siprofilefthandler.h"
17 #include "simanager.h"
19 #include "socks5bytestream.h"
20 #include "socks5bytestreammanager.h"
29 : m_parent( parent ), m_manager( manager ), m_handler( sipfth ),
30 m_socks5Manager( s5Manager ), m_delManager( false ), m_delS5Manager( false ), m_ranged( false )
40 if( !m_socks5Manager )
43 m_delS5Manager =
true;
54 if( m_socks5Manager && m_delS5Manager )
55 delete m_socks5Manager;
59 const std::string& hash,
const std::string& desc,
60 const std::string& date,
const std::string& mimetype )
62 if( name.empty() || size <= 0 || !m_manager )
73 new Tag( file,
"desc", desc );
75 new Tag( file,
"range" );
114 m_manager->
acceptSI( to,
id, 0, feature );
118 const std::string& text )
123 m_manager->
declineSI( to,
id, reason, text );
128 if( m_socks5Manager )
129 m_socks5Manager->
dispose( s5b );
134 if( m_socks5Manager )
140 if( m_socks5Manager )
169 mt.empty() ?
"binary/octet-stream" : mt, desc,
FTTypeS5B, offset, length );