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

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 ()
bool get_view_read () throw ()
bool get_view_empty () throw ()
bool get_view_important () throw ()
void set_view_read (bool val) throw ()
void set_view_empty (bool val) throw ()
void set_view_important (bool val) throw ()
int get_update_interval () throw ()
void set_update_interval (int val) throw ()
std::vector< std::string > get_folder_locations () throw ()
void set_folder_locations (const std::vector< std::string > &locations) throw ()
std::vector< MailProgram > get_mail_programs () throw ()
void set_mail_programs (const std::vector< MailProgram > &programs) throw ()
MailProgram get_selected_mail_program () throw ()
std::string get_application_data (const std::string &app, const std::string &key, const std::string &def="") throw ()
void set_application_data (const std::string &app, const std::string &key, const std::string &val) throw ()
std::string get_folder_data (const MailFolder &folder, const std::string &key, const std::string &def="") throw ()
void set_folder_data (const MailFolder &folder, const std::string &key, const std::string &val) throw ()
void save () throw (ConsistencyCheckException)
void save (const std::string &file) throw (ConsistencyCheckException)

Protected Member Functions

xmlpp::Element * el_root () const throw ()
xmlpp::Element * el_general () const throw ()
xmlpp::Element * el_view () const throw ()
xmlpp::Element * el_view_empty () throw ()
xmlpp::Element * el_view_read () throw ()
xmlpp::Element * el_view_important () throw ()
xmlpp::Element * el_locations () const throw ()
xmlpp::Element * el_interval () throw ()
xmlpp::Element * el_programs () const throw ()
xmlpp::Element * el_mailboxes () const throw ()
xmlpp::Element * el_applications () const throw ()
xmlpp::Element * el_folders () const throw ()
xmlpp::Element * el_app (const std::string &appname) const throw ()
xmlpp::Element * el_folder (const MailFolder &folder) const throw ()
void loadConfiguration (const std::string &fname) throw (SystemException, ConsistencyCheckException)

Protected Attributes

xmlpp::DomParser _xmlparser
xmlpp::Document * doc_conf
xmlpp::Element * _view_empty
xmlpp::Element * _view_read
xmlpp::Element * _view_important
xmlpp::Element * _interval
std::string rcfile


Constructor & Destructor Documentation

Config::Config (   )  throw (SystemException, ConsistencyCheckException)
 

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

Config::~Config (   )  throw ()
 


Member Function Documentation

xmlpp::Element * Config::el_app (  const std::string &  appname  )  const throw () [protected]
 

xmlpp::Element * Config::el_applications (   )  const throw () [protected]
 

xmlpp::Element * Config::el_folder (  const MailFolder &  folder  )  const throw () [protected]
 

xmlpp::Element * Config::el_folders (   )  const throw () [protected]
 

xmlpp::Element * Config::el_general (   )  const throw () [protected]
 

xmlpp::Element * Config::el_interval (   )  throw () [protected]
 

xmlpp::Element * Config::el_locations (   )  const throw () [protected]
 

xmlpp::Element * Config::el_mailboxes (   )  const throw () [protected]
 

xmlpp::Element * Config::el_programs (   )  const throw () [protected]
 

xmlpp::Element * Config::el_root (   )  const throw () [protected]
 

xmlpp::Element * Config::el_view (   )  const throw () [protected]
 

xmlpp::Element * Config::el_view_empty (   )  throw () [protected]
 

xmlpp::Element * Config::el_view_important (   )  throw () [protected]
 

xmlpp::Element * Config::el_view_read (   )  throw () [protected]
 

std::string Config::get_application_data (  const std::string &  app,
const std::string &  key,
const std::string &  def = ""
)  throw ()
 

std::string Config::get_folder_data (  const MailFolder &  folder,
const std::string &  key,
const std::string &  def = ""
)  throw ()
 

std::vector< std::string > Config::get_folder_locations (   )  throw ()
 

std::vector< MailProgram > Config::get_mail_programs (   )  throw ()
 

MailProgram Config::get_selected_mail_program (   )  throw ()
 

int Config::get_update_interval (   )  throw ()
 

bool Config::get_view_empty (   )  throw ()
 

bool Config::get_view_important (   )  throw ()
 

bool Config::get_view_read (   )  throw ()
 

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

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

void Config::save (   )  throw (ConsistencyCheckException)
 

void Config::set_application_data (  const std::string &  app,
const std::string &  key,
const std::string &  val
)  throw ()
 

void Config::set_folder_data (  const MailFolder &  folder,
const std::string &  key,
const std::string &  val
)  throw ()
 

void Config::set_folder_locations (  const std::vector< std::string > &  locations  )  throw ()
 

void Config::set_mail_programs (  const std::vector< MailProgram > &  programs  )  throw ()
 

void Config::set_update_interval (  int  val  )  throw ()
 

void Config::set_view_empty (  bool  val  )  throw ()
 

void Config::set_view_important (  bool  val  )  throw ()
 

void Config::set_view_read (  bool  val  )  throw ()
 


Member Data Documentation

xmlpp::Element* Config::_interval [protected]
 

xmlpp::Element* Config::_view_empty [protected]
 

xmlpp::Element* Config::_view_important [protected]
 

xmlpp::Element* Config::_view_read [protected]
 

xmlpp::DomParser Config::_xmlparser [protected]
 

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

std::string Config::rcfile [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jul 25 19:48:45 2005 for libbuffy by  doxygen 1.4.3-20050530