21 #ifndef BTACCESSMANAGER_H
22 #define BTACCESSMANAGER_H
24 #include <QStringList>
25 #include <net/address.h>
26 #include <ktorrent_export.h>
30 class BlockListInterface;
68 QList<BlockListInterface*> blocklists;
70 QStringList external_addresses;
void addExternalIP(const QString &addr)
Add an external IP throuch which we are reacheable.
Base class for BlockLists.
bool allowed(const net::Address &addr) const
Are we allowed to have a connection with a peer.
static AccessManager & instance()
Get the singleton instance.
void banPeer(const QString &addr)
Ban a peer (i.e. add it to the banned list)
void removeBlockList(BlockListInterface *bl)
Remove a blocklist.
void addBlockList(BlockListInterface *bl)
Add a blocklist (AccessManager takes ownership unless list is explicitly remove with removeBlockList)