Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

DnsblManager Class Reference

#include <DnsblManager.h>

List of all members.

Public Member Functions

virtual ~DnsblManager () throw (SysError)
 DnsblManager (RegKey &regkey) 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 DnsblDataget (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


Member Typedef Documentation

typedef std::map<std::string,DnsblData*> DnsblManager::DnsblMap [private]
 


Constructor & Destructor Documentation

DnsblManager::~DnsblManager  )  throw (SysError) [virtual]
 

DnsblManager::DnsblManager RegKey &  regkey  )  throw (std::runtime_error)
 


Member Function Documentation

void DnsblManager::add const Dnsbl &  dnsbl  )  throw (std::runtime_error)
 

void DnsblManager::add const std::string &  name,
const std::map< Url, Result > &  resmap,
const std::string &  description = ""
throw (std::runtime_error)
 

void DnsblManager::add const std::string &  name,
Result  iflisted,
const std::string &  description = ""
throw (std::runtime_error)
 

void DnsblManager::addCache const std::string &  name,
int  hoursofvalidity
 

DnsblCache * DnsblManager::createDnsblCache const std::string &  name,
int  validity
[static]
 

void DnsblManager::dnsblDataFromReg const std::string &  name  )  throw (std::runtime_error) [private]
 

void DnsblManager::edit const Dnsbl &  dnsbl  )  throw (std::runtime_error)
 

void DnsblManager::edit const std::string &  name,
const std::map< Url, Result > &  resmap,
const std::string &  desc
throw (std::runtime_error)
 

void DnsblManager::edit const std::string &  name,
Result  iflisted,
const std::string &  description = ""
throw (std::runtime_error)
 

const DnsblManager::DnsblData * DnsblManager::get const std::string &  name  )  const
 

const list< const DnsblManager::DnsblData * > DnsblManager::getAll  )  const
 

const DnsblCache * DnsblManager::getCache const std::string &  name  )  const throw (std::runtime_error)
 

list< string > DnsblManager::getNames  )  const
 

void DnsblManager::init  )  throw (std::runtime_error) [private]
 

bool DnsblManager::isActive const std::string &  name  )  const throw (std::runtime_error)
 

void DnsblManager::loadFromFile const std::string &  filename  )  throw (std::runtime_error)
 

void DnsblManager::remove const std::string &  name  )  throw (std::runtime_error)
 

void DnsblManager::removeCache const std::string &  name  ) 
 

void DnsblManager::save  )  throw (SysError) [private]
 

void DnsblManager::saveToFile const std::string &  filename  )  throw (SysError)
 

void DnsblManager::setActive const std::string &  name,
bool  bActive
throw (std::runtime_error)
 


Member Data Documentation

DnsblMap DnsblManager::m_map [private]
 

RegKey DnsblManager::m_reg [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 00:13:25 2005 for Abuse! by  doxygen 1.4.3