|
Public Member Functions |
virtual | ~DnsblManager () throw (SysError) |
| DnsblManager (RegKey ®key) throw (std::runtime_error) |
void | add (const std::string &name, Result iflisted, const std::string &description="") throw (std::runtime_error) |
void | add (const std::string &name, const std::map< Url, Result > &resmap, const std::string &description="") throw (std::runtime_error) |
void | add (const Dnsbl &dnsbl) throw (std::runtime_error) |
void | edit (const std::string &name, Result iflisted, const std::string &description="") throw (std::runtime_error) |
void | edit (const std::string &name, const std::map< Url, Result > &resmap, const std::string &desc) throw (std::runtime_error) |
void | edit (const Dnsbl &dnsbl) throw (std::runtime_error) |
void | setActive (const std::string &name, bool bActive) throw (std::runtime_error) |
bool | isActive (const std::string &name) const throw (std::runtime_error) |
void | addCache (const std::string &name, int hoursofvalidity) |
const DnsblCache * | getCache (const std::string &name) const throw (std::runtime_error) |
void | removeCache (const std::string &name) |
void | remove (const std::string &name) throw (std::runtime_error) |
const DnsblData * | get (const std::string &name) const |
const std::list< const DnsblData * > | getAll () const |
std::list< std::string > | getNames () const |
void | saveToFile (const std::string &filename) throw (SysError) |
void | loadFromFile (const std::string &filename) throw (std::runtime_error) |
Static Public Member Functions |
static DnsblCache * | createDnsblCache (const std::string &name, int validity) |
Private Types |
typedef std::map< std::string,
DnsblData * > | DnsblMap |
Private Member Functions |
void | init () throw (std::runtime_error) |
void | dnsblDataFromReg (const std::string &name) throw (std::runtime_error) |
void | save () throw (SysError) |
Private Attributes |
DnsblMap | m_map |
RegKey | m_reg |
Classes |
struct | DnsblData |