21 #ifndef BT_CONNECTIONLIMIT_H
22 #define BT_CONNECTIONLIMIT_H
25 #include <QSharedPointer>
26 #include <util/constants.h>
27 #include <util/sha1hash.h>
28 #include <ktorrent_export.h>
49 void setLimits(bt::Uint32 global_limit, bt::Uint32 torrent_limit);
64 typedef QSharedPointer<Token> Ptr;
87 bt::Uint32 global_limit;
88 bt::Uint32 global_total;
89 bt::Uint32 torrent_limit;
90 QMap<SHA1Hash, bt::Uint32> torrent_totals;
95 #endif // BT_CONNECTIONLIMIT_H