/*
    SPDX-FileCopyrightText: 2005 Joris Guisson <joris.guisson@gmail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef IPBLOCKINGINTERFACE_H
#define IPBLOCKINGINTERFACE_H

#include <ktorrent_export.h>

namespace net
{
class Address;
}

namespace bt
{
/*!
 * \author Ivan Vasic
 * \brief Base class for BlockLists
 */
class KTORRENT_EXPORT BlockListInterface
{
public:
    BlockListInterface();
    virtual ~BlockListInterface();

    /*!
     * This function checks if IP is blocked
     * \return TRUE if IP should be blocked. FALSE otherwise
     * \param addr Address of the peer
     */
    virtual bool blocked(const net::Address &addr) const = 0;
};
}
#endif
