21 #ifndef BT_SUPERSEEDER_H
22 #define BT_SUPERSEEDER_H
24 #include <ktorrent_export.h>
25 #include <util/constants.h>
41 class KTORRENT_EXPORT SuperSeeder
48 SuperSeeder(Uint32 num_chunks);
49 virtual ~SuperSeeder();
56 void have(PeerInterface* peer,bt::Uint32 chunk);
62 void haveAll(PeerInterface* peer);
68 void bitset(PeerInterface* peer,
const BitSet & bs);
92 QMultiMap<bt::Uint32,bt::PeerInterface*> active_chunks;
93 QMap<bt::PeerInterface*,bt::Uint32> active_peers;
96 typedef QMultiMap<bt::Uint32,bt::PeerInterface*>::iterator ActiveChunkItr;
97 typedef QMap<bt::PeerInterface*,bt::Uint32>::iterator ActivePeerItr;
102 #endif // BT_SUPERSEEDER_H