21 #ifndef BTACCESSMANAGER_H
22 #define BTACCESSMANAGER_H
24 #include <QStringList>
25 #include <net/address.h>
26 #include <ktorrent_export.h>
30 class BlockListInterface;
40 class KTORRENT_EXPORT AccessManager
44 virtual ~AccessManager();
47 static AccessManager& instance();
50 void addBlockList(BlockListInterface* bl);
53 void removeBlockList(BlockListInterface* bl);
59 void banPeer(
const QString& addr);
62 void addExternalIP(
const QString& addr);
68 QList<BlockListInterface*> blocklists;
70 QStringList external_addresses;