buffy::Config Class Reference

#include <Config.h>

List of all members.

Public Member Functions

 Config () throw (SystemException, ConsistencyCheckException)
 Config (const std::string &fname) throw (SystemException, ConsistencyCheckException)
 ~Config () throw ()
ConfigItemBool view_empty () throw ()
ConfigItemBool view_read () throw ()
ConfigItemBool view_important () throw ()
ConfigItemInt update_interval () throw ()
ConfigItemLocations folder_locations () throw ()
ConfigItemMailPrograms mail_programs () throw ()
ConfigItemDictionary application (const std::string &name) throw ()
ConfigItemDictionary folder (const MailFolder &folder) throw ()
ConfigItemDictionary folder (const std::string &folder) throw ()
void save () throw (ConsistencyCheckException)
void save (const std::string &file) throw (ConsistencyCheckException)

Protected Member Functions

void loadConfiguration (const std::string &fname) throw (SystemException, ConsistencyCheckException)
xmlpp::Element * getElement (const std::string &path)
xmlpp::Element * getElement (xmlpp::Element *father, const std::string &path)
xmlpp::Element * obtainElement (const std::string &path)
xmlpp::Element * obtainElement (xmlpp::Element *father, const std::string &path)
xmlpp::Element * obtainNamedElement (xmlpp::Element *father, const std::string &nodeName, const std::string &name) throw ()

Protected Attributes

xmlpp::DomParser _xmlparser
xmlpp::Document * doc_conf
xmlpp::Element * m_el_root
ConfigItemm_el_general
ConfigItemm_el_view
ConfigItemm_el_applications
ConfigItemm_el_folders
std::string rcfile

Friends

class ConfigItem


Constructor & Destructor Documentation

Config::Config  )  throw (SystemException, ConsistencyCheckException)
 

Config::Config const std::string &  fname  )  throw (SystemException, ConsistencyCheckException)
 

Config::~Config  )  throw ()
 


Member Function Documentation

ConfigItemDictionary Config::application const std::string &  name  )  throw ()
 

ConfigItemDictionary Config::folder const std::string &  folder  )  throw ()
 

ConfigItemDictionary buffy::Config::folder const MailFolder folder  )  throw () [inline]
 

ConfigItemLocations Config::folder_locations  )  throw ()
 

xmlpp::Element * Config::getElement xmlpp::Element *  father,
const std::string &  path
[protected]
 

xmlpp::Element * Config::getElement const std::string &  path  )  [protected]
 

void Config::loadConfiguration const std::string &  fname  )  throw (SystemException, ConsistencyCheckException) [protected]
 

ConfigItemMailPrograms Config::mail_programs  )  throw ()
 

xmlpp::Element * Config::obtainElement xmlpp::Element *  father,
const std::string &  path
[protected]
 

xmlpp::Element * Config::obtainElement const std::string &  path  )  [protected]
 

xmlpp::Element * Config::obtainNamedElement xmlpp::Element *  father,
const std::string &  nodeName,
const std::string &  name
throw () [protected]
 

void Config::save const std::string &  file  )  throw (ConsistencyCheckException)
 

void Config::save  )  throw (ConsistencyCheckException)
 

ConfigItemInt Config::update_interval  )  throw ()
 

ConfigItemBool Config::view_empty  )  throw ()
 

ConfigItemBool Config::view_important  )  throw ()
 

ConfigItemBool Config::view_read  )  throw ()
 


Friends And Related Function Documentation

friend class ConfigItem [friend]
 


Member Data Documentation

xmlpp::DomParser buffy::Config::_xmlparser [protected]
 

xmlpp::Document* buffy::Config::doc_conf [protected]
 

ConfigItem* buffy::Config::m_el_applications [protected]
 

ConfigItem* buffy::Config::m_el_folders [protected]
 

ConfigItem* buffy::Config::m_el_general [protected]
 

xmlpp::Element* buffy::Config::m_el_root [protected]
 

ConfigItem* buffy::Config::m_el_view [protected]
 

std::string buffy::Config::rcfile [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 30 18:18:30 2005 for libbuffy by  doxygen 1.4.5